pypa / pypa/setuptools

dependency_links seems to be unable to work with git over ssh

Open
#407 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug major
Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Originally reported by: warrior2031 (Bitbucket: warrior2031, GitHub: warrior2031)


#!python

from setuptools import setup
import os
# os.system('pip install -e git+git@bitbucket.org:opticsdevelopment/serialization.git#egg=serialization')
setup(
    name='rest_framework',
    version='',
    packages=['base_tests', 'rest_framework', 'rest_framework.resources'],
    url='',
    license='',
    author='michael',
    author_email='warrior2031@mail.ru',
    description='',
    install_requires=[
        'ZODB',
        'pymongo',
        'zodbpickle'
    ],
    dependency_links=['git+git@bitbucket.org:opticsdevelopment/serialization.git#egg=serialization']
)

So this gives as output

#!python

Not found: git+git@bitbucket.org:opticsdevelopment/serialization.git#egg=serialization

However if I would uncomment third line then dependency would be installed succesfully.

I think of it as bug because documentation says

"VCS being used by prepending the URL with a certain prefix. Currently available are:

svn+URL for Subversion,
git+URL for Git, and
hg+URL for Mercurial"

And my url is in the form of git+URL right?


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the shown setup.py and its dependency_links value, then trace setuptools' handling of VCS URLs and SSH-style Git addresses. Confirm whether the git+git@bitbucket.org form is recognized as a dependency, and add coverage if the relevant test location can be identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.