-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aaron O'Mullan
committed
Aug 24, 2013
1 parent
3ab344a
commit 76d04ec
Showing
2 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/python | ||
# Setup file for dulwich_paramiko | ||
|
||
try: | ||
from setuptools import setup, Extension | ||
|
@@ -8,24 +7,43 @@ | |
from distutils.core import setup, Extension | ||
has_setuptools = False | ||
|
||
version_string = '0.1.1' | ||
version_string = '0.2.0' | ||
|
||
|
||
setup_kwargs = {} | ||
|
||
# Requirements | ||
install_requires = [ | ||
# PyPi | ||
'paramiko==1.10.0', | ||
'pycrypto==2.6', | ||
|
||
# Non PyPi | ||
'dulwich', | ||
'funky', | ||
'mimer', | ||
] | ||
dependency_links = [ | ||
'https://github.com/AaronO/dulwich/tarball/dd274cf023593dd8ed76de0bcc86f19ffc2a0167#egg=dulwich-0.9.1', | ||
'https://github.com/FriendCode/funky/tarball/e89cb2ce4374bf2069c7f669e52e046f63757241#egg=funky-0.0.1', | ||
'https://github.com/FriendCode/mimer/tarball/a812e5f631b9b5c969df5a2ea84b635490a96ced#egg=mimer-0.0.1', | ||
] | ||
|
||
setup(name='gittle', | ||
description='A high level pure python git implementation', | ||
keywords='git dulwich pure python gittle', | ||
version=version_string, | ||
url='https://github.com/FriendCode/gittle', | ||
license='MIT', | ||
author="Aaron O'Mullan", | ||
author_email='[email protected]', | ||
long_description=""" | ||
Gittle is a wrapper around dulwich. It provides an easy and familiar interface to git. | ||
It's pure python (no dependancy on the git binary) and has no other dependancies besides | ||
the python stdlib, dulwich and paramiko (optional). | ||
""", | ||
packages=['gittle', 'gittle.utils'], | ||
**setup_kwargs | ||
description='A high level pure python git implementation', | ||
keywords='git dulwich pure python gittle', | ||
version=version_string, | ||
url='https://github.com/FriendCode/gittle', | ||
license='MIT', | ||
author="Aaron O'Mullan", | ||
author_email='[email protected]', | ||
long_description=""" | ||
Gittle is a wrapper around dulwich. It provides an easy and familiar interface to git. | ||
It's pure python (no dependancy on the git binary) and has no other dependancies besides | ||
the python stdlib, dulwich and paramiko (optional). | ||
""", | ||
packages=['gittle', 'gittle.utils'], | ||
install_requires=install_requires, | ||
dependency_links=dependency_links, | ||
**setup_kwargs | ||
) |
76d04ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neat trick! assuming my guess that it essentially this allows pip/easy_install to automatically install all deps for you, yea? i'm going to pick this up and try it myself!
http://stackoverflow.com/questions/3472430/how-can-i-make-setuptools-install-a-package-thats-not-on-pypi
76d04ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one key thing that isn't mentioned anywhere, is that by specifying
dependency_links
you are basically providing other means forsetup.py
to find packages, you still need to add them as dependencies ininstall_requires
.So you just need to be aware of that. But it is indeed quite a neat way to do so.
I still would prefer to have all the packages on PyPi but my Pull Request for my dulwich improvements hasn't yet been merged, so this works well for now :)