diff --git a/dev/config/metadata/index.html b/dev/config/metadata/index.html index 9d9d123bf..8da375c1e 100644 --- a/dev/config/metadata/index.html +++ b/dev/config/metadata/index.html @@ -36,13 +36,10 @@
For more information, see PEP 639.
[project]
...
license = "Apache-2.0 OR MIT"
-
[project]
-...
-license-files = { paths = ["LICENSE.txt"] }
[project]
...
-license-files = { globs = ["LICENSES/*"] }
-
The people or organizations considered to be the authors
or maintainers
of the project. The exact meaning is open to interpretation; it may list the original or primary authors, current maintainers, or owners of the package. If the values are the same, prefer only the use of the authors
field.
[project]
+license-files = ["LICENSES/*"]
+
The people or organizations considered to be the authors
or maintainers
of the project. The exact meaning is open to interpretation; it may list the original or primary authors, current maintainers, or owners of the package. If the values are the same, prefer only the use of the authors
field.
[project]
...
authors = [
{ name = "...", email = "..." },
@@ -50,56 +47,56 @@
maintainers = [
{ name = "...", email = "..." },
]
-
The keywords used to assist in the discovery of the project.
[project]
+
The keywords used to assist in the discovery of the project.
[project]
...
keywords = [
"...",
]
-
The trove classifiers that apply to the project.
[project]
+
The trove classifiers that apply to the project.
[project]
...
classifiers = [
"...",
]
-
A table of URLs where the key is the URL label and the value is the URL itself.
[project.urls]
+
A table of URLs where the key is the URL label and the value is the URL itself.
[project.urls]
Documentation = "..."
"Source code" = "..."
-
See the dependency specification page for more information.
Entries support context formatting and disallow direct references by default.
[project]
+
See the dependency specification page for more information.
Entries support context formatting and disallow direct references by default.
[project]
...
dependencies = [
"...",
]
-
[project.optional-dependencies]
+
[project.optional-dependencies]
option1 = [
"...",
]
option2 = [
"...",
]
-
Entry points are a mechanism for the project to advertise components it provides to be discovered and used by other code.
After installing projects that define CLI scripts, each key will be available along your PATH
as a command that will call its associated object.
[project.scripts]
+
Entry points are a mechanism for the project to advertise components it provides to be discovered and used by other code.
After installing projects that define CLI scripts, each key will be available along your PATH
as a command that will call its associated object.
[project.scripts]
cli-name = "pkg.subpkg:func"
Using the above example, running cli-name
would essentially execute the following Python script:
import sys
from pkg.subpkg import func
sys.exit(func())
-
GUI scripts are exactly the same as CLI scripts except on Windows, where they are handled specially so that they can be started without a console.
[project.gui-scripts]
+
GUI scripts are exactly the same as CLI scripts except on Windows, where they are handled specially so that they can be started without a console.
[project.gui-scripts]
gui-name = "pkg.subpkg:func"
-
[project.entry-points.plugin-namespace]
+
[project.entry-points.plugin-namespace]
plugin-name1 = "pkg.subpkg1"
plugin-name2 = "pkg.subpkg2:func"
-
If any metadata fields are set dynamically, like the version
may be, then they must be listed here.
[project]
+
If any metadata fields are set dynamically, like the version
may be, then they must be listed here.
[project]
...
dynamic = [
"...",
]
-
By default, dependencies are not allowed to define direct references. To disable this check, set allow-direct-references
to true
:
[tool.hatch.metadata]
+
By default, dependencies are not allowed to define direct references. To disable this check, set allow-direct-references
to true
:
[tool.hatch.metadata]
allow-direct-references = true
[metadata]
allow-direct-references = true
-
By default, names of optional dependencies are normalized to prevent ambiguity. To disable this normalization, set allow-ambiguous-features
to true
:
[tool.hatch.metadata]
+
By default, names of optional dependencies are normalized to prevent ambiguity. To disable this normalization, set allow-ambiguous-features
to true
:
[tool.hatch.metadata]
allow-ambiguous-features = true
[metadata]
allow-ambiguous-features = true
-
Deprecated
This option temporarily exists to provide better interoperability with tools that do not yet support PEP 685 and will be removed in the first minor release after Jan 1, 2024.