Skip to main content

No project description provided

Project description

Packit Deploy

PyPI - Version PyPI - Python Version


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

  1. Python3 (>= 3.7)
  2. Hatch

Test and lint

  1. hatch run test
  2. 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

  1. hatch build
  2. pip install dist/packit_deploy-{version}.tar.gz

Publish to PyPi

Ensure you have built a new version of the package:

  1. hatch clean
  2. 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

packit_deploy-0.0.8.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

packit_deploy-0.0.8-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

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

Hashes for packit_deploy-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c0f19c4232067778a2d505a9de7eac177c280ed4499431b5968fd6692e6df69c
MD5 afc4d40d36eeffad0c9deadc7823eca4
BLAKE2b-256 85b08f1a718d5cb1897c9428eae2cdfc6da17ed8fc515b14e7cdb1fff41f921b

See more details on using hashes here.

File details

Details for the file packit_deploy-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for packit_deploy-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd2ba8c4cb0714599a3e35404a3ab2f40f4d6415f205a254f904f0ca0d81a07
MD5 8337916c8f3fee4facfa8c1843ba846a
BLAKE2b-256 389202ea72e4cf7c5bdf7e97a357aee104b80570fb5f5fb95b7ad0d418275908

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page