Skip to content

pypi upload

Rudolph Pienaar edited this page Mar 20, 2017 · 1 revision

How to upload to pypi

Abstract

This page describes the pypi upload process.

Steps

Update the package version in the following files in the repo root:

  • README.rst
  • setup.py
# push
$> git commit -am "vX.Y.Z"
$> git push origin master

# and tag
$> git tag X.Y.Z
$> git push origin --tags

Check README.rst syntax

(rstcheck can be installed through pip)

$> rstcheck README.rst

Publish to pypi

(twine can be installed through pip)

$> python setup.py sdist
$> twine upload dist/pman-X.Y.Z.tar.gz