chest2vec_0.6b_cxr / PUBLISH.md
lukeingawesome
Update package structure for PyPI: fix setup.py, update README with installation steps, add install script
91c029d

Publishing chest2vec to PyPI

Prerequisites

  1. Create a PyPI account at https://pypi.org/account/register/
  2. Create an API token at https://pypi.org/manage/account/token/
  3. Install twine: pip install twine

Build the package

python3 -m build

This creates dist/chest2vec-0.6.0-py3-none-any.whl and dist/chest2vec-0.6.0.tar.gz

Upload to PyPI

Test first on TestPyPI

# Upload to TestPyPI first to test
twine upload --repository testpypi dist/*
# You'll be prompted for username (__token__) and password (your API token)

Then upload to PyPI

twine upload dist/*
# You'll be prompted for username (__token__) and password (your API token)

After publishing

Once published, users can install with:

pip install chest2vec

Note: Users will still need to install PyTorch and flash-attention separately as documented in the README, since PyPI doesn't support custom index URLs in dependencies.