-
Notifications
You must be signed in to change notification settings - Fork 2
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
Move to uv #540
Move to uv #540
Conversation
@zain-sohail release to test-pypi does not work right now, as it goes via your account with is refused because of missing 2FA. However, I believe the workflow is working in general and would be for main pypi. But maybe it's worth testing on test.pypi before merging. For this, you would have to create a "bublisher" there. |
Fixed that now. Currently uv is adding dev tags which pypi doesn't allow
This is probably not critical to change unless the same thing happens on main. I've not looked at uv in detail yet. |
I see. For the actual releases, this won't be a problem, but the workflow dispatch action does not make sense then. I actually tested the same approach for the specsanalyzer package already, and it works on release, so we should be good. I will update the workflow accordingly. |
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.
LGTM!
Any changes, we can also do later. I think the maintainer docs need to be updated.
I also updated the docs now. If you want, you can give it a final look. |
Everything looks ok. I just didn't understand why the prereleases were removed from release workflow. Was there a problem with them? |
I did not really see the advantage of having them. If anyone wants a version more recent than the last release, you can always install from git. The problem I had several times with the old workflow was that if you merge a second PR while the pre-release workflow was still running after merging one PR, the version bump would not work because of the intermediate merge commit. As I don't see a reason for having the pre-releases, easiest solution was to remove them. Also, the dynamic dev versions apparently are not allowed on pypi. |
Here https://discuss.python.org/t/generating-pep-440-compliant-development-releases-containing-githash/12302/4 it is stated:
|
My reason was simply that many users are struggling with git but doing pip install is generally known to most. However, as you pointed out, this is not the recommendation. |
Moves the workflows and packageing system to uv.
Also uses dynamic versioning based on the git tags and commits, and removes the prerelease publishing
Closes #531