No project description provided
Project description
Packit Deploy
This is the command line tool for deploying Packit.
Install from PyPi
pip install packit-deploy
Usage
So far the only commands are start
, stop
and status
. Admin commands for managing users
and permissions will be added in due course.
$ packit --help
Usage:
packit start <path> [--extra=PATH] [--option=OPTION]... [--pull]
packit status <path>
packit stop <path> [--volumes] [--network] [--kill] [--force]
[--extra=PATH] [--option=OPTION]...
Options:
--extra=PATH Path, relative to <path>, of yml file of additional
configuration
--option=OPTION Additional configuration options, in the form key=value
Use dots in key for hierarchical structure, e.g., a.b=value
This argument may be repeated to provide multiple arguments
--pull Pull images before starting
--volumes Remove volumes (WARNING: irreversible data loss)
--network Remove network
--kill Kill the containers (faster, but possible db corruption)
Here <path>
is the path to a directory that contains a configuration file packit.yml
.
Dev requirements
Test and lint
hatch run test
hatch run lint:fmt
To get coverage reported locally in the console, use hatch run cov
.
On CI, use hatch run cov-ci
to generate an xml report.
Build
hatch build
Install from local sources
hatch build
pip install dist/packit_deploy-{version}.tar.gz
Publish to PyPi
Ensure you have built a new version of the package:
hatch clean
hatch build
Then publish to the test server:
hatch publish -r test
You will be prompted to enter your test.pypi.org username and password. To test the installation, first run Python in a container:
docker run --rm -it --entrypoint bash python
Then:
pip install --index-url https://test.pypi.org/simple packit-deploy --extra-index-url https://pypi.org/simple
Now you should be able to run packit
from the command line and see the usage instructions.
If it is working, you can publish to the real PyPi:
hatch publish
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for packit_deploy-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fdbeb2844dd0e6c1006642bb29dda16d06cc6f66cef663a516fddd4f09e937 |
|
MD5 | 805147c3a0a047518cc80001626cd735 |
|
BLAKE2b-256 | 5e64ecfc1b98eabfca7d44c8597ceec7498cfc94bcdb47926e77c16bd5e527eb |