Installation¶
Install gradpy Through PyPI¶
Because we want the users to be able to use our package right away, we suggest the users to install our package in a virtual environment. Here are some suggested steps to install our package for the users:
- Ensure that
virtualenvforpython3has been installed. - Type
virtualenv env --python=python3to create a new virtual environment. - Type
source env/bin/activate. You have now activated a virtual environment. - Type
pip install gradpyto install thegradpypackage. - Users can now try the examples shown in Usage page or docs/examples in our GitHub repo to verify and explore the wonderful
gradpypackage!
Testing gradpy¶
After installation, users may wish to run tests to validate their installed package is working properly. gradpy comes with a test suite that may be easily run using pytest.
- Within the virtual environment in which
gradpyhas been installed, runpip install pytest. note: A terminal restart after installingpytestis likely necessary for changes to take effect. - Type
pytest --pyargs gradpyto run thegradpytest suite.