Skip to content
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

Update wheel.yml to build ARM wheels and switch to trusted PyPi upload rather than using a token. #1298

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

rmjarvis
Copy link
Member

@rmjarvis rmjarvis commented Jun 6, 2024

In preparation for releasing version 2.5.3, I added arm wheels to our wheels.yaml script.
Also, PyPi now prefers using trusted publishing. (cf. https://docs.pypi.org/trusted-publishers/adding-a-publisher/) So I switched to that as well.

This is hard to confirm before actually running the script, which will happen when we make the release tag v2.5.3. But @jmeyers314 if you can look through it once to see if there are any errors that you can notice in advance, that would be appreciated.

@rmjarvis rmjarvis linked an issue Jun 6, 2024 that may be closed by this pull request
@rmjarvis rmjarvis added this to the v2.5 milestone Jun 6, 2024
@rmjarvis rmjarvis added build Related to compiling, building, installing admin Administrative stuff, rather than code labels Jun 6, 2024
@rmjarvis
Copy link
Member Author

rmjarvis commented Jun 6, 2024

Note also that I followed your lead in removing python 3.7 from our list of wheel builds.

@rmjarvis rmjarvis requested a review from jmeyers314 June 6, 2024 16:31
Copy link
Member

@jmeyers314 jmeyers314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's at least one bug. But mostly just have to try this and see.

@@ -75,10 +106,16 @@ jobs:
# Just need to build sdist on a single machine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll need to update the above to
needs: [build_linux_wheels, build_musl_wheels, build_macosx_intel_wheels, build_macosx_arm_wheels]

build_macosx_wheels:
name: Build wheels on macosx
build_macosx_intel_wheels:
name: Build wheels on MacOS Intel
runs-on: macos-latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might need to change this to macos-13 to get an intel runner. It's possible an ARM runner will cross-compile though, just need to try and see I guess.

@rmjarvis
Copy link
Member Author

Thanks! I think you're right on both counts.

@rmjarvis rmjarvis merged commit 9fc8471 into releases/2.5 Jun 10, 2024
10 checks passed
@rmjarvis rmjarvis deleted the #1286 branch June 10, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Administrative stuff, rather than code build Related to compiling, building, installing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build MacOS ARM wheels
2 participants