-
Notifications
You must be signed in to change notification settings - Fork 837
Updates to wheel deployment workflow #5386
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
base: develop
Are you sure you want to change the base?
Changes from 3 commits
aa9ca15
746ac31
2346799
e2253a2
a99cfd7
c9e70fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ on: | |
| pull_request: | ||
| branches: | ||
| - "package-*" | ||
| - "develop" | ||
| push: | ||
| branches: | ||
| - "package-*" | ||
|
|
@@ -15,6 +16,7 @@ on: | |
| schedule: | ||
| # 3 am Tuesdays and Fridays | ||
| - cron: "0 3 * * 2,5" | ||
| workflow_dispatch: | ||
|
|
||
|
|
||
| concurrency: | ||
|
|
@@ -37,9 +39,11 @@ jobs: | |
| fail-fast: false | ||
| matrix: | ||
| buildplat: | ||
| - [ubuntu-22.04, manylinux_x86_64, x86_64] | ||
| - [windows-2022, win_amd64, AMD64] | ||
| - [macos-14, macosx_*, arm64] | ||
| - [ubuntu-22.04, manylinux, x86_64] | ||
| - [ubuntu-24.04-arm, manylinux, aarch64] | ||
| - [windows-2025, win, amd64] | ||
| - [macos-14, macosx, arm64] | ||
| - [macos-15-intel, macosx, x86_64] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we really want to target builds for intel macs? Can't builds for those be dropped and if someone requires it they can always build themselves?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My take is here is "why not" - there's not really a cost to having them. Is the concern mostly that we don't test it anymore?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd still build them as long as it does not break our system. Not everyone can afford upgrading their laptop every 3 years (yes, M1 was ~2020...) and so providing our software on older architectures makes it more accessible.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mention mostly because Blender has dropped providing explicit binaries for Intel Mac's because of the development burden. As long as it's not breaking anything then I suppose why not, but I think if it starts causing issues we drop it.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My suggestion is that we add intel osx back into the cron test matrix. I am a little bit wary that we've not run tests with it in a while, so have it solely in deployment seems risky. |
||
| python: ["cp311", "cp312", "cp313", "cp314"] | ||
| defaults: | ||
| run: | ||
|
|
@@ -50,11 +54,11 @@ jobs: | |
| fetch-depth: 0 | ||
|
|
||
| - name: Build wheels | ||
| uses: pypa/cibuildwheel@v3.4.0 | ||
| uses: pypa/cibuildwheel@v3.4.1 | ||
| with: | ||
| package-dir: package | ||
| env: | ||
| CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} | ||
| CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}_${{ matrix.buildplat[2] }} | ||
| CIBW_ARCHS: ${{ matrix.buildplat[2] }} | ||
| CIBW_BUILD_VERBOSITY: 1 | ||
|
|
||
|
|
@@ -144,7 +148,7 @@ jobs: | |
| mv dist/mdanalysistests-* testsuite/dist | ||
|
|
||
| - name: upload_source_and_wheels | ||
| uses: pypa/gh-action-pypi-publish@v1.13.0 | ||
| uses: pypa/gh-action-pypi-publish@v1.14.0 | ||
| with: | ||
| skip_existing: true | ||
| repository_url: https://test.pypi.org/legacy/ | ||
|
|
@@ -173,7 +177,7 @@ jobs: | |
| mv dist/mdanalysistests-* testsuite/dist | ||
|
|
||
| - name: upload_tests | ||
| uses: pypa/gh-action-pypi-publish@v1.13.0 | ||
| uses: pypa/gh-action-pypi-publish@v1.14.0 | ||
| with: | ||
| packages_dir: testsuite/dist | ||
| skip_existing: true | ||
|
|
@@ -203,7 +207,7 @@ jobs: | |
| mv dist/mdanalysistests-* testsuite/dist | ||
|
|
||
| - name: upload_source_and_wheels | ||
| uses: pypa/gh-action-pypi-publish@v1.13.0 | ||
| uses: pypa/gh-action-pypi-publish@v1.14.0 | ||
|
|
||
| upload_pypi_mdanalysistests: | ||
| if: | | ||
|
|
@@ -229,7 +233,7 @@ jobs: | |
| mv dist/mdanalysistests-* testsuite/dist | ||
|
|
||
| - name: upload_tests | ||
| uses: pypa/gh-action-pypi-publish@v1.13.0 | ||
| uses: pypa/gh-action-pypi-publish@v1.14.0 | ||
| with: | ||
| packages_dir: testsuite/dist | ||
|
|
||
|
|
@@ -249,8 +253,11 @@ jobs: | |
| type: ["FULL", "MIN"] | ||
| exclude: | ||
| # Multiple deps don't like windows | ||
| # macos doesn't like HOLE2 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a OSX-64 package https://anaconda.org/channels/conda-forge/packages/hole2/files but I guess no osx-arm.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a good point, let me update that comment to osx-arm64.
IAlibay marked this conversation as resolved.
Outdated
|
||
| - os: windows-latest | ||
| type: "FULL" | ||
| - os: "macos-latest" | ||
| type: "FULL" | ||
| - python-version: "3.14" | ||
| type: "FULL" | ||
| env: | ||
|
|
@@ -260,7 +267,7 @@ jobs: | |
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: setup_micromamba | ||
| uses: mamba-org/setup-micromamba@v2 | ||
| uses: mamba-org/setup-micromamba@v3 | ||
| with: | ||
| environment-name: mda | ||
| create-args: >- | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this for testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, removing before I merge.