summaryrefslogtreecommitdiff
path: root/docs/setuptools.txt
diff options
context:
space:
mode:
authorJeremy Bowman <jbowman@edx.org>2018-05-14 17:53:42 -0400
committerJeremy Bowman <jbowman@edx.org>2018-05-15 11:15:05 -0400
commita960ee1c3f1d1d1067ec1e3c88dc345060bd33a4 (patch)
treea3abe6957a1b67643293c3ff469b91964431919d /docs/setuptools.txt
parent26b75f5151a761f3206b0dbf68f4e56363ca2ed4 (diff)
downloadpython-setuptools-git-a960ee1c3f1d1d1067ec1e3c88dc345060bd33a4.tar.gz
Support loading version from a file
Diffstat (limited to 'docs/setuptools.txt')
-rw-r--r--docs/setuptools.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt
index 5ee967ab..6b3bbded 100644
--- a/docs/setuptools.txt
+++ b/docs/setuptools.txt
@@ -2421,7 +2421,7 @@ Metadata
Key Aliases Type
============================== ================= =====
name str
-version attr:, str
+version attr:, file:, str
url home-page str
download_url download-url str
project_urls dict
@@ -2441,6 +2441,10 @@ requires list-comma
obsoletes list-comma
============================== ================= =====
+.. note::
+ A version loaded using the ``file:`` directive must comply with PEP 440.
+ It is easy to accidentally put something other than a valid version
+ string in such a file, so validation is stricter in this case.
Options
-------