-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct URL PEP 508 support and installing sub-dependencies from Git #5566
Comments
PEP 508 URL requirements as dependencies are not supported.
Yes. See below.
Yes. That's the entire motivation behind #4187. We disabled the ability to use PEP 508 URL requirements in dependencies, since we don't want that a package installed from PyPI to result in the pip reaching out to an arbitary web URL. Basically, The current proposed solution in #4187 is to simply modify the blocking conditional so that it only blocks URL dependencies when a package is actually being installed from PyPI directly, so that any other mode of installation can use PEP 508 URL dependencies. |
Thank you for detailed explanation, I really appreciate your help. |
since nested github depencies are not supported by pip pypa/pip#5566
using something lke: # pytest-dev/pytest-xdist#136 # pypa/pip#5566
PEP 508 is not supported (as explained in pypa/pip#5566). We are adding this as a workonaround until we publish on PyPI.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I've spent the whole day reading about installing sub-dependencies from git and I am still struggling to find the correct solution.
My use-case
I forked an existing Python library (available on PyPi), added some changes that are unlikely to be merged upstream.
Some of my projects depend on the library fork. Previously it was an application, and I was using Pipenv to manage application dependencies, where I could easily specify to install specific branch/commit from Git in Pipfile. My application grew and now I am converting it to library (it is not going to be published on PyPi). I need to solve the problem of sub-dependencies from Git for the library.
I've read at least the following issues: #3610, #4187, #2124, #5384 and many others and of course PEP. When I finished reading I was even more confused than when I started.
From what I understood with implementation of PEP-508 in pip 10, I should be able to use:
But it does not work:
My questions:
pyproject.toml
if I want to migrate from setup.py to something more declarative?--process-dependency-links
anddependency_links
section insetup.py
?Thank you
UPD: currently working solution until #4187 is implemented if you stumble upon this thread:
The text was updated successfully, but these errors were encountered: