Skip to content

Latest commit

 

History

History
78 lines (53 loc) · 1.55 KB

HOW-TO-RELEASE.md

File metadata and controls

78 lines (53 loc) · 1.55 KB

Notes for when Brian needs to publish a new release.

How to publish a new release of the herbie-data package

Pre-step

Update Herbie version number in

  • setup.py
  • ./CITATION.cff
  • ./docs/conf.py
  • Build the docs (one last time before release)
  • Create a tag and release in GitHub

📦 Publish to PyPI

Created a new conda environment with twine, pip, and build

# To create an environment for publishing to PyPI
conda create -n pypi python=3 twine pip build -c conda-forge

# To update that conda environment
conda update -n pypi --all
## THIS IS OLD; DO NOT USE
# Build the package for PyPI
conda activate pypi
cd Herbie
python setup.py sdist bdist_wheel
twine check dist/*

NEW - Using the build tool to build my package following the steps from here

conda activate pypi
cd Herbie
python -m build
twine check dist/*

Upload Package PyPI

# Upload to TEST PyPI site
twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*

# followed by username and password
# Upload to REAL PyPI site
twine upload --skip-existing dist/*

# followed by username/password

🐍 Publish to Conda

Go to herbie-data feedstock, update the version.

(More details coming soon)


Miscellaneous

See PyPI download statistics at: https://pepy.tech/project/herbie-data

Check import time with

python -X importtime herbie/archive.py > importtime.txt 2>&1