Reputation: 7742
I'm making a setup.py that needs to point to my repository.
with github i can do this:
dependency_links=['https://github.com/nathanborror/django-registration/tarball/master#egg=django-registration']
how can I do the same with a bitbucket project ?
for example this url:
https://bitbucket.org/abraneo/django-registration
Thanks.
Upvotes: 21
Views: 14706
Reputation: 1562
A BitBucket Mercurial (hg) repository can be added with the following URL in dependency_links
:
'https://bitbucket.org/zzzeek/alembic/get/tip.zip#egg=alembic-0.6.0'
In this case it installs the development version (0.6) of the Alembic package, which is not yet in PyPI at the time of writing.
Note that BitBucket supports both Mercurial and git. if the repo is Mercurial, the URL must reference tip.zip
, but if it's git, the URL must reference master.zip
.
Upvotes: 7
Reputation: 14777
Your Github link looks to be pointing to a gzipped tar file. Try doing the same for your Bitbucket hosted project -- https://bitbucket.org/abraneo/django-registration/get/tip.tar.gz
Upvotes: 21