hello-NOO Python Package
This is an example repository for a python package, for my own reference.
PyPI:
GitHub:
Install
Not that you would want to, but you can install with
pip install hello-NOO
Developer install
- Clone this repository and
cd
into it. - Create a virtual environment:
python3 -m venv .venv
- Activate the virtual environment: (linux)
source .venv/bin/activate
- Install the package locally: (linux)
pip install -e ./[dev,docs]
Building
# Build a source distribution (stored in dist/)
python -m build --sdist
# Build a wheel (stored in dist/)
python -m build --wheel
# Run a test to check all the builds in dist
twine check dist/*
Upload to PyPi
Once your account is set up, run
twine upload --verbose --repository pypi dist/*
Other Notes
To reset the installation
pip freeze --exlucde hello-NOO | xargs pip uninstall -y
pip uninstall hello-NOO
Resources
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#classifiers