Quick Start¶
Install¶
Installation from PyPI:
$ python -m pip install edgetest
Installation from conda-forge:
$ conda install -c conda-forge edgetest
Project support type¶
edgetest
works with the following types of projects:
pyproject.toml
setup.cfg
and
requirements.txt
Usage¶
edgetest
allows multi-package, bleeding edge dependency testing. Suppose you have a local package,
mypackage
, with the following requirements.txt
file [1]:
pandas>=0.25.1,<=1.0.0
...
edgetest
allows you to test your package against the latest version of pandas
. If you run
$ edgetest
from within the root directory of mypackage
, edgetest
will
Create a virtual environment in the
.edgetest
folder,Install the local
mypackage
with the following command:$ .edgetest/pandas/bin/python -m pip install .
Upgrade
pandas
using the following command:$ .edgetest/pandas/bin/python -m pip install pandas --upgrade
Run a generic test command:
$ .edgetest/pandas/bin/python -m pytest
Repeat steps 1-5 for any other packages in your
requirements.txt
.Repeat steps 1-5 for a single environment with all packages in
requirements.txt
upgraded.
Important
Remember to add .edgetest/
to your .gitignore
to avoid committing entire conda
environments to Github.
After you run the command, you should get a console output similar to the following:
================== =============== =================== =================
Environment Passing tests Upgraded packages Package version
------------------ --------------- ------------------- -----------------
pandas True pandas 1.2.4
... ... ... ...
all-requirements True pandas 1.2.4
all-requirements ... ... ...
================== =============== =================== =================
Footnotes