-
Notifications
You must be signed in to change notification settings - Fork 14
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
#40 Publish to PyPi using GitHub Actions #41
Conversation
First commit is just for testing, to see if the API works |
61d8725
to
5224b5a
Compare
9743bb8
to
3ab22f5
Compare
3ab22f5
to
e5d3e14
Compare
@@ -179,7 +187,7 @@ jobs: | |||
|
|||
- name: Publish to PyPI - on tag | |||
if: startsWith(github.ref, 'refs/tags/') | |||
uses: pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598 | |||
uses: pypa/gh-action-pypi-publish@release/v1 |
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 went with the automatically updated version here.
Since constantly is not that active, I think is ok to pin to the tag
@@ -42,3 +42,6 @@ versionfile_source = "constantly/_version.py" | |||
versionfile_build = "constantly/_version.py" | |||
tag_prefix = "" | |||
parentdir_prefix = "constantly-" | |||
|
|||
[bdist_wheel] | |||
universal=0 |
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.
so that py2 wheels are not generated
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 compared with Incremetal's similar trusted publishing flow, and also checked the pypi.org config. LGTM!
Fixes #40
It was the
ci.yaml vs ci.yml
but also the write permission for the token was missing.A push to testing looks ok ... it fails as the version was not ok, as it was not generated for a tag.
https://github.com/twisted/constantly/actions/runs/6690686556/job/18176460120?pr=41#step:8:20
I don't know how to override versioneer: python-versioneer/python-versioneer#199