Update package build and deploy - #4289
Conversation
|
Upload to testpypi is failing because we use a local version (the version ends with |
it's the |
There was a problem hiding this comment.
looks good, thanks, bud, reminds me I need to do the setuptools pins in a few places myself 🍺
EDIT: I see that now we have Publish: Test PyPI and Publish: main PyPI as two separate jobs - I'd deffo remove the Test job (comment it out so we can reactivate it if need be), it just adds extra guff since it will always be skipped
Co-authored-by: Valeriu Predoi <valeriu.predoi@gmail.com>
Because it looks like the packaging guide recommends it. I guess you could catch issues with forgetting to include certain files in the package if you would upload it to test pypi, install from there, and then run the tests, but since we haven't encountered any problems with this so far we may as well skip it. |
yeah that's good practice for newbies, we're all seasoned packagers here, bud. Cheers! Let me approve 🍺 |
|
I also enabled manual approval for the package upload step, as that is recommended for security reasons in https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#configuring-trusted-publishing |
| # Use this for testing the package build. | ||
| branches: | ||
| - main | ||
| - v[0-9]+.[0-9]+.x # matches release branches like v2.12.x |
There was a problem hiding this comment.
what's this for? That'll run on our mega latest v2.9.x from three years ago 😁
On a serious note, where's that manual approval enabled/configured, in the PyPI project settings?
There was a problem hiding this comment.
what's this for?
To test that the package build works on the release branch.
That'll run on our mega latest v2.9.x from three years ago
Yes, but only if you would push a commit to it.
On a serious note, where's that manual approval enabled/configured, in the PyPI project settings?
https://github.com/ESMValGroup/ESMValTool/settings/environments/8132850576/edit
There was a problem hiding this comment.
ah thanks, I also reckon that's a good idea 🍺
Description
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number of pull requests: