A parser for the Readium Web Publication Manifest (RWPM) and Open Publication Distribution System 2.0 (OPDS 2.0) formats.
-
Install pyenv
-
Install one of the supported Python versions mentioned in .python-version or other PATCH versions of the same MINOR versions:
pyenv install <python-version>
-
Install pyenv-virtualenv plugin
-
Create a virtual environment:
pyenv virtualenv <virtual-env-name>
pyenv activate <virtual-env-name>
- Install the library
pip install webpub-manifest-parser
- Make sure that a virtual environment is not activated and deactivate it if needed:
deactivate
- Install
tox
andtox-pyenv
globally:
pip install tox tox-pyenv
- Make your code prettier using isort and black:
make reformat
- Run the linters:
make lint
- To run the unit tests use the following command:
make test-<python-version>
where <python-version>
is one of supported python versions:
- py27
- py36
- py37
- py38
For example, to run the unit test using Python 2.7 run the following command:
make test-py27