Closed bitsgalore closed 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):
Remove contents of dist directory:
rm ./dist/*
Create wheel:
python setup.py sdist bdist_wheel
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).
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
Can be adapted from Isolyzer code: https://github.com/KBNLresearch/verifyISOSize