summaryrefslogtreecommitdiff
path: root/docs/userguide
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2022-04-07 13:15:43 +0300
committerAarni Koskela <akx@iki.fi>2022-04-08 16:13:29 +0300
commit3b86141b0bb091385f8455574862af7b502cd2ae (patch)
tree133bab5472b64535e32e54f412269b5b5a2285a3 /docs/userguide
parente5552d3c42eddc463788861ae4c8847183eeec1c (diff)
downloadpython-setuptools-git-3b86141b0bb091385f8455574862af7b502cd2ae.tar.gz
Allow `file:` for `dependencies` and `optional-dependencies` in pyproject.toml
Diffstat (limited to 'docs/userguide')
-rw-r--r--docs/userguide/pyproject_config.rst32
1 files changed, 22 insertions, 10 deletions
diff --git a/docs/userguide/pyproject_config.rst b/docs/userguide/pyproject_config.rst
index 47c4511e..9e5e0a02 100644
--- a/docs/userguide/pyproject_config.rst
+++ b/docs/userguide/pyproject_config.rst
@@ -181,16 +181,28 @@ In the ``dynamic`` table, the ``attr`` directive [#directives]_ will read an
attribute from the given module [#attr]_, while ``file`` will read the contents
of all given files and concatenate them in a single string.
-================= =================== =========================
-Key Directive Notes
-================= =================== =========================
-``version`` ``attr``, ``file``
-``readme`` ``file``
-``description`` ``file`` One-line text
-``classifiers`` ``file`` Multi-line text with one classifier per line
-``entry-points`` ``file`` INI format following :doc:`PyPUG:specifications/entry-points`
- (``console_scripts`` and ``gui_scripts`` can be included)
-================= =================== =========================
+================= =================== =========================
+Key Directive Notes
+================= =================== =========================
+``version`` ``attr``, ``file``
+``readme`` ``file``
+``description`` ``file`` One-line text
+``classifiers`` ``file`` Multi-line text with one classifier per line
+``entry-points`` ``file`` INI format following :doc:`PyPUG:specifications/entry-points`
+ (``console_scripts`` and ``gui_scripts`` can be included)
+``dependencies`` ``file`` ``requirements.txt`` format (``#`` comments and blank lines excluded)
+``optional-dependencies`` ``file`` ``requirements.txt`` format per group (``#`` comments and blank lines excluded)
+========================== =================== =========================
+
+Supporting ``file`` for dependencies is meant for a convenience for packaging
+applications with possibly strictly versioned dependencies.
+
+Library packagers are discouraged from using overly strict (or "locked")
+dependency versions in their ``dependencies`` and ``optional-dependencies``.
+
+Currently, when specifying ``optional-dependencies`` dynamically, all of the groups
+must be specified dynamically; one can not specify some of them statically and
+some of them dynamically.
----