mirror of https://github.com/astral-sh/uv
Move Black editable to flit backend (#1114)
I ran into a bug in PDM that's making it impossible to use the Black example for extras: https://github.com/pdm-project/pdm/issues/2591. I've confirmed that Flit handles it correctly.
This commit is contained in:
parent
3a05ef5285
commit
57c116ee9a
|
|
@ -649,7 +649,7 @@ fn install_editable_and_registry() -> Result<()> {
|
|||
Resolved 1 package in [TIME]
|
||||
Installed 1 package in [TIME]
|
||||
- black==23.11.0
|
||||
+ black==0.1.0+editable (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
+ black==0.1.0 (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
"###);
|
||||
});
|
||||
|
||||
|
|
@ -701,7 +701,7 @@ fn install_editable_and_registry() -> Result<()> {
|
|||
Resolved 6 packages in [TIME]
|
||||
Downloaded 1 package in [TIME]
|
||||
Installed 1 package in [TIME]
|
||||
- black==0.1.0+editable (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
- black==0.1.0 (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
+ black==23.10.0
|
||||
"###);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -2962,7 +2962,7 @@ fn sync_editable_and_registry() -> Result<()> {
|
|||
Uninstalled 1 package in [TIME]
|
||||
Installed 1 package in [TIME]
|
||||
- black==24.1a1
|
||||
+ black==0.1.0+editable (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
+ black==0.1.0 (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
"###);
|
||||
});
|
||||
|
||||
|
|
@ -3041,7 +3041,7 @@ fn sync_editable_and_registry() -> Result<()> {
|
|||
Downloaded 1 package in [TIME]
|
||||
Uninstalled 1 package in [TIME]
|
||||
Installed 1 package in [TIME]
|
||||
- black==0.1.0+editable (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
- black==0.1.0 (from file://[WORKSPACE_DIR]/scripts/editable-installs/black_editable)
|
||||
+ black==23.10.0
|
||||
warning: The package `black` requires `click >=8.0.0`, but it's not installed.
|
||||
warning: The package `black` requires `mypy-extensions >=0.4.3`, but it's not installed.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[project]
|
||||
name = "black"
|
||||
version = "0.1.0"
|
||||
description = "Default template for PDM package"
|
||||
description = "Default template for a Flit project"
|
||||
authors = [
|
||||
{name = "konstin", email = "konstin@mailbox.org"},
|
||||
]
|
||||
|
|
@ -10,8 +10,5 @@ requires-python = ">=3.11,<3.13"
|
|||
license = {text = "MIT"}
|
||||
|
||||
[build-system]
|
||||
requires = ["pdm-backend"]
|
||||
build-backend = "pdm.backend"
|
||||
|
||||
[tool.pdm]
|
||||
package-type = "library"
|
||||
requires = ["flit_core>=3.4,<4"]
|
||||
build-backend = "flit_core.buildapi"
|
||||
|
|
|
|||
Loading…
Reference in New Issue