-
Set version in lap/init.py to X.Y.Z
-
Create a source distribution:
python setup.py sdist
-
Upload it to the test server (this requires setting up ~/.pypirc):
twine upload --repository testpypi dist/*
-
Check install from test pypi into a venv:
virtualenv test . test/bin/activate pip install numpy pip install --index-url https://test.pypi.org/simple/ lap
-
Make sure stuff works there:
pip install pytest pip install scipy pytest $VIRTUAL_ENV/lib/python*/site-packages/lap/
-
Tag and release on github:
git tag vX.Y.Z git push origin vX.Y.Z
And follow https://help.github.com/articles/creating-releases/
-
Finally, upload to the live pypi server:
twine upload dist/*