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

"TypeError: expected string or bytes-like object" after running package-pypi.sh #153

Closed bitsgalore closed 4 years ago

bitsgalore commented 4 years ago

Run packaging script:

sudo ./package-pypi.sh

Result:

running sdist
running egg_info
::
:: etc.
:: 
Uploading distributions to https://test.pypi.org/legacy/
Uploading jpylyzer-2.0.0rc1-py2.py3-none-any.whl
TypeError: expected string or bytes-like object

The package does get uploaded, but the error should not happen (and did not happen earlier).

twine version 1.15.0 (pkginfo: 1.5.0.1, requests: 2.22.0, setuptools: 41.6.0, requests-toolbelt: 0.9.1, tqdm: 4.36.1)

This looks like the following Twine issue:

https://github.com/pypa/twine/issues/342

carlwilson commented 4 years ago

Hi @bitsgalore this feels like it's another side of #152 and it might be fixed best by using a Dockerised stack that packs a consistent set of setuptools and associated. I suspect that the package is fine, markdown long description and all. We can look to fix these before the v2 release.

bitsgalore commented 4 years ago

@carlwilson Yep, was thinking that as well.

bitsgalore commented 4 years ago

Closing because Dockerizing fixes this.