Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.06 KB

pypi_instructions.md

File metadata and controls

33 lines (19 loc) · 1.06 KB

Instructions for updating package on PyPI.

See the following link for detailed instructions, though note that several steps are different.

https://packaging.python.org/tutorials/packaging-projects/#uploading-your-project-to-pypi

Follow the instructions below:

  1. Delete old distributions in dist/ and src/.

  2. Upgrade packages pip, build, and twine.

  3. Copy contents of neuroHarmonize/ to src/neuroHarmonize/.

    cp neuroHarmonize/* src/neuroHarmonize/

  4. Move .setup.cfg to setup.cfg and move setup.py to .setup.py (this overrides setup.py).

    mv .setup.cfg setup.cfg mv setup.py .setup.py

  5. Update version number in setup.cfg.

  6. Build the package.

    python3 -m build

  7. Upload the distribution. Note the username will be __token__ and the password will be the API token from https://pypi.org.

    python3 -m twine upload dist/*

  8. Finally (optional) discard all local changes in the repository to revert to developer state.

    mv setup.cfg .setup.cfg mv .setup.py setup.py