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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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