Project:Pywikibot/Releasing to PyPI

Step-by-step guide to push a new release to PyPI.

Requirements:

  • Linux or Windows command line
  • Upload access to PyPI
    • Either as personal user (see 'index owner' at https://pypi.python.org/pypi/pywikibot - ask any of the people there to add you if you don't have access)
    • or using the 'pywikibot-admin' user (see /data/project/pywikibot/passwd on Tools Forge for details)
  • twine (pip install twine)
cd src/pywikibot-core
git pull
git checkout origin/master
python setup.py sdist
# if errorlevel 0
twine upload dist/*  # this is the file created by setup.py sdist.