Skip to content

Commit

Permalink
Merge pull request #327 from Ultimaker/CURA-11622_conan_v2
Browse files Browse the repository at this point in the history
Cura 11622 conan v2
  • Loading branch information
wawanbreton authored Dec 4, 2024
2 parents f26f09d + bc20af0 commit 8b5f894
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 142 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/build.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: CI/CD
on: [push, pull_request]
jobs:
Expand All @@ -8,7 +7,7 @@ jobs:
container: python:3.7-slim
steps:
- name: Checkout master
uses: actions/checkout@v1.2.0
uses: actions/checkout@v4
- name: Install lxml
run: python -m pip install lxml==4.6.5
- name:
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/conan-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@ on:
branches:
- main
- master
- 'PP-*'
- 'CURA-*'
- 'PP-*'
- 'NP-*'
- '[0-9].[0-9]*'
- '[0-9].[0-9][0-9]*'

jobs:
conan-recipe-version:
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@main
with:
project_name: fdm_materials

conan-package-export-linux:
needs: [ conan-recipe-version ]
uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-export.yml@main
conan-package:
uses: ultimaker/cura-workflows/.github/workflows/conan-package.yml@main
with:
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
platform_windows: false
platform_mac: false
install_system_dependencies: false
secrets: inherit
27 changes: 0 additions & 27 deletions .github/workflows/notify_on_print_profile_change.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/release.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/requirements-conan-package.txt

This file was deleted.

7 changes: 1 addition & 6 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from conan.tools.scm import Version
from conan.errors import ConanInvalidConfiguration

required_conan_version = ">=1.56.0"
required_conan_version = ">=2.7.0"


class FDM_MaterialsConan(ConanFile):
Expand All @@ -31,10 +31,6 @@ def export_sources(self):
copy(self, "*.fdm_material", self.recipe_folder, self.export_sources_folder)
copy(self, "*.sig", self.recipe_folder, self.export_sources_folder)

def validate(self):
if Version(self.version) <= Version("4"):
raise ConanInvalidConfiguration("Only versions 5+ are support")

def package(self):
copy(self, "*.fdm_material", self.source_folder, os.path.join(self.package_folder, "res", "resources", "materials"), keep_path = False)
copy(self, "*.sig", self.source_folder, os.path.join(self.package_folder, "res", "resources", "materials"), keep_path = False)
Expand All @@ -43,7 +39,6 @@ def package_info(self):
self.cpp_info.includedirs = []
self.cpp_info.resdirs = ["res"]
self.runenv_info.append_path("CURA_RESOURCES", os.path.join(self.package_folder, "res", "resources"))
self.env_info.CURA_RESOURCES.append(os.path.join(self.package_folder, "res", "resources"))

def package_id(self):
self.info.clear()

0 comments on commit 8b5f894

Please sign in to comment.