Skip to content

NYPL-Simplified/python-webpub-manifest-parser

Repository files navigation

python-webpub-manifest-parser

Build Status

A parser for the Readium Web Publication Manifest (RWPM) and Open Publication Distribution System 2.0 (OPDS 2.0) formats.

Usage

  1. Install pyenv

  2. Install one of the supported Python versions mentioned in .python-version or other PATCH versions of the same MINOR versions:

pyenv install <python-version>
  1. Install pyenv-virtualenv plugin

  2. Create a virtual environment:

pyenv virtualenv <virtual-env-name>
pyenv activate <virtual-env-name>
  1. Install the library
pip install webpub-manifest-parser

Setting up a development environment

Running tests using tox

  1. Make sure that a virtual environment is not activated and deactivate it if needed:
deactivate
  1. Install tox and tox-pyenv globally:
pip install tox tox-pyenv
  1. Make your code prettier using isort and black:
make reformat
  1. Run the linters:
make lint
  1. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published