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
File details
Details for the file packit_deploy-0.0.8.tar.gz
.
File metadata
- Download URL: packit_deploy-0.0.8.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f19c4232067778a2d505a9de7eac177c280ed4499431b5968fd6692e6df69c |
|
MD5 | afc4d40d36eeffad0c9deadc7823eca4 |
|
BLAKE2b-256 | 85b08f1a718d5cb1897c9428eae2cdfc6da17ed8fc515b14e7cdb1fff41f921b |
File details
Details for the file packit_deploy-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: packit_deploy-0.0.8-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfd2ba8c4cb0714599a3e35404a3ab2f40f4d6415f205a254f904f0ca0d81a07 |
|
MD5 | 8337916c8f3fee4facfa8c1843ba846a |
|
BLAKE2b-256 | 389202ea72e4cf7c5bdf7e97a357aee104b80570fb5f5fb95b7ad0d418275908 |