TroyGrosfield.com TroyGrosfield.com

Headline

Contributing to Pypi

Author
by Troy Grosfield
Date
November 6th, 2013
Category
Developer
Story

Below will show the steps you need to take to register and upload your app to Pypi, then to create a tag in github for the uploaded version.

Register An App in Pypi

$ django-awesome-bootstrap git:(master) python setup.py register
running register
running egg_info
writing django_awesome_bootstrap.egg-info/PKG-INFO
writing top-level names to django_awesome_bootstrap.egg-info/top_level.txt
writing dependency_links to django_awesome_bootstrap.egg-info/dependency_links.txt
reading manifest file 'django_awesome_bootstrap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'django_awesome_bootstrap.egg-info/SOURCES.txt'
running check
Password:
Registering django-awesome-bootstrap to http://pypi.python.org/pypi
Server response (200): OK

Upload A New Version of the App

$ django-awesome-bootstrap git:(master) python setup.py register sdist upload
running register
running egg_info
writing django_awesome_bootstrap.egg-info/PKG-INFO
writing top-level names to django_awesome_bootstrap.egg-info/top_level.txt
writing dependency_links to django_awesome_bootstrap.egg-info/dependency_links.txt
reading manifest file 'django_awesome_bootstrap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'django_awesome_bootstrap.egg-info/SOURCES.txt'
running check
Password:
Registering django-awesome-bootstrap to http://pypi.python.org/pypi
Server response (200): OK
running sdist
creating django-awesome-bootstrap-0.1.1
...
hard linking django_awesome_bootstrap.egg-info/dependency_links.txt -> django-awesome-bootstrap-0.1.1/django_awesome_bootstrap.egg-info
hard linking django_awesome_bootstrap.egg-info/top_level.txt -> django-awesome-bootstrap-0.1.1/django_awesome_bootstrap.egg-info
Writing django-awesome-bootstrap-0.1.1/setup.cfg
creating dist
Creating tar archive
removing 'django-awesome-bootstrap-0.1.1' (and everything under it)
running upload
Submitting dist/django-awesome-bootstrap-0.1.1.tar.gz to http://pypi.python.org/pypi
Server response (200): OK

Create A Tag

$ django-awesome-bootstrap git:(master) git tag -a 0.1.1 -m 'adding first tag 0.1.1'

Show Tags

$ django-awesome-bootstrap git:(master) git tag
0.1.1

Push Tag to Github

$ django-awesome-bootstrap git:(master) git push origin 0.1.1
Counting objects: 1, done.
Writing objects: 100% (1/1), 168 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
To git@github.com:InfoAgeTech/django-awesome-bootstrap.git
* [new tag]         0.1.1 -> 0.1.1

Resources

Tags
Comments
No Comments »

No Comments Yet

Leave a reply