Skip to main content

Future Agile CICD tooling template

Project description

agileetc

Example python 3.9+ project where we can develop best practices and provide teams with a useful template with the following features:

  • Poetry packaged python project with example CLI entry point.
  • Linux and Windows compatible project.
  • Example read/write YML files.
  • Example Unit Tests.
  • Example flake8 linter configuration.
  • Example line operation via click API allowing project to be ran from command line of from CICD pipelines.
  • Example use of Fabric API to execute external commands.
  • Example use of Texttable for pretty table output.
  • Example Jenkins pipeline.
  • Example GoCD pipeline.
  • Example GitHub actions.
  • Python package publishing to PiPy.
  • Docker image publishing to docker hub.
  • Example usage of python package.
  • Example usage of docker image.

Prerequisites

This project uses poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on, it will manage (install/update) them for you.

Use the installer rather than pip installing-with-the-official-installer.

poetry self add poetry-bumpversion
poetry -V
Poetry (version 1.2.0)

Getting Started

poetry update
poetry install

Run

poetry run agileetc

Lint

poetry run flake8

Test

poetry run pytest

Publish

  • By default we are using PYPI packages.
  • Create yourself an access token for PYPI and then follow the instructions.
export PYPI_USERNAME=__token__ 
export PYPI_PASSWORD=<Your API Token>
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Releasing

We are using poetry-bumpversion to manage release versions.

poetry version patch

Dependency

Once the release has been created it is now available for you to use in other python projects via:

pip install agileetc

And also for poetry projects via:

poetry add aigleetc

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details

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

agileetc-0.0.7.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

agileetc-0.0.7-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file agileetc-0.0.7.tar.gz.

File metadata

  • Download URL: agileetc-0.0.7.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.9.2 Linux/5.18.0-14parrot1-amd64

File hashes

Hashes for agileetc-0.0.7.tar.gz
Algorithm Hash digest
SHA256 15793f437b3b40bf867065f9450348074325f4b219567b16b529c7a056b1748c
MD5 230f4cb922d381b895df30ecc50dfbac
BLAKE2b-256 af7ac39f78e0631b6b7e0494a6e48b7fd532606de6c81cb946d65944fa5b2544

See more details on using hashes here.

File details

Details for the file agileetc-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: agileetc-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.9.2 Linux/5.18.0-14parrot1-amd64

File hashes

Hashes for agileetc-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 21715f1d74b39cbd4eb33e77a1cbb1517a07b9b97f1ca30f7068d987dedf6ebf
MD5 f36b76a0bebdd974d48d361aadb3b0d4
BLAKE2b-256 fdad7ffdc0777c721b97c7652faedd8d2a957ecdb82d413b3d8882394afff47c

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