Project:Pywikibot/Releasing to PyPI

Jump to navigation Jump to search

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


  • Linux or Windows command line
  • Upload access to PyPI
    • Either as personal user (see 'index owner' at - 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 sdist
# if errorlevel 0
twine upload dist/*  # this is the file created by sdist.