Version 0.2.2 was too old and had upload issues, which had to be manually fixes
as follows.
First upload attempt
Upload error when running either one of these commands:
make upload-python-test-packagetwine upload --verbose --skip-existing --repository testpypi dist/onionbalance-0.2.2*
Error:
Uploading distributions to https://test.pypi.org/legacy/INFO dist/onionbalance-0.2.2-py2.py3-none-any.whl (77.8 KB)INFO dist/onionbalance-0.2.2.tar.gz (95.4 KB)INFO username set by command optionsINFO Querying keyring for passwordEnter your API token:INFO username: __token__INFO password: <hidden>Uploading onionbalance-0.2.2-py2.py3-none-any.whl100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.3/86.3 kB • 00:00 • 4.9 MB/sINFO Response from https://test.pypi.org/legacy/: 400 Bad RequestINFO <html> <head> <title>400 The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information.</title> </head> <body> <h1>400 The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information.</h1> The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/> The description failed to render in the default format of reStructuredText. See https://test.pypi.org/help/#description-content-type for more information. </body> </html>ERROR HTTPError: 400 Bad Request from https://test.pypi.org/legacy/ Bad Request
Checking dist/onionbalance-0.2.2-py2.py3-none-any.whl: FAILEDERROR `long_description` has syntax errors in markup and would not be rendered on PyPI. line 39: Warning: Cannot scale image! Could not get size from "https://img.shields.io/travis/asn-d6/onionbalance.svg?style=flat": Reading external files disabled.WARNING `long_description_content_type` missing. defaulting to `text/x-rst`.Checking dist/onionbalance-0.2.2.tar.gz: FAILEDERROR `long_description` has syntax errors in markup and would not be rendered on PyPI. line 39: Warning: Cannot scale image! Could not get size from "https://img.shields.io/travis/asn-d6/onionbalance.svg?style=flat": Reading external files disabled.WARNING `long_description_content_type` missing. defaulting to `text/x-rst`.
Since Onionbalance uses versioneer, it would be difficult to checkout the repository on the 0.2.2 tag,
update the README.rst and rebuild a package.
Had to manually edit the package files.
Fixing the wheel file
Unpacked and edited the METADATA file:
cd distmkdir onionbalance-0.2.2cd onionbalance-0.2.2unzip ../onionbalance-0.2.2-py2.py3-none-any.whlvi onionbalance-0.2.2.dist-info/METADATA
cd ..twine check onionbalance-0.2.2-py2.py3-none-any.whlChecking onionbalance-0.2.2-py2.py3-none-any.whl: PASSED with warningsWARNING `long_description_content_type` missing. defaulting to `text/x-rst`.
Cleaned:
rm -rf onionbalance-0.2.2
Fixing the tarball
Unpacked the tarball and edited the README info:
tar xvf onionbalance-0.2.2.tar.gzvi onionbalance-0.2.2/README.rstvi onionbalance-0.2.2/PKG-INFO