Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konstin/trusted-publishing-examples
This repository contains a full, self-contained example for trusted publishing with uv
https://github.com/konstin/trusted-publishing-examples
Last synced: 14 days ago
JSON representation
This repository contains a full, self-contained example for trusted publishing with uv
- Host: GitHub
- URL: https://github.com/konstin/trusted-publishing-examples
- Owner: konstin
- Created: 2024-10-28T11:47:47.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T14:33:26.000Z (about 2 months ago)
- Last Synced: 2024-12-07T14:06:52.449Z (19 days ago)
- Language: Python
- Homepage: https://docs.astral.sh/uv/guides/publish/
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# uv trusted publishing examples
Trusted publishing allows uploading package from GitHub Action to PyPI without
manually setting a secret token. Instead, you specify on PyPI a GitHub Actions
workflow that is allowed to publish the package.This repository contains a full, self-contained example for trusted publishing
with uv. The release workflow can be found in
[.github/workflows/release.yml](.github/workflows/release.yml). On PyPI, the
matching configuration is set under
`https://pypi.org/manage/project//settings/publishing/`:![Screenshot from PyPI.
Manage current publishers.
Publisher: GitHub.
Details:
Repository: konstin/trusted-publishing-examples
Workflow: release.yml
Environment name: release](data/trusted-publishing-config-pypi.png)You can find the published package at
https://pypi.org/project/trusted-publishing-examples/.[.github/workflows/ci.yml](.github/workflows/ci.yml) is a minimal test and lint
workflow for a Python package, while
[.github/workflows/errors.yml](.github/workflows/errors.yml) is for testing uv
itself only.## Documentation
- uv's side: https://docs.astral.sh/uv/guides/publish/
- PyPI's side: https://docs.pypi.org/trusted-publishers/