-
-
Save nishantmendiratta/43340a48771458eecceea63ba5ba956b to your computer and use it in GitHub Desktop.
Very basic python packaging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`#!/usr/bin/env python` | |
``` | |
print "Hello World" | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
from setuptools import setup | |
setup( | |
name='my-awesome-helloworld-script', # This is the name of your PyPI-package. | |
version='0.1', # Update the version number for new releases | |
scripts=['helloworld'] # The name of your scipt, and also the command you'll be using for calling it | |
) | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
$ python setup.py register sdist upload | |
``` | |
... | |
``` | |
$ pip install my-awesome-helloworld-script | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment