-
Notifications
You must be signed in to change notification settings - Fork 8
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
ci: Publish python package to pypi #908
Conversation
.github/workflows/python-wheels.yml
Outdated
cd ${{ matrix.package }} | ||
poetry config repositories.test-pypi https://test.pypi.org/legacy/ | ||
poetry config pypi-token.test-pypi ${{ secrets.PYPI_TEST_PUBLISH }} | ||
poetry publish -r test-pypi --dist-dir ../dist --skip-existing |
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.
Perhaps we could do a --dry-run here, to avoid spamming the test registry
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", |
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.
We are only building with 3.10; should we be building with 3.11 and 3.12 as well?
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.
I added a python 3.12
target to the CI checks in addition to the 3.10
.
The wheels we build are source-based, so they should be portable between versions.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #908 +/- ##
=======================================
Coverage 85.63% 85.63%
=======================================
Files 78 78
Lines 14444 14444
Branches 14444 14444
=======================================
Hits 12369 12369
Misses 1436 1436
Partials 639 639 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Alec Edgington <[email protected]>
Adds a CI job that
Publishes each push to main to the test pypi repository.
When a
quantinuum-hugr-py-v*
tag is pushed, publishes the python package to pypi(this is done generically, so other python
Closes #907
I will make another PR configuring
release-please
, to automate the changelog and releases side.Until we are ready to publish
0.1.0
, we can publish alpha versions manually by pushing tags.