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.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfd2ba8c4cb0714599a3e35404a3ab2f40f4d6415f205a254f904f0ca0d81a07 |
|
MD5 | 8337916c8f3fee4facfa8c1843ba846a |
|
BLAKE2b-256 | 389202ea72e4cf7c5bdf7e97a357aee104b80570fb5f5fb95b7ad0d418275908 |