Project:Pywikibot/Releasing to PyPI

From MediaWiki.org
Jump to navigation Jump to search

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

Requirements:

  • Linux 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
twine upload dist/pywikibot-3.0.20170521.tar.gz  # this is the file created by setup.py sdist.