Skip to content

Commit 97df42a

Browse files
authored
Merge pull request #50 from Ultimaker/CURA-11622_conan_v2
Cura 11622 conan v2
2 parents fcc178c + 24b645b commit 97df42a

File tree

4 files changed

+14
-38
lines changed

4 files changed

+14
-38
lines changed

.github/workflows/conan-package.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,26 @@ on:
55
paths:
66
- 'cura/**'
77
- 'uranium/**'
8-
- 'windows'
8+
- 'windows/**'
99
- '.github/workflows/conan-package.yml'
10-
- '.github/workflows/requirements-runner.txt'
1110
- 'conanfile.py'
1211
- 'conandata.yml'
1312
branches:
1413
- main
14+
- master
1515
- 'CURA-*'
16+
- 'PP-*'
17+
- 'NP-*'
1618
- '[0-9].[0-9]*'
19+
- '[0-9].[0-9][0-9]*'
1720
tags:
1821
- '[0-9]+.[0-9]+.[0-9]*'
1922
- '[0-9]+.[0-9]+.[0-9]'
2023

2124
jobs:
22-
conan-recipe-version:
23-
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main
25+
conan-package:
26+
uses: ultimaker/cura-workflows/.github/workflows/conan-package.yml@main
2427
with:
25-
project_name: cura_binary_data
26-
27-
conan-package-export:
28-
needs: [ conan-recipe-version ]
29-
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-export.yml@main
30-
with:
31-
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
32-
recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
28+
platform_mac: false
29+
install_system_dependencies: false
3330
secrets: inherit
34-
35-
conan-package-create-windows:
36-
needs: [ conan-recipe-version, conan-package-export ]
37-
38-
uses: ultimaker/cura-workflows/.github/workflows/conan-package-create-windows.yml@main
39-
with:
40-
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
41-
secrets: inherit
42-
43-
conan-package-create-linux:
44-
needs: [ conan-recipe-version, conan-package-export ]
45-
46-
uses: ultimaker/cura-workflows/.github/workflows/conan-package-create-linux.yml@main
47-
with:
48-
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
49-
secrets: inherit

.github/workflows/requirements-runner.txt

Whitespace-only changes.

conanfile.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from conan.tools.scm import Version
66
from conan.tools.files import copy, update_conandata
77

8-
required_conan_version = ">=1.59.0"
8+
required_conan_version = ">=2.7.0"
99

1010

1111
class CuraBinaryDataConan(ConanFile):
@@ -31,10 +31,6 @@ def export_sources(self):
3131
copy(self, "*", os.path.join(self.recipe_folder, "uranium"), os.path.join(self.export_sources_folder, "uranium"))
3232
copy(self, "*", os.path.join(self.recipe_folder, "windows"), os.path.join(self.export_sources_folder, "windows"))
3333

34-
def validate(self):
35-
if (self.version != None) and (Version(self.version) <= Version("4")):
36-
raise ConanInvalidConfiguration("Only versions 5+ are supported!")
37-
3834
def layout(self):
3935
self.cpp.package.resdirs = [os.path.join("resources", "cura"), os.path.join("resources", "uranium"), "windows"]
4036

@@ -51,10 +47,8 @@ def package_info(self):
5147
self.runenv_info.append_path("PATH", os.path.join(self.cpp.package.resdirs[2], "arduino", "CP210x_6.7.4"))
5248
self.runenv_info.append_path("PATH", os.path.join(self.cpp.package.resdirs[2], "arduino", "FTDI USB Drivers", "amd64"))
5349

54-
def package_id(self):
50+
def compatibility(self):
5551
del self.info.settings.compiler
5652
del self.info.settings.build_type
57-
if self.settings.os != "Windows":
58-
compatible_pkg = self.info.clone()
59-
compatible_pkg.settings.os = "Linux"
60-
self.compatible_packages.append(compatible_pkg)
53+
if self.info.settings.os != "Windows":
54+
return [{"settings": [("os", "Linux")]}]

uranium/resources/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Place uranium specific resources here

0 commit comments

Comments
 (0)