Skip to content

Instantly share code, notes, and snippets.

@andykuszyk
Last active August 16, 2017 08:40
Show Gist options
  • Save andykuszyk/c328e9a42cd2775e0315f088e1907a34 to your computer and use it in GitHub Desktop.
Save andykuszyk/c328e9a42cd2775e0315f088e1907a34 to your computer and use it in GitHub Desktop.
PIP release
  • Put setup files in root of repo
  • Put .pypirc in home folder
  • Run python setup.py sdist in repo dir
  • Run twine upload dist/* in repo dir
[distutils]
index-servers = pypi
[pypi]
username=
password=
[metadata]
description-file = README.md
from distutils.core import setup
setup(
name = 'name',
packages = ['name'],
version = '0.0.1',
description = 'desc',
author = 'Andy Kuszyk',
author_email = 'me@me.co.uk',
url = 'https://github.com/andykuszyk/name',
download_url = 'https://github.com/andykuszyk/name/archive/0.1.tar.gz',
keywords = ['tag'],
classifiers = [],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment