-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Fails to recongize Multiple URL filnks (pip @ git+https://github.com/...
)
#1056
Comments
Hello @MinchinWeb, Thanks for the detailed issue! I believe the issue is in the $ cat requirements.in
django-import-export @ git+https://github.com/MinchinWeb/django-import-export.git@b406c6f3a247cc587d77f91459571df6cfa536fc
django-naturalsortfield @ git+https://github.com/kysela-petr/django-naturalsortfield.git@e4037372adfe9a109d7fef5bfdb6b1c3a9c4136a
$ pip-compile --no-header
asgiref==3.2.3 # via django
defusedxml==0.6.0 # via odfpy
diff-match-patch==20181111
git+https://github.com/MinchinWeb/django-import-export.git@b406c6f3a247cc587d77f91459571df6cfa536fc
git+https://github.com/kysela-petr/django-naturalsortfield.git@e4037372adfe9a109d7fef5bfdb6b1c3a9c4136a
django==3.0.3
et-xmlfile==1.0.1 # via openpyxl
jdcal==1.4.1 # via openpyxl
markuppy==1.14 # via tablib
numpy==1.18.1 # via pandas
odfpy==1.4.1 # via tablib
openpyxl==3.0.3 # via tablib
pandas==1.0.1 # via tablib
python-dateutil==2.8.1 # via pandas
pytz==2019.3 # via django, pandas
pyyaml==5.3 # via tablib
six==1.14.0 # via python-dateutil
sqlparse==0.3.0 # via django
tablib[all]==1.0.0
tabulate==0.8.6 # via tablib
xlrd==1.2.0 # via tablib
xlwt==1.3.0 # via tablib Hope this helps! |
Thank you @atugushev ! With your suggestion, it works on my end. I had spent hours trying to figure this out, and your 4 lines are the best explanation I've found of this anywhere. I see my error was prefacing both with "pip @". This was based on the sample line in PEP508, but there, the example is for pip, and I assumed it meant install with pip. A couple questions:
|
I think it's better to raise an issue on pep's tracker to improve PEP-508 documentation. Also, you may found useful a requirement specifiers section in pip documentation.
There are a few ways:
This is a known bug, here is the tracking issue — #293.
Yes, this seems odd. It would be nice to have fixed it. Could you raise a separate issue? I'm pretty sure it's related to these lines: Lines 76 to 77 in d405bf9
|
These are great suggestions, thanks you! I'm going to be away from my computer for the next three weeks, but I will follow up when I return! |
Unfortunately it appears this doesn't work so well for requirements.txt that are read into setuptools which still requires the format When trying to just use the syntax referred to above I get the following error:
We can work around it by having the file that prepends the package name to the vcs_url, and then pass the modified list as an argument to setuptools. However as this shows other tools maybe expecting |
FYI, it was fixed in
Yes, this is not well supported yet. #1165 - is a tracking issue for this feature. |
I'll close this in favor of following-up #1165. Thanks for the issue! |
PEP 508 allows version controlled requirements to be listed like this:
So I'm trying to do this (I am using a couple of private forks that aren't available on PyPI), but only one of them is making it into the
pip-compile
d requirements file.My input:
If I run
pip-compile
, it will warn me (4 or 5 times):(but I'm not sure what that means.)
and the output file will only contain the
django-import-export
, but notdjango-naturalsortfield
. Order in the input file doesn't seem to matter, and I can add other "normal" requirements, as found on PyPI, and they all seem to work (i.e. they are added to the output file).Environment Versions
Steps to replicate
Expected result
Actual result
Command line errors:
Output file:
The text was updated successfully, but these errors were encountered: