update: clarified package installation methods.
This commit is contained in:
@@ -23,7 +23,7 @@ pip install . # normal install: copies the package in
|
|||||||
### Install from git
|
### Install from git
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install git+<repository-url>@main
|
pip install git+https://gitea.koszewscy.waw.pl/koszewscy/python-helpers.git@main
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running without installing
|
### Running without installing
|
||||||
@@ -43,31 +43,6 @@ PYTHONPATH=/path/to/python-helpers python3 -m python_helpers.cli.token_decoder -
|
|||||||
The module path replaces the installed command's short hyphenated name; the underlying `main()`
|
The module path replaces the installed command's short hyphenated name; the underlying `main()`
|
||||||
and behavior are identical.
|
and behavior are identical.
|
||||||
|
|
||||||
### Install from the Gitea package registry
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pip install --index-url https://<username>:<token>@<gitea-host>/api/packages/<owner>/pypi/simple python-helpers
|
|
||||||
```
|
|
||||||
|
|
||||||
## Publishing
|
|
||||||
|
|
||||||
Add the registry to `~/.pypirc`:
|
|
||||||
|
|
||||||
```
|
|
||||||
[distutils]
|
|
||||||
index-servers = gitea
|
|
||||||
|
|
||||||
[gitea]
|
|
||||||
repository = https://<gitea-host>/api/packages/<owner>/pypi
|
|
||||||
username = <username>
|
|
||||||
password = <token>
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pip install build twine
|
|
||||||
python3 -m build
|
|
||||||
python3 -m twine upload --repository gitea dist/*
|
|
||||||
```
|
|
||||||
|
|
||||||
> **Note** a name and version already in the registry cannot be republished. Raise `version`
|
> **Note** a name and version already in the registry cannot be republished. Raise `version`
|
||||||
> in `pyproject.toml` before each upload.
|
> in `pyproject.toml` before each upload.
|
||||||
|
|||||||
Reference in New Issue
Block a user