Skip to main content

ASWF Docker Utilities

Project description

ASWF Python Utilities

Code style: black pytest coverage

The aswfdocker command line tool is available to help with package and image builds.

Installation

For users

Clone this repository and run the setup:

git clone https://github.com/AcademySoftwareFoundation/aswf-docker
cd aswf-docker
python3 setup.py install

For developers

Install pipenv for Python 3 first:

pip3 install pipenv

Then clone this repository, start the pipenv shell and install the dev dependencies:

git clone https://github.com/AcademySoftwareFoundation/aswf-docker
cd aswf-docker
pipenv shell
pipenv install --dev

You should now be in a Python virtualenv shell where the aswfdocker command is available.

Finally

You should check the command is working:

aswfdocker --help

Usage

List packages and images

List all known packages:

aswfdocker packages

List all known images:

aswfdocker images

Development

Process

Once in the pipenv shell you should first install the pre-commit hooks by running pre-commit install.

The pre-commit hooks will run the following commands, which can be run individually as well:

  • Run Black on the code to ensure formatting is okay: black python
  • Run the tests to ensure everything is okay: pytest python/aswfdocker
  • Run mypy to ensure static types are okay: mypy python/aswfdocker
  • Run PyLint on the code to ensure linting is okay: pylint python/aswfdocker

To run them all manually use pre-commit run --all-files.

Adding new pip dependencies

  • Run pipenv install xyz
  • Run pipenv-setup sync to update setup.py with added dependency (pipenv-setup is a "dev" dependency already declared in Pipfile)

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

aswfdocker-0.7.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

aswfdocker-0.7.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file aswfdocker-0.7.0.tar.gz.

File metadata

  • Download URL: aswfdocker-0.7.0.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for aswfdocker-0.7.0.tar.gz
Algorithm Hash digest
SHA256 5dca598d6fefb5bcc99a7bf9b20c2f83cd34d09618b03910951f79b397520711
MD5 65e1dabf1db362080156373dcd70255d
BLAKE2b-256 90f467400d56d830899a43c99f1ce35313edc1be78a4aef5eba7bd0debeceb27

See more details on using hashes here.

File details

Details for the file aswfdocker-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: aswfdocker-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for aswfdocker-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d089c454d416bbe77ff8bcfc7214923fb28588c30b45be94340cba7ac1ee7d9
MD5 b739c7d093bddfbc5ed4043bbab1d72a
BLAKE2b-256 9d7a0147f42f8a436c37d51b43696b92150d74e18c5bcfc2543fcd6ed5022367

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