Packaging¶
Install twine
:
pip install twine
Create source distribution (don’t create platform wheel, because PyPI accepts only manylinux1 wheels:
python setup.py sdist
Test upload to TestPyPI:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Test installation:
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple foamgen
Upload to PyPI:
twine upload dist/*