Skip to content

Commit dde01dd

Browse files
committed
Merge branch 'main' of https://github.com/GregValiant/Cura
2 parents 2f3f0b8 + 9b8bf58 commit dde01dd

258 files changed

Lines changed: 6099 additions & 121 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/nightly.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: ultimaker/cura-workflows/.github/actions/setup-build-environment@main
3333

3434
- name: Download installers jobs artifacts
35-
uses: actions/download-artifact@v4
35+
uses: actions/download-artifact@v8
3636
with:
3737
pattern: UltiMaker-Cura-*
3838
path: installers

‎.github/workflows/printer-linter-pr-diagnose.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
echo ${{ github.event.pull_request.head.repo.full_name }} > printer-linter-result/pr-head-repo.txt
4242
echo ${{ github.event.pull_request.head.sha }} > printer-linter-result/pr-head-sha.txt
4343
44-
- uses: actions/upload-artifact@v4
44+
- uses: actions/upload-artifact@v7
4545
with:
4646
name: printer-linter-result
4747
path: printer-linter-result/

‎.github/workflows/printer-linter-pr-post.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
pull-requests: write
1515
steps:
1616
- name: Download analysis results
17-
uses: actions/github-script@v7
17+
uses: actions/github-script@v9
1818
with:
1919
script: |
2020
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
@@ -40,7 +40,7 @@ jobs:
4040
unzip -j printer-linter-result.zip -d printer-linter-result
4141
4242
- name: Set PR details environment variables
43-
uses: actions/github-script@v7
43+
uses: actions/github-script@v9
4444
with:
4545
script: |
4646
const assert = require("node:assert").strict;
@@ -63,14 +63,14 @@ jobs:
6363
}
6464
});
6565
66-
- uses: actions/checkout@v4
66+
- uses: actions/checkout@v6
6767
with:
6868
repository: ${{ env.PR_HEAD_REPO }}
6969
ref: ${{ env.PR_HEAD_SHA }}
7070
persist-credentials: false
7171

7272
- name: Redownload analysis results
73-
uses: actions/github-script@v7
73+
uses: actions/github-script@v9
7474
with:
7575
script: |
7676
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
@@ -97,7 +97,7 @@ jobs:
9797
9898
- name: Run PR Comments
9999
if: env.commentFileExists == 'true'
100-
uses: peter-evans/create-or-update-comment@v4
100+
uses: peter-evans/create-or-update-comment@v5
101101
with:
102102
issue-number: ${{ env.PR_ID }}
103103
body-path: 'printer-linter-result/comment.md'

‎.github/workflows/release-process_release-candidate.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
tag_name: ${{ steps.find-available-tag-name.outputs.tag_name }}
5454
steps:
5555
- name: Checkout repo
56-
uses: actions/checkout@v4
56+
uses: actions/checkout@v6
5757
with:
5858
fetch-tags: true
5959
fetch-depth: 0
@@ -87,7 +87,7 @@ jobs:
8787
repository: [Cura, Uranium, CuraEngine, cura-binary-data, fdm_materials]
8888
steps:
8989
- name: Checkout repo
90-
uses: actions/checkout@v4
90+
uses: actions/checkout@v6
9191
with:
9292
repository: Ultimaker/${{ matrix.repository }}
9393
ref: ${{ needs.parse-version.outputs.branch_name }}
@@ -143,7 +143,7 @@ jobs:
143143
needs: [create-installers, parse-version, create-tags]
144144
steps:
145145
- name: Checkout Cura repo
146-
uses: actions/checkout@v4
146+
uses: actions/checkout@v6
147147
with:
148148
ref: ${{ needs.parse-version.outputs.branch_name }}
149149

@@ -164,7 +164,7 @@ jobs:
164164
body: formatted_changelog.txt
165165

166166
- name: Download artifacts
167-
uses: actions/download-artifact@v4
167+
uses: actions/download-artifact@v8
168168
with:
169169
path: artifacts
170170
merge-multiple: true

‎.github/workflows/security_badge.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828

2929
steps:
3030
- name: "Checkout code"
31-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31+
uses: actions/checkout@v6
3232
with:
3333
persist-credentials: false
3434

3535
- name: "Run analysis"
36-
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
36+
uses: ossf/scorecard-action@v2.4.3
3737
with:
3838
results_file: results.sarif
3939
results_format: sarif
@@ -48,7 +48,7 @@ jobs:
4848
# uploads of run results in SARIF format to the repository Actions tab.
4949
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
5050
- name: "Upload artifact"
51-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
51+
uses: actions/upload-artifact@v7
5252
with:
5353
name: SARIF file
5454
path: results.sarif
@@ -57,6 +57,6 @@ jobs:
5757
# Upload the results to GitHub's code scanning dashboard (optional).
5858
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@83a02f7883b12e0e4e1a146174f5e2292a01e601 # v2.16.4
60+
uses: github/codeql-action/upload-sarif@v4
6161
with:
6262
sarif_file: results.sarif

‎.github/workflows/slicing-error-check.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Check for project file and set output
1515
id: check_issue_details
16-
uses: actions/github-script@v7
16+
uses: actions/github-script@v9
1717
with:
1818
script: |
1919
const issue = context.payload.issue;
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Add comment if project file is missing
4848
if: ${{ steps.check_issue_details.outputs.needs_info == 'true' }}
49-
uses: peter-evans/create-or-update-comment@v4
49+
uses: peter-evans/create-or-update-comment@v5
5050
with:
5151
issue-number: ${{ github.event.issue.number }}
5252
body: |

‎.github/workflows/stale.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v8
10+
- uses: actions/stale@v10
1111
with:
1212
days-before-pr-close: -1
1313
days-before-stale: 365

‎conanfile.py‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import yaml
55
import tempfile
66
import tarfile
7+
from concurrent.futures import ThreadPoolExecutor, as_completed
78
from datetime import datetime
89
from io import StringIO
910
from pathlib import Path
@@ -345,20 +346,37 @@ def _make_extra_dependency_description(self, dependency_name, dependency_data, d
345346

346347
dependencies[dependency_name] = dependency_description
347348

349+
@staticmethod
350+
def _run_dependency_description_job(job):
351+
job_function, args = job
352+
dependency = {}
353+
job_function(*args, dependency)
354+
return dependency
355+
348356
def _dependencies_description(self):
349357
dependencies = {}
358+
jobs = []
350359

351360
for dependency in [self] + list(self.dependencies.values()):
352-
self._make_conan_dependency_description(dependency, dependencies)
361+
jobs.append((self._make_conan_dependency_description, (dependency,)))
353362

354363
if "extra_dependencies" in dependency.conan_data:
355364
for dependency_name, dependency_data in dependency.conan_data["extra_dependencies"].items():
356-
self._make_extra_dependency_description(dependency_name, dependency_data, dependencies)
365+
jobs.append((self._make_extra_dependency_description, (dependency_name, dependency_data)))
357366

358367
pip_requirements_summary = os.path.abspath(Path(self.generators_folder, "pip_requirements_summary.yml") )
359368
with open(pip_requirements_summary, 'r') as file:
360369
for package_name, package_version in yaml.safe_load(file).items():
361-
self._make_pip_dependency_description(package_name, package_version, dependencies)
370+
jobs.append((self._make_pip_dependency_description, (package_name, package_version)))
371+
372+
if not jobs:
373+
return dependencies
374+
375+
max_workers = min(32, len(jobs))
376+
with ThreadPoolExecutor(max_workers=max_workers) as executor:
377+
futures = [executor.submit(self._run_dependency_description_job, job) for job in jobs]
378+
for future in as_completed(futures):
379+
dependencies.update(future.result())
362380

363381
return dependencies
364382

‎cura/CuraActions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def openDocumentation(self) -> None:
4545
# Starting a web browser from a signal handler connected to a menu will crash on windows.
4646
# So instead, defer the call to the next run of the event loop, since that does work.
4747
# Note that weirdly enough, only signal handlers that open a web browser fail like that.
48-
event = CallFunctionEvent(self._openUrl, [QUrl("https://ultimaker.com/en/resources/manuals/software?utm_source=cura&utm_medium=software&utm_campaign=dropdown-documentation")], {})
48+
event = CallFunctionEvent(self._openUrl, [QUrl("https://ultimaker.com/en/resources/manuals/software")], {})
4949
cura.CuraApplication.CuraApplication.getInstance().functionEvent(event)
5050

5151
@pyqtProperty(bool, notify=undoStackChanged)

‎cura/CuraApplication.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ def __init__(self, *args, **kwargs):
175175

176176
self.default_theme = "cura-light"
177177

178-
self.change_log_url = "https://ultimaker.com/ultimaker-cura-latest-features?utm_source=cura&utm_medium=software&utm_campaign=cura-update-features"
179-
self.beta_change_log_url = "https://ultimaker.com/ultimaker-cura-beta-features?utm_source=cura&utm_medium=software&utm_campaign=cura-update-features"
178+
self.change_log_url = "https://ultimaker.com/ultimaker-cura-latest-features"
179+
self.beta_change_log_url = "https://ultimaker.com/ultimaker-cura-beta-features"
180180

181181
self._boot_loading_time = time.time()
182182

0 commit comments

Comments
 (0)