docs: python packaging -- link to linux docs
This commit is contained in:
@@ -2,27 +2,6 @@
|
||||
|
||||
## Gitea
|
||||
|
||||
To publish to Gitea you need a personal access token.
|
||||
|
||||
Packages belong to an organization (e.g. `sls` or a user `labrec_b`), not a repo.
|
||||
|
||||
You can then link a repo to use the packages.
|
||||
|
||||
Configure your `~/pypirc`:
|
||||
|
||||
```
|
||||
[distutils]
|
||||
index-servers = gitea
|
||||
|
||||
[gitea]
|
||||
; repository = https://gitea.psi.ch/api/packages/sls/pypi
|
||||
repository = https://gitea.psi.ch/api/packages/labrec_b/pypi
|
||||
username = labrec_b
|
||||
password = <personal-access-token>
|
||||
```
|
||||
|
||||
then
|
||||
|
||||
```
|
||||
python3 -m twine upload --repository gitea dist/* --verbose
|
||||
```
|
||||
See:
|
||||
- docs: https://linux.psi.ch/documentation/services/gitea/gitea-packages/#pypi-package-registry
|
||||
- example: https://gitea.psi.ch/sls/OM
|
||||
|
||||
Reference in New Issue
Block a user