update: Referencing python-helpers by URL.
This commit is contained in:
@@ -20,9 +20,12 @@ pip install . # normal install: copies the package in
|
|||||||
### Install from git
|
### Install from git
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pip install git+<repository-url>@main
|
pip install git+https://gitea.koszewscy.waw.pl/koszewscy/mailinabox.git@main
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`python-helpers` is declared as a git direct reference, so pip clones it rather than looking it
|
||||||
|
up on an index.
|
||||||
|
|
||||||
### Running without installing
|
### Running without installing
|
||||||
|
|
||||||
From a repo checkout, run the command as a module with `-m` instead of installing the package:
|
From a repo checkout, run the command as a module with `-m` instead of installing the package:
|
||||||
@@ -37,37 +40,6 @@ From outside the checkout, point `PYTHONPATH` at it:
|
|||||||
PYTHONPATH=/path/to/mailinabox python3 -m mailinabox.cli.miab --help
|
PYTHONPATH=/path/to/mailinabox python3 -m mailinabox.cli.miab --help
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install from the Gitea package registry
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pip install --index-url https://<username>:<token>@<gitea-host>/api/packages/<owner>/pypi/simple mailinabox
|
|
||||||
```
|
|
||||||
|
|
||||||
> **Note** `python-helpers` is resolved from the same registry. If it is published elsewhere,
|
|
||||||
> install it first and add `--no-deps` here.
|
|
||||||
|
|
||||||
## Publishing
|
|
||||||
|
|
||||||
Add the registry to `~/.pypirc`:
|
|
||||||
|
|
||||||
```
|
|
||||||
[distutils]
|
|
||||||
index-servers = gitea
|
|
||||||
|
|
||||||
[gitea]
|
|
||||||
repository = https://<gitea-host>/api/packages/<owner>/pypi
|
|
||||||
username = <username>
|
|
||||||
password = <token>
|
|
||||||
```
|
|
||||||
|
|
||||||
```sh
|
|
||||||
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`
|
|
||||||
> in `pyproject.toml` before each upload.
|
|
||||||
|
|
||||||
## Library
|
## Library
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ readme = "README.md"
|
|||||||
license = "MIT"
|
license = "MIT"
|
||||||
license-files = ["LICENSE"]
|
license-files = ["LICENSE"]
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
dependencies = ["python-helpers>=1.0.0"]
|
dependencies = ["python-helpers @ git+https://gitea.koszewscy.waw.pl/koszewscy/python-helpers.git@main"]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
miab = "mailinabox.cli.miab:main"
|
miab = "mailinabox.cli.miab:main"
|
||||||
|
|||||||
Reference in New Issue
Block a user