3

I want pip to install a package "my_tools" from a private github repo whenever a package called "my_utils" is to be installed.

My setup.py:

from setuptools import setup

setup(
    name="my_utils",
    version="1.0",
    description="Common utility tools",
    author="author",
    packages=['my_utils'],
    include_package_data=True,
    python_requires=">=3.6",
    install_requires=[
        'pandas',
        'requests',
        'my_tools@git+ssh://[email protected]/org/[email protected]'
    ],
    dependency_links=['git+ssh://[email protected]/org/[email protected]']
)

I run: pip install -e . and get:

Requirement already satisfied: pandas ....
Requirement already satisfied: requests ....
ERROR: Could not find a version that satisfies the requirement my-tools (unavailable) (from my-utils) (from versions: none)
ERROR: No matching distribution found for my-tools (unavailable)

None of these answers worked: 1, 2, 3

EDIT: I've also tried the following, but still not working:

install_requires=[
    'my_tools @ git+ssh://[email protected]/org/[email protected]'
]

1 Answer 1

0

Have you tried using http link instead of ssh?

git+http://[email protected]/org/[email protected]
Sign up to request clarification or add additional context in comments.

2 Comments

This should just be a comment to the OP rather than a question as an answer.
SSH is best practice for my company. Also when I try a git+https://... url, it prompts me to log in, which succeeds, but results in the same error.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.