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.0.0.post67.tar.gz (97.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foodx_devops_tools-0.0.0.post67-py3-none-any.whl (89.4 kB view details)

Uploaded Python 3

File details

Details for the file foodx_devops_tools-0.0.0.post67.tar.gz.

File metadata

  • Download URL: foodx_devops_tools-0.0.0.post67.tar.gz
  • Upload date:
  • Size: 97.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for foodx_devops_tools-0.0.0.post67.tar.gz
Algorithm Hash digest
SHA256 825a0e6e1b36e54b48609b53b627656cdd12e7dc8b9e0b8ce105b19111d29379
MD5 7a168f3bfb31450e0885a4af62f22caa
BLAKE2b-256 12f8341eda9d9e291270a9b4cb1d8d3a28e3c9932ae9948c8ff9f2cddbd06523

See more details on using hashes here.

File details

Details for the file foodx_devops_tools-0.0.0.post67-py3-none-any.whl.

File metadata

  • Download URL: foodx_devops_tools-0.0.0.post67-py3-none-any.whl
  • Upload date:
  • Size: 89.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for foodx_devops_tools-0.0.0.post67-py3-none-any.whl
Algorithm Hash digest
SHA256 4feaa0d018757dd50fe90f07eb61d5999fb9cf677f686bdb7a4452aee86eb6b5
MD5 1758f626e6b32e1ac91cffd054e5b205
BLAKE2b-256 cbdd3bedb3a6332f0b758e90739ede28d82bd1c7fff613754472f0288883c818

See more details on using hashes here.

Supported by

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