Skip to content

Commit

Permalink
Restore better config examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Nov 8, 2023
1 parent d97640a commit 7620221
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/userguide/declarative_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ boilerplate code in some cases.
python_requires = >=3.8
install_requires =
requests
importlib-metadata; python_version<"3.10"
[options.package_data]
* = *.txt, *.rst
Expand Down Expand Up @@ -258,11 +259,11 @@ data_files section 40.6.0 [#
[options]
install_requires =
requests
importlib-metadata; python_version<"3.10"
[options.extras_require]
all =
requests
importlib-metadata; python_version<"3.10"
.. [#opt-3] The ``find:`` and ``find_namespace:`` directive can be further configured
in a dedicated subsection ``options.packages.find``. This subsection accepts the
Expand Down
1 change: 1 addition & 0 deletions docs/userguide/pyproject_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The ``project`` table contains metadata fields as described by
]
dependencies = [
"requests",
'importlib-metadata; python_version<"3.10"',
]
dynamic = ["version"]
Expand Down
4 changes: 4 additions & 0 deletions docs/userguide/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ The following example demonstrates a minimum configuration
version = "0.0.1"
dependencies = [
"requests",
'importlib-metadata; python_version<"3.10"',
]
See :doc:`/userguide/pyproject_config` for more information.
Expand All @@ -100,6 +101,8 @@ The following example demonstrates a minimum configuration
[options]
install_requires =
requests
importlib-metadata; python_version<"3.10"
See :doc:`/userguide/declarative_config` for more information.

Expand All @@ -114,6 +117,7 @@ The following example demonstrates a minimum configuration
version='0.0.1',
install_requires=[
'requests',
'importlib-metadata; python_version<"3.10"',
],
)
Expand Down

0 comments on commit 7620221

Please sign in to comment.