A simple importable Python package
pip install import-ready==0.12.0
This repository demonstrates steps needed to publish an importable Python package first to TestPyPI, and second to PyPI. If this demonstration deviates from best practice in any way, please submit an issue on GitHub.
Inside import-ready is a package called huntsville_havoc
that divulges a couple of bona fide secrets that most diehard SPHL Huntsville Havoc fans don't know.
Run as follows from the top level directory in a clean venv with pip-tools installed:
Run as follows from the tests
directory in another clean venv with pip-tools installed:
After completing the above steps, upload your package to PyPI.
Test by importing import-ready itself back from PyPI. Run same as for the TestPyPI case (except this time with pub-requirements.in/.txt
) from the tests
directory in yet another clean venv with pip-tools installed.