pip tries to parse PEP 508 URLs in pyproject.toml's [build-system] requires as file path
See original GitHub issueEnvironment
- pip version: tox doesn’t tell me 😨
- Python version: 3.7
- OS: Fedora GNU/Linux
Description This is what happens when attempting to specify “wobblui @ https://github.com/wobblui/wobblui/archive/master.zip”:
Requirement 'wobblui @ https://github.com/wobblui/wobblui/archive/master.zip' looks like a filename, but the file does not exist
Processing ./wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/jonas/Develop/myproj/wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip'
Expected behavior
That it works, because it also works in seutp_requires
and this is the recommended replacement, right?
How to Reproduce Use this pyproject.toml:
[build-system]
requires = ["setuptools", "wheel", "wobblui @ https://github.com/wobblui/wobblui/archive/master.zip"]
build-backend = "setuptools.build_meta"
Output
Requirement 'wobblui @ https://github.com/wobblui/wobblui/archive/master.zip' looks like a filename, but the file does not exist
Processing ./wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/jonas/Develop/myproj/wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip'
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
PEP 517 – A build-system independent format for source trees
Here we define a new style of source tree based around the pyproject.toml file defined in PEP 518, extending the [build-system] table in ......
Read more >pyproject.toml - pip documentation v22.3.1
This file contains build system requirements and information, ... requirement specifiers follow PEP 508, so it's possible to reference packages with URLs.
Read more >Announcing Poetry 1.2.0 | Blog
Guidance on modifying $PATH is provided, but the user's configuration is not altered by automated tools. Poetry will be installed using the ...
Read more >tox configuration specification — tox 3.24.5 documentation
For build tools and arguments use the pyproject.toml file as specified in PEP-517 and PEP-518. To specify the virtual environment Python version define...
Read more >rpms/pyproject-rpm-macros - src.fedoraproject.org - Tree
'Add PackageName@ (see PEP 508) to the URL to at least require any version of ... If the pyproject.toml file is absent, or...
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
For what it’s worth, pip from the PR associated with that issue (#6203) was able to install the
pyproject.toml
provided here without issue.#6203 was merged and I was able to confirm the fix against master:
fixed.sh
Output
so I will close this issue as a duplicate. Please let me know if you see something different!