Distribute/setuptools/distutils command for GitHub. You can use GitHub downloads instead of PyPI downloads for release.
This project is abandoned, and we recommend not to use this anymore. Because PyPI and pip disallows to download package distributions from other than official PyPI for security reasons.
To use this, follow the instruction.
Then, add this package into setup_requires parameter of your setup() configuration (of setup.py script):
setup(name='YourPackageName', version='1.2.3', ..., setup_requires=['github-distutils >= 0.1.0'])
Now there will be github_upload command for your setup.py:
$ python setup.py github_upload --help Common commands: (see '--help-commands' for more) ... Options for 'github_upload' command: --repository (-R) GitHub repository name e.g. user/reponame --username (-u) GitHub username --password (-p) GitHub password ...
If -u/--username and -p/--password are not present, it will shows the prompt. -R/--repository is required.
Upload is very easy:
$ python setup.py sdist github_upload -R user/reponame register
You can make default values for these options by specifying in the setup.cfg configuration file. For example, if you want to default --repository, make setup.cfg file like (hyphens becomes underscores):
[upload] repository = user/reponame
You can make a shorthand alias as well:
[aliases] release = sdist github_upload register
Use bitbucket-distutils which is a package by the same author if you are using Bitbucket instead of GitHub.
Released on June 20, 2012. Beta version.
Released on May 27, 2012. First alpha version.