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

Fix Python build in CI #651

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Conversation

miikka
Copy link
Contributor

@miikka miikka commented Aug 6, 2024

Looks like #650 didn't work.

The problem with the Linux build and Windows build are the breaking changes in #575. From action/upload-artifact's README:

Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you will encounter an error.

This PR attempts to fix the problem by uploading multiple artifacts and then downloading them all.

The macOS build has two problems:

Test run here: https://github.com/miikka/trustfall/actions/runs/10270391220 (the final step obviously fails due to lack of permissions)

@miikka miikka requested a review from obi1kenobi as a code owner August 6, 2024 16:40
@obi1kenobi
Copy link
Owner

Thanks for digging into the issues and making the PR, I appreciate it! 🙏

Out of curiosity, what versions of Python are you using this with? Can I just drop support for <3.11 to simplify the macOS publish flow in the future, or is it still too early for that?

Comment on lines +230 to +231
# name: wheels-musllinux-${{ matrix.python-version }}
# path: /io/dist/*.whl
Copy link
Owner

Choose a reason for hiding this comment

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

Btw if you're familiar with musl, I'd love help in getting this working. I ran into some issues when I last tried it, and set it aside since I didn't have the cycles to finish debugging it.

@obi1kenobi obi1kenobi merged commit ce22257 into obi1kenobi:main Aug 6, 2024
19 checks passed
@miikka
Copy link
Contributor Author

miikka commented Aug 6, 2024

Hey, it worked this time! https://pypi.org/project/trustfall/0.1.7/#files

I'm on Python 3.11/3.12 myself. I don't have strong opinions on this, but it does not seem worth it to spend much effort on building wheels for the older versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants