An example of how to use tox with a python project to standardise python package creation and testing on the package. For general information the main process of tox is:
Create an sdist package from source code
Create a new virtualenv for testing
Install the freshly built package into the virtualenv
Install any extra dependencies for testing into the virtualenv
Run the specified command to test.
The real advantage of using tox rather than relying on poetry is that the package is created in an isolated way so there's no implicit dependencies lying around in the virtualenv. It also installs the package as non-editable so it's testing the actual package that would be used.
An example of how to use tox with a python project to standardise python package creation and testing on the package. For general information the main process of tox is:
The real advantage of using tox rather than relying on poetry is that the package is created in an isolated way so there's no implicit dependencies lying around in the virtualenv. It also installs the package as non-editable so it's testing the actual package that would be used.
Comments, feedback, suggestions all welcome