Skip to content

Commit

Permalink
Use (test)pypi in Trusted Publishing placeholder for GitHub Environ…
Browse files Browse the repository at this point in the history
…ments

GitHub Environments is a confusingly explained feature within GitHub that represents deployment targets. When projects get uploaded to PyPI — that a deployment target; same for TestPyPI. They don't represent processes but server-like entities. So using `release` is conceptually incorrect and gives people the wrong idea of what it is.

This is actually connected to Deployments API (and corresponding events) on the GitHub platform. The name Environments is just a misleading interface to describe Deployments that appears in some parts of the ecosystem, like GitHub Actions CI/CD.

In other places, it's called deployments and there's even a tab in repositories using it: https://github.com/cherrypy/cheroot/deployments/pypi. Each deployment can be linked to the corresponding released project version URL.

This patch attempts to align the practices with those used in the PyPUG guide and GitHub docs: actions/starter-workflows#2345.
  • Loading branch information
webknjaz authored Nov 5, 2024
1 parent 01d54aa commit 0c92096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warehouse/templates/manage/account/publishing.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
{% endif %}
</label>
{{ pending_github_publisher_form.environment(
placeholder=gettext("release"),
placeholder="testpypi" if testPyPI else "pypi",
class_="form-group__field",
autocomplete="off",
aria_describedby="environment-errors",
Expand Down

0 comments on commit 0c92096

Please sign in to comment.