Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.54 KB

CONTRIBUTING.md

File metadata and controls

59 lines (50 loc) · 1.54 KB

Contributing

Publishing

This package is available on PyPI. We can create a new version as often as whenever a PR is merged.

To publish:

  1. PyPI Access
  • Ask @chriddyp to be added as a maintainer on PyPI. Note that for security reasons, this is restricted to Plotly employees.
  • PyPI has a new website, register your account here: https://pypi.org/.
  • If you already have a PyPI account, you'll need to make sure that your email is registered
  • Add your PyPI credentials to a file at ~/.pypirc. It will look something like:
[distutils]
index-servers =
   pypi
[pypi]
username:your_pypi_username
password:your_pypi_password
  1. Changelogs and Version
  • Check the recent commits and PRs and add anything notable to the CHANGELOG.md file
  • Bump the version number in dash_auth/version.py. Follow Semantic Versioning 2.0.0
  • Create a PR and tag @chriddyp for review
  • Once reviewed, merge into main.
  1. Create a Python Build
$ rm -rf dist build
$ python setup.py sdist bdist_wheel
  1. Upload the Build to PyPI First, install twine: the new tool for uploading packages to PyPI
$ pip install twine

Then, upload to PyPI using Twine.

$ twine upload dist/*
  1. Git Tag Create a Git Tag with the version number:
git tag -a 'v0.1.0' -m 'v0.1.0'
git push origin main --follow-tags
  1. Test it out In a new folder, make sure the installation uploaded correctly. Note that sometimes PyPI's servers take a few minutes for installations to be recognized.
pip install dash-auth --upgrade