mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Merge branch 'main' into CURA-10317_other_inconsitent_material_profiles_in_internal_builds
This commit is contained in:
commit
8d20626fd4
2 changed files with 14 additions and 14 deletions
24
.github/workflows/conan-recipe-version.yml
vendored
24
.github/workflows/conan-recipe-version.yml
vendored
|
@ -139,8 +139,8 @@ jobs:
|
||||||
version = Version(tag)
|
version = Version(tag)
|
||||||
except ConanException:
|
except ConanException:
|
||||||
continue
|
continue
|
||||||
if version > latest_branch_version and version < Version("10.0.0"):
|
if version > latest_branch_version and version < Version("6.0.0"):
|
||||||
# FIXME: stupid old Cura tags 13.04 etc. keep popping up
|
# FIXME: stupid old Cura tags 13.04 etc. keep popping up, als the fdm_material tag for firmware are messing with this
|
||||||
latest_branch_version = version
|
latest_branch_version = version
|
||||||
latest_branch_tag = repo.tag(tag)
|
latest_branch_tag = repo.tag(tag)
|
||||||
|
|
||||||
|
@ -151,10 +151,10 @@ jobs:
|
||||||
if commit == latest_branch_tag.commit:
|
if commit == latest_branch_tag.commit:
|
||||||
break
|
break
|
||||||
no_commits += 1
|
no_commits += 1
|
||||||
latest_branch_version_prerelease = latest_branch_version.prerelease
|
latest_branch_version_prerelease = latest_branch_version.pre
|
||||||
if latest_branch_version.prerelease and not "." in latest_branch_version.prerelease:
|
if latest_branch_version.pre and not "." in str(latest_branch_version.pre):
|
||||||
# The prerealese did not contain a version number, default it to 1
|
# The prerealese did not contain a version number, default it to 1
|
||||||
latest_branch_version_prerelease = f"{latest_branch_version.prerelease}.1"
|
latest_branch_version_prerelease = f"{latest_branch_version.pre}.1"
|
||||||
if event_name == "pull_request":
|
if event_name == "pull_request":
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version_prerelease.lower()}+{buildmetadata}pr_{issue_number}_{no_commits}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version_prerelease.lower()}+{buildmetadata}pr_{issue_number}_{no_commits}"
|
||||||
channel_metadata = f"{channel}_{no_commits}"
|
channel_metadata = f"{channel}_{no_commits}"
|
||||||
|
@ -164,16 +164,16 @@ jobs:
|
||||||
else:
|
else:
|
||||||
channel_metadata = f"{channel}_{no_commits}"
|
channel_metadata = f"{channel}_{no_commits}"
|
||||||
if is_release_branch:
|
if is_release_branch:
|
||||||
if latest_branch_version.prerelease == "" and branch_version > latest_branch_version:
|
if latest_branch_version.pre == "" and branch_version > latest_branch_version:
|
||||||
actual_version = f"{branch_version.major}.{branch_version.minor}.0-beta.1+{buildmetadata}{channel_metadata}"
|
actual_version = f"{branch_version.major}.{branch_version.minor}.0-beta.1+{buildmetadata}{channel_metadata}"
|
||||||
elif latest_branch_version.prerelease == "":
|
elif latest_branch_version.pre == "":
|
||||||
# An actual full release has been created, we are working on patch
|
# An actual full release has been created, we are working on patch
|
||||||
bump_up_patch = int(latest_branch_version.patch) + 1
|
bump_up_patch = int(str(latest_branch_version.patch)) + 1
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{bump_up_patch}-beta.1+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{bump_up_patch}-beta.1+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
# An beta release has been created we are working toward a next beta or full release
|
# An beta release has been created we are working toward a next beta or full release
|
||||||
bump_up_release_tag = int(latest_branch_version.prerelease.split('.')[1]) + 1
|
bump_up_release_tag = int(str(latest_branch_version.pre.split('.')[1])) + 1
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.split('.')[0]}.{bump_up_release_tag}+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.pre.split('.')[0]}.{bump_up_release_tag}+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
max_branches_version = Version("0.0.0")
|
max_branches_version = Version("0.0.0")
|
||||||
branches_no_commits = no_commits
|
branches_no_commits = no_commits
|
||||||
|
@ -187,9 +187,9 @@ jobs:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if max_branches_version > latest_branch_version:
|
if max_branches_version > latest_branch_version:
|
||||||
actual_version = f"{max_branches_version.major}.{int(max_branches_version.minor) + 1}.0-alpha+{buildmetadata}{channel}_{branches_no_commits}"
|
actual_version = f"{max_branches_version.major}.{int(str(max_branches_version.minor)) + 1}.0-alpha+{buildmetadata}{channel}_{branches_no_commits}"
|
||||||
else:
|
else:
|
||||||
actual_version = f"{latest_branch_version.major}.{int(latest_branch_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{int(str(latest_branch_version.minor)) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
||||||
|
|
||||||
# %% Set the environment output
|
# %% Set the environment output
|
||||||
output_env = os.environ["GITHUB_OUTPUT"]
|
output_env = os.environ["GITHUB_OUTPUT"]
|
||||||
|
|
|
@ -278,11 +278,11 @@ class CuraConan(ConanFile):
|
||||||
self.requires("pysavitar/5.2.2")
|
self.requires("pysavitar/5.2.2")
|
||||||
self.requires("pynest2d/5.2.2")
|
self.requires("pynest2d/5.2.2")
|
||||||
self.requires("uranium/(latest)@ultimaker/testing")
|
self.requires("uranium/(latest)@ultimaker/testing")
|
||||||
self.requires("fdm_materials/(latest)@{}/testing".format("internal" if self.options.internal else "ultimaker"))
|
self.requires("fdm_materials/(latest)@{}/cura_10317".format("internal" if self.options.internal else "ultimaker"))
|
||||||
self.requires("cura_binary_data/(latest)@ultimaker/testing")
|
self.requires("cura_binary_data/(latest)@ultimaker/testing")
|
||||||
self.requires("cpython/3.10.4")
|
self.requires("cpython/3.10.4")
|
||||||
if self.options.internal:
|
if self.options.internal:
|
||||||
self.requires("cura_private_data/(latest)@ultimaker/testing")
|
self.requires("cura_private_data/(latest)@ultimaker/cura_10317")
|
||||||
|
|
||||||
def build_requirements(self):
|
def build_requirements(self):
|
||||||
if self.options.devtools:
|
if self.options.devtools:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue