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

📦 Publish to TestPyPI and PyPI using GitHub Actions #14

Merged
merged 6 commits into from
Jun 7, 2022
Merged

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented Jun 7, 2022

Building the binary wheel and source tarball packages with poetry build and publishing to TestPyPI and PyPI via GitHub Actions.

Need to set TEST_PYPI_API_TOKEN and PYPI_API_TOKEN secrets at https://github.com/weiji14/zen3geo/settings/secrets/actions

References:

@weiji14 weiji14 added this to the 0.1.0 milestone Jun 7, 2022
@weiji14 weiji14 self-assigned this Jun 7, 2022
Change from semver to PEP440 and remove the git hash part of the version string when uploading to TestPyPI. Based on mtkennerly/poetry-dynamic-versioning#78 (comment). Prevents errors like `'0.0.0.post15+f899e49' is an invalid value for Version. Error: Can't use PEP 440 local versions. See https://packaging.python.org/specifications/core-metadata for more information`.
So that people can get the latest development package from https://test.pypi.org/project/zen3geo. Also centering the title on the webpage.
Jumping two steps ahead, why drive when you can fly?
@weiji14 weiji14 marked this pull request as ready for review June 7, 2022 20:57
@weiji14 weiji14 merged commit 3ab2ecd into main Jun 7, 2022
@weiji14 weiji14 deleted the pypi branch June 7, 2022 20:59
@weiji14 weiji14 mentioned this pull request Jun 7, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant