Required tools for this repo are task-runner and docker-ce.
Install task runner: https://github.com/go-task/task Install docker-ce: https://docs.docker.com/get-docker/
To see what options are available simply execute:
task
All development is done using a docker image. To create the image execute the following command. This command only has to be repeated if requirements.txt or requirements-dev.txt change.
Dependencies are defined in requirements.txt for the archivist package and requirements-dev.txt for the tools used to build, test and publish the archivist package.
To build the docker builder image:
task builder
Make a change to the code and validate the changes:
task check
If ok run the unittests:
task unittests
If 100% coverage and no test failures generate the wheel:
task wheel
Lastly to publish the package to PyPi:
task publish
Note that this requires credentials and will only normally be done by a Jitsuin representative.
To build the docker builder image with default Python version 3.6:
task builder
To check the style
task check
To run the unittests:
task unittests
To build the docker builder image with Python 3.7:
task builder-3.7
To check the style
task check
To run the unittests:
task unittests
To build the docker builder image with Python 3.7:
task builder-3.8
To check the style
task check
To run the unittests:
task unittests
To build the docker builder image with Python 3.7:
task builder-3.8
To check the style
task check
To run the unittests:
task unittests