-
Notifications
You must be signed in to change notification settings - Fork 29
Migrate conda packaging to rattler-build (v1 recipe format) for GitHub Actions CI #3031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ekomarova
wants to merge
16
commits into
IntelPython:master
Choose a base branch
from
ekomarova:rattler-build-migration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+165
−28
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9af7c57
Migrate conda packaging to rattler-build (v1 recipe format)
ekomarova 4c677df
Merge branch 'master' into rattler-build-migration
ekomarova 9d616be
Fix Windows build: pass GIT_DESCRIBE_NUMBER into rattler-build script…
ekomarova b15031c
Merge branch 'master' into rattler-build-migration
ekomarova ee3ec67
Fix build variant for free-threaded Python 3.14t
ekomarova b2a68e2
Sync recipe.yaml deps with meta.yaml
ekomarova b2bf4a8
Replace miniconda with rattler-build-action in the build job
ekomarova 939c991
Merge branch 'master' into rattler-build-migration
ekomarova 4e0c6d0
Merge branch 'master' into rattler-build-migration
ekomarova 8ba4cc1
Rename recipe to rattler_recipe to fix internal CI
ekomarova da53abb
Use hash instead of version to install rattler-build
ekomarova af48c14
Merge branch 'master' into rattler-build-migration
ekomarova 9321553
Revert build_conda_pkg.yml
ekomarova d1820fc
Merge branch 'master' into rattler-build-migration
ekomarova 8082a58
Address PR review comments
ekomarova cbccd6c
Merge branch 'master' into rattler-build-migration
ekomarova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| schema_version: 1 | ||
|
ekomarova marked this conversation as resolved.
|
||
|
|
||
| context: | ||
| max_compiler_and_mkl_version: ${{ env.get("MAX_BUILD_CMPL_MKL_VERSION", default="2027.0a0") }} | ||
| required_compiler_version: ${{ env.get("MIN_BUILD_CMPL_VERSION", default="2026.1.1") }} | ||
| required_mkl_version: "2026.0" | ||
| required_dpctl_version: 0.23.0dev0 | ||
|
|
||
| package: | ||
| name: dpnp | ||
| version: ${{ env.get("GIT_DESCRIBE_TAG") }} | ||
|
|
||
| source: | ||
| path: .. | ||
|
|
||
| build: | ||
| number: ${{ env.get("GIT_DESCRIBE_NUMBER") }} | ||
| script: | ||
| file: ${{ "bld.bat" if win else "build.sh" }} | ||
| env: | ||
| WHEELS_OUTPUT_FOLDER: ${{ env.get("WHEELS_OUTPUT_FOLDER", default="") }} | ||
| OVERRIDE_INTEL_IPO: ${{ env.get("OVERRIDE_INTEL_IPO", default="") if win else "" }} | ||
| # conda-build used to forward GIT_DESCRIBE_NUMBER into the build script | ||
| # automatically; rattler-build does not, so bld.bat's | ||
| # `wheel tags --remove --build %GIT_DESCRIBE_NUMBER%` was silently | ||
| # getting an empty value on Windows, which made that command fail and | ||
| # broke the wheel install step further down the script. | ||
| GIT_DESCRIBE_NUMBER: ${{ env.get("GIT_DESCRIBE_NUMBER") }} | ||
| dynamic_linking: | ||
| missing_dso_allowlist: | ||
| - "*DPCTLSyclInterface*" | ||
| - if: win | ||
| then: "*/dpnp_backend_c.dll" | ||
|
|
||
| requirements: | ||
| host: | ||
| - python | ||
| - pip >=25.0 | ||
| - pybind11 >=3.0.2 | ||
| - python-build>=1.2.2 | ||
| - cmake>=3.31.6 | ||
| - cython>=3.1.0 | ||
| - dpctl >=${{ required_dpctl_version }} | ||
| - if: not win | ||
| then: ninja>=1.11.1 | ||
| - numpy | ||
| - scikit-build>=0.18.1 | ||
| - setuptools>=79.0.1 | ||
| - wheel>=0.45.1 | ||
| - versioneer ==0.29 | ||
| # versioneer dependency | ||
| - if: match(python, "<3.11") | ||
| then: tomli | ||
| # Do not use pyproject.toml for setting dependencies on OneAPI packages | ||
| - mkl-devel-dpcpp >=${{ required_mkl_version }},<${{ max_compiler_and_mkl_version }} | ||
| - onedpl-devel | ||
| - tbb-devel | ||
| - if: win | ||
| then: opencl-headers >=2025.06.13 | ||
| build: | ||
| - ${{ compiler('cxx') }} | ||
| - ${{ stdlib('c') }} | ||
| - ${{ compiler('dpcpp') }} >=${{ required_compiler_version }},<${{ max_compiler_and_mkl_version }} | ||
| run: | ||
| - python | ||
| - ${{ pin_compatible('dpctl', lower_bound='x.x.x', upper_bound=None) }} | ||
| - ${{ pin_compatible('dpcpp-cpp-rt', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('intel-sycl-rt', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('intel-cmplr-lib-rt', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('mkl', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('onemkl-sycl-blas', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('onemkl-sycl-dft', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('onemkl-sycl-lapack', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('onemkl-sycl-rng', lower_bound='x.x', upper_bound='x') }} | ||
| - ${{ pin_compatible('onemkl-sycl-vm', lower_bound='x.x', upper_bound='x') }} | ||
| - numpy | ||
| - if: linux | ||
| then: ocl-icd-system | ||
| - if: win | ||
| then: khronos-opencl-icd-loader | ||
| ignore_run_exports: | ||
| by_name: | ||
| - dpctl | ||
| - numpy | ||
| - python | ||
| # building with Intel DPC++ and do not import the MSVC runtime DLLs | ||
| - if: win | ||
| then: vc14_runtime | ||
| - if: win | ||
| then: ucrt | ||
|
|
||
| tests: | ||
| - script: | ||
| - pip check | ||
| - python -c "import dpnp; print(dpnp.__version__)" | ||
|
ekomarova marked this conversation as resolved.
|
||
| - python -m dpctl -f | ||
| requirements: | ||
| run: | ||
| - pip | ||
| - script: ${{ "run_test.bat" if win else "run_test.sh" }} | ||
| requirements: | ||
| run: | ||
| - pytest | ||
| - setuptools | ||
| - if: match(python, "<3.14") | ||
| then: scipy | ||
|
|
||
| about: | ||
| license: BSD-3-Clause | ||
| license_file: LICENSE.txt | ||
| summary: Data Parallel Extension for NumPy | ||
| description: | | ||
| <strong>LEGAL NOTICE: Use of this software package is subject to the | ||
| software license agreement (as set forth above, in the license section of | ||
| the installed Conda package and/or the README file) and all notices, | ||
| disclaimers or license terms for third party or open source software | ||
| included in or with the software.</strong> | ||
| <br/><br/> | ||
| EULA: <a href="https://opensource.org/licenses/BSD-3-Clause" target="_blank">BSD-3-Clause</a> | ||
| <br/><br/> | ||
|
|
||
|
|
||
| homepage: https://github.com/IntelPython/dpnp | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - antonwolfy | ||
| - vlad-perevezentsev | ||
| - ndgrigorian | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.