-
Notifications
You must be signed in to change notification settings - Fork 267
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
Hatchling packaging and UV Release workflow #641
Merged
Merged
Conversation
This file contains 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
- Replace setuptools/hatch with UV for building and publishing - Add manual testing options via workflow_dispatch: - dry-run: Test without publishing - testpypi: Test publish to TestPyPI - build-only: Test just the build step - Add safety measures: - Environment-specific configurations - Delays before publishing - Clear warning messages - Add GitHub CLI usage examples in comments - Enable trusted publishing
Codecov ReportAll modified and coverable lines are covered by tests ✅
Flags with carried forward coverage won't be shown. Click here to find out more. |
teocns
changed the title
Hatchling packaging
Hatchling packaging and UV Release workflow
Jan 12, 2025
Changed --repository to --publish-url for TestPyPI Changed --dry-run to --check-url for dry run mode (this will check if the package exists but won't upload) Left the build-only mode unchanged as it was working correctly Left the release mode with just --token as it uses the default PyPI URL Signed-off-by: Teo <teocns@gmail.com>
areibman
approved these changes
Jan 12, 2025
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.
Great fix Teo!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes
Important Note About Releases⚠️
The automatic publishing on GitHub releases remains unchanged:
Testing Required
Before merging, please:
Set up required secrets:
TEST_PYPI_API_TOKEN
: Create a token at https://test.pypi.org/PYPI_API_TOKEN
for production releasesTest the workflow:
What's Changed
After Merging
Your existing release process stays exactly the same:
The only visible difference will be a 10-second delay with a warning message before publishing, giving you a chance to cancel if needed.