qurator-spk / setuptools_ocrd

Manage your package version through ocrd-tool.json
Apache License 2.0
1 stars 0 forks source link

Publish on PyPI #5

Closed mikegerber closed 1 year ago

mikegerber commented 1 year ago
mikegerber commented 1 year ago

0.0.4 is now available on PyPI for testing → https://pypi.org/project/setuptools-ocrd/

👀 @kba

mikegerber commented 1 year ago

Metadata looks ok now on PyPI. I removed the extra license field from pyproject.toml as https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata-license says, that the classifiers should be used instead. The LICENSE file stays, just in case.

mikegerber commented 1 year ago

Now publishing to PyPI with a GitHub Action. This works really really well and elegantly (e.g. using trusted publishing for the credentials).

mikegerber commented 1 year ago

More info on Trusted publishing (= GitHub using OIDC to authenticate with PyPI + authorizing GitHub Actions to publish a certain package "from" a specific GitHub repo):

https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/

mikegerber commented 1 year ago

Making the workflow reusable for e.g. dinglehopper is blocked by external issues, I opened #9 for this.

mikegerber commented 1 year ago

GitHub and PyPI releases are now created by the same GH workflow (release.yml) and share building and testing.

Testing is just a dummy test, see #6 in the future.