Skip to content

Commit c242f74

Browse files
committed
Restore better config examples
1 parent d97640a commit c242f74

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/userguide/declarative_config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ data_files section 40.6.0 [#
258258
259259
[options]
260260
install_requires =
261-
requests
261+
importlib-metadata; python_version < "3.10"
262262
263263
[options.extras_require]
264264
all =
265-
requests
265+
importlib-metadata; python_version < "3.10"
266266
267267
.. [#opt-3] The ``find:`` and ``find_namespace:`` directive can be further configured
268268
in a dedicated subsection ``options.packages.find``. This subsection accepts the

docs/userguide/pyproject_config.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ The ``project`` table contains metadata fields as described by
5656
]
5757
dependencies = [
5858
"requests",
59+
'importlib-metadata; python_version < "3.10"',
5960
]
6061
dynamic = ["version"]
6162

docs/userguide/quickstart.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ The following example demonstrates a minimum configuration
8585
version = "0.0.1"
8686
dependencies = [
8787
"requests",
88+
'importlib-metadata; python_version < "3.10"',
8889
]
8990
9091
See :doc:`/userguide/pyproject_config` for more information.
@@ -100,6 +101,8 @@ The following example demonstrates a minimum configuration
100101
[options]
101102
install_requires =
102103
requests
104+
importlib-metadata; python_version < "3.10"
105+
103106
104107
See :doc:`/userguide/declarative_config` for more information.
105108

@@ -114,6 +117,7 @@ The following example demonstrates a minimum configuration
114117
version='0.0.1',
115118
install_requires=[
116119
'requests',
120+
'importlib-metadata; python_version < "3.10"',
117121
],
118122
)
119123

0 commit comments

Comments
 (0)