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

#40 Publish to PyPi using GitHub Actions #41

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

adiroiban
Copy link
Member

@adiroiban adiroiban commented Oct 30, 2023

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

@adiroiban
Copy link
Member Author

First commit is just for testing, to see if the API works

@@ -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
Copy link
Member Author

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
Copy link
Member Author

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

@adiroiban adiroiban requested a review from a team October 30, 2023 09:24
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.

fix broken release infrastructure
3 participants