Skip to content

Instantly share code, notes, and snippets.

@andfanilo
Last active May 19, 2022 04:35
Show Gist options
  • Save andfanilo/b4969579e59dac22a0029fc6566cb5b5 to your computer and use it in GitHub Desktop.
Save andfanilo/b4969579e59dac22a0029fc6566cb5b5 to your computer and use it in GitHub Desktop.
Steps to release Streamlit Custom Component package
  1. Pass flag _release to True
  2. Rebuild frontend:
cd package/frontend
rm -rf build/
npm run build
cd ../../
  1. Rebuild Python:
rm -rf build dist
python setup.py sdist bdist_wheel
  1. Test package locally:
cd dist
pip install *.whl
streamlit run something.py
cd ../
  1. Upload package: twine upload dist/*
  2. Pass flag _release back to False
  3. Test upload:
pip install package
streamlit run something.py
  1. Edit CHANGELOG.md
  2. Change version in setup.py and frontend/package.json, commit release version to Github and merge into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment