A parser for the Readium Web Publication Manifest (RWPM), Open Publication Distribution System 2.0 (OPDS 2.0), and Open Distribution to Libraries 1.0 (ODL) formats.
Install the library with pip
pip install palace-webpub-manifest-parser
You can optionally install the python version to run the library with using pyenv.
-
Install pyenv
-
Install one of the supported Python 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 palace-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:
pre-commit run -a
-
To run the unit tests use the following command:
tox -e <python-version>
where
<python-version>
is one of supported python versions:- py38
- py39
- py310
- py311
For example, to run the unit test using Python 3.9 run the following command:
tox -e py39
Releases will be automatically published to PyPI when new releases are created on github by the release.yml workflow. Just create a release in github with the version number that you would like to use as the tag, and the rest will happen automatically.