This page describes how to set up a development environment, and other information useful for developers to be aware of.
The following instructions assume that "pyenv" is installed to enable the setup of an isolated Python environment.
See the following for setup instructions:
- Clone the "aws-archiver" Git repository:
$ git clone [email protected]:umd-lib/aws-archiver.git
- Switch to the "aws-archiver" directory:
$ cd aws-archiver
- Set up the virtual environment:
$ pyenv install --skip-existing $(cat .python-version)
$ python -m venv .venv --prompt aws-archiver
$ source .venv/bin/activate
- Run "pip install", including the "dev" and "test" dependencies:
$ pip install -e .'[dev,test]'
The unit tests for the application can be run using "pytest", i.e.:
$ pytest
Application code style should generally conform to the guidelines in PEP 8. The "pycodestyle" tool to check compliance with the guidelines can be run using:
$ pycodestyle .