openpreserve / jpylyzer

JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
http://jpylyzer.openpreservation.org/
Other
69 stars 28 forks source link

Installation using PyPI / pip #98

Closed bitsgalore closed 7 years ago

bitsgalore commented 7 years ago

Can be adapted from Isolyzer code: https://github.com/KBNLresearch/verifyISOSize

bitsgalore commented 7 years ago

Packaging process has changed quite a bit since last time I checked; most current (?) instructions here:

https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi

Basic steps (here uploading to testpypi for now):

  1. Remove contents of dist directory:

    rm ./dist/*
  2. Create wheel:

    python setup.py sdist bdist_wheel
  3. Upload package:

    twine upload --repository testpypi dist/*

Installation from test.pypi works:

sudo -H pip install -U --index-url https://test.pypi.org/simple/ jpylyzer

And running jpylyzer works also (tested for both Py2.7 and Py 3.5 by using pip2 and pip commands).

bitsgalore commented 7 years ago

Done: https://github.com/openpreserve/jpylyzer/releases/tag/1.18.0b4

bitsgalore commented 7 years ago

Addition: if upload via twine fails with SSLError messages, upgrade pyOpenSSL:

sudo -H pip install -U pyOpenSSL 

See also (same issue): https://github.com/requests/requests/issues/4246