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.post65.tar.gz (96.8 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.post65-py3-none-any.whl (89.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: foodx_devops_tools-0.0.0.post65.tar.gz
  • Upload date:
  • Size: 96.8 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.post65.tar.gz
Algorithm Hash digest
SHA256 89ee132cb9587b7c43e39c7338c0938bde12aef3dbd5c8364d40405f40f851ca
MD5 df6d76e205e5c94b974fbe3b4442b6f9
BLAKE2b-256 70212480d0c7716cca503bb657305140af29468c4eb1046b7e630fde07d567b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: foodx_devops_tools-0.0.0.post65-py3-none-any.whl
  • Upload date:
  • Size: 89.0 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.post65-py3-none-any.whl
Algorithm Hash digest
SHA256 d69637edc6bb07d7f2c6b8ea2c8048e24ef92575fbebeaa3e07748215fbb636d
MD5 076e4c05639529f7c8e6fa79470a4322
BLAKE2b-256 b063b8df33915379c483f52c6e0b76b61fe65c07fb0f105b8dc697abc60963d8

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