Skip to content

Instantly share code, notes, and snippets.

@marthall
Last active February 5, 2020 07:00
Show Gist options
  • Save marthall/8122805 to your computer and use it in GitHub Desktop.
Save marthall/8122805 to your computer and use it in GitHub Desktop.
Very basic python packaging
#!/usr/bin/env python
print "Hello World"
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
)
$ python setup.py register sdist upload
...
$ pip install my-awesome-helloworld-script
@BinhMinhs10
Copy link

Server response (410): Project pre-registration is no longer required or supported, upload your files instead.

I Can not run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment