To get started with the ENVironment EXPeriment package:
- create an environment with
mamba env create -f environment.yml
- activate the environemnt with
mamba activate envexp
- edit the
./envexp/environment.yml
to contain the dependencies you need - edit the
./envexp/user_test_code.py
python file to test specific code - test that all the imports/tests work using CLI
test-env --library <optional> --input-dir <optional> --commit-message <required>
usage: test-env [-h] [--library LIBRARY] [--input-dir INPUT_DIR] [--commit-message COMMIT_MESSAGE]
options:
-h, --help show this help message and exit
--library LIBRARY The library to search for in the imports. E.g. 'qtpy'.
--input-dir INPUT_DIR
The path to the source code of a repo. E.g. 'C:\path\to\sleap'. If no directory is provided, then testing the
repo import is skipped. If a directory is provided without a library argument, then the entire repo is copied
and tested for import-ability. If both a directory and a library are provided, then only the imports from the
library are copied.
--commit-message COMMIT_MESSAGE
The commit message to use when committing the changes.
Generated with code2flow.