Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 988 Bytes

File metadata and controls

55 lines (38 loc) · 988 Bytes

Releasing to PyPI

Use this checklist to publish a new neurosnap release to PyPI.

Prerequisites

  • Ensure the package version in pyproject.toml has been bumped.
  • Ensure you can authenticate with PyPI (API token recommended).
  • Ensure release tooling is installed:
python -m pip install -U build twine pkginfo

1. Run tests

pytest

2. Clean old build artifacts

rm -rf dist/ build/ src/neurosnap.egg-info

3. Build sdist and wheel

python -m build

4. Validate built distributions

twine check dist/*

5. Upload to PyPI

# This prompts for credentials unless configured via .pypirc or environment variables.
# export TWINE_USERNAME=__token__
# export TWINE_PASSWORD='pypi-...'
twine upload dist/*

Notes

  • PyPI token auth uses username __token__ and password pypi-....
  • If upload fails because a file already exists, confirm version bump or use:
twine upload --skip-existing dist/*