mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
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:
parent
4d96255ade
commit
e5b0cf7f89
12 changed files with 284 additions and 3 deletions
2
scripts/editable-installs/setup_cfg_editable/.gitignore
vendored
Normal file
2
scripts/editable-installs/setup_cfg_editable/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Artifacts from the build process.
|
||||
*.egg-info/
|
3
scripts/editable-installs/setup_cfg_editable/setup.cfg
Normal file
3
scripts/editable-installs/setup_cfg_editable/setup.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
[metadata]
|
||||
name = setup-cfg-editable
|
||||
version = 0.0.1
|
8
scripts/editable-installs/setup_cfg_editable/setup.py
Normal file
8
scripts/editable-installs/setup_cfg_editable/setup.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
install_requires=[
|
||||
"requests",
|
||||
'importlib-metadata; python_version<"3.10"',
|
||||
],
|
||||
)
|
2
scripts/editable-installs/setup_py_editable/.gitignore
vendored
Normal file
2
scripts/editable-installs/setup_py_editable/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Artifacts from the build process.
|
||||
*.egg-info/
|
9
scripts/editable-installs/setup_py_editable/setup.py
Normal file
9
scripts/editable-installs/setup_py_editable/setup.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name="setup-py-editable",
|
||||
version="0.0.1",
|
||||
install_requires=[
|
||||
"httpx",
|
||||
],
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue