conversion of requirements.txt fails for editable requirements with subdirectory option
See original GitHub issueHere is an example editable requirement that is not supported:
-e git+https://github.com/acsone/account-analytic.git@f263b5e08c45e392b60c9d879353ca71f7ac86ff#egg=odoo10_addon_account_analytic_no_lines&subdirectory=setup/account_analytic_no_lines
It is due to the &subdirectory
part, which is not supported by the vendored requirements package.
Here is the incorrect regex: https://github.com/kennethreitz/pipenv/blob/dde2e52cb8bc9bfca7af6c6b1a4576faf00e84f1/pipenv/vendor/requirements/requirement.py#L23-L27
Here is the relevant stack trace part:
$ pipenv --two
Requirements file found, instead of Pipfile! Converting...
Traceback (most recent call last):
File "/home/me/.local/bin/pipenv", line 11, in <module>
sys.exit(cli())
...
File "/home/me/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/requirements/requirement.py", line 108, in parse_editable
assert local_match is not None, 'This should match everything'
AssertionError: This should match everything
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
pip install -r requirements.txt error, even though in correct path
And I pulled it to bash console at "pythonanywhere.com" and then moved to directory where "requirements.txt" is installed. And tried pip install ...
Read more >pipenv Documentation - Read the Docs
Managing a requirements.txt file can be problematic, so Pipenv uses Pipfile ... You can tell Pipenv to install a path as editable —...
Read more >pip Documentation
When globally installed packages are on the python path, and they satisfy the installation requirements, pip does nothing, and reports that ...
Read more >Advanced Usage of Pipenv - Python Packaging Authority
Using this option to search for packages which are not in the main repository ... You can convert a Pipfile.lock into a requirements.txt...
Read more >Good Integration Practices — pytest documentation
You can then install your package in “editable” mode by running from the same directory: pip install -e . which lets you change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
please open an issue with the ‘requirements’ package
subdirectory support proposed upstream: https://github.com/davidfischer/requirements-parser/pull/32