Skip to content

Commit 1b525b5

Browse files
committed
feat: PEP 794 support
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 9db6558 commit 1b525b5

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

src/validate_pyproject/project_metadata.schema.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,20 @@
233233
}
234234
}
235235
},
236+
"import-names": {
237+
"description": "Lists import names which a project, when installed, would exclusively provide.",
238+
"type": "array",
239+
"items": {
240+
"type": "string"
241+
}
242+
},
243+
"import-namespaces": {
244+
"description": "Lists import names that, when installed, would be provided by the project, but not exclusively.",
245+
"type": "array",
246+
"items": {
247+
"type": "string"
248+
}
249+
},
236250
"dynamic": {
237251
"type": "array",
238252
"$$description": [
@@ -256,7 +270,9 @@
256270
"gui-scripts",
257271
"entry-points",
258272
"dependencies",
259-
"optional-dependencies"
273+
"optional-dependencies",
274+
"import-names",
275+
"import-namespaces"
260276
]
261277
}
262278
}

tests/examples/pdm/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ requires-python = ">=3.9"
1111
readme = "README.md"
1212
keywords = ["packaging", "PEP 517", "build"]
1313
dynamic = ["version"]
14+
import-names = ["pdm.backend"]
1415

1516
classifiers = [
1617
"Development Status :: 5 - Production/Stable",

tests/examples/trampolim/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323
'Development Status :: 4 - Beta',
2424
'Programming Language :: Python'
2525
]
26-
26+
import-namespaces = ["trampolim"]
2727
dependencies = [
2828
'tomli>=1.0.0',
2929
'packaging',

0 commit comments

Comments
 (0)