Search prefix directory of installed software and generate environmental modules modulefile.
git clone https://github.com/UConn-HPC/modulefile
pip install --user --upgrade --editable modulefile/
Make sure that ~/.local/bin
or similar is in your path per
PEP 370.
modulefile /path/to/my/app/1.0 > /path/to/my/modulefile/dir/app/1.0
Virtual environments and tests are orchestrated using tox
. Install
tox
using pip
:
pip install --user tox
Run all tests using:
tox
Debug failing tests:
tox -- --pdb
If you add dependencies and get import errors, you need to recreate the tox environment:
tox --recreate
When you edit the files, you're likely going to create lots of linter errors caught by the tox unit tests if your text editor doesn't have interactive error reporting. If you use Emacs, you can configure it for python development by installing elpy.