Add support for unnamed local directory requirements (#2571)

## Summary

For example: `cargo run pip install .`

The strategy taken here is to attempt to extract the package name from
the distribution without executing the PEP 517 build steps. We could
choose to do that in the future if this proves lacking, but it adds
complexity.

Part of: https://github.com/astral-sh/uv/issues/313.
This commit is contained in:
Charlie Marsh 2024-03-20 23:46:11 -04:00 committed by GitHub
parent 4d96255ade
commit e5b0cf7f89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 284 additions and 3 deletions

View file

@ -0,0 +1,2 @@
# Artifacts from the build process.
*.egg-info/

View file

@ -0,0 +1,3 @@
[metadata]
name = setup-cfg-editable
version = 0.0.1

View file

@ -0,0 +1,8 @@
from setuptools import setup
setup(
install_requires=[
"requests",
'importlib-metadata; python_version<"3.10"',
],
)

View file

@ -0,0 +1,2 @@
# Artifacts from the build process.
*.egg-info/

View file

@ -0,0 +1,9 @@
from setuptools import setup
setup(
name="setup-py-editable",
version="0.0.1",
install_requires=[
"httpx",
],
)