Skip to main content

Foodx DevOps pipeline utilities.

Project description

Foodx DevOps pipeline utilities.

1 Installation

The foodx_devops_tools package is available from PyPI. Installing into a virtual environment is recommended.

python3 -m venv .venv; .venv/bin/pip install foodx_devops_tools

2 Developers

The first time you clone this project use the following command to set up the virtual environment for the project. Ensure that you have Python3, git and the Python package venv installed on your system.

Note that while venv is in the Python standard library, in Ubuntu it is not installed with the standard Python 3 apt package so you must explicitly install it with sudo apt install python3-venv.

git clone <foodx_devops_tools repo url>
cd foodx_devops_tools
python3 -m venv .venv; .venv/bin/pip install build_harness; .venv/bin/build-harness install

Run the same static analysis as the pipeline using the build-harness utility:

# apply PEP-8 formatting to the code (mandatory as the pipeline will fail if not PEP-8 compliant formatting)
build-harness formatting
# apply formatting and then do additional static checks using flake8, mypy and pydocstyle
build-harness static-analysis
# run unit tests - for this project the test dir specification is necessary to avoid running manual tests
build-harness unit-test --test-dir tests/ci
# generate unit test coverage report
build-harness unit-test --test-dir tests/ci --coverage-html

Examine the .gitlab-ci.yml file for more examples of using the build-harness utility.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foodx_devops_tools-0.16.0.tar.gz (110.6 kB view details)

Uploaded Source

Built Distribution

foodx_devops_tools-0.16.0-py3-none-any.whl (101.1 kB view details)

Uploaded Python 3

File details

Details for the file foodx_devops_tools-0.16.0.tar.gz.

File metadata

  • Download URL: foodx_devops_tools-0.16.0.tar.gz
  • Upload date:
  • Size: 110.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for foodx_devops_tools-0.16.0.tar.gz
Algorithm Hash digest
SHA256 eb78ad36ad9abab72dcfa74b7bb97c65da3dd4e15750a33b68d0420becb0edc7
MD5 978e99b9d2fa36561ceebd6a57a6b4fb
BLAKE2b-256 a17fdcbd996cce4f5e3aeb597e0ac7236d5aa2822c9973dde4e2e524d06f47af

See more details on using hashes here.

File details

Details for the file foodx_devops_tools-0.16.0-py3-none-any.whl.

File metadata

File hashes

Hashes for foodx_devops_tools-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5454557bc39b7ae2d6e10b6f14c5d94f0405a3bda20ea8c72232f5fd304538a7
MD5 34b4d80612411ff5b3a9baa56e0609e5
BLAKE2b-256 b96641ff0573ce9ea2d0fa2c2f1ed03c593131d9cff1f3d99ed105444fe44c7f

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