summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlan Fregtman <941331+darkvertex@users.noreply.github.com>2021-06-30 01:15:18 -0400
committerAlan Fregtman <941331+darkvertex@users.noreply.github.com>2021-06-30 01:15:18 -0400
commit36b4820f519d93bad998302141ae6de2cb15191c (patch)
tree3b2f12b454f27de4d837f106885216ea89d28347 /docs
parent2234e88b7b820c40f29d7ddadc182b0f130eaa1d (diff)
downloadpython-setuptools-git-36b4820f519d93bad998302141ae6de2cb15191c.tar.gz
Implement "glob:" directive for declarative "data_files" option.
Diffstat (limited to 'docs')
-rw-r--r--docs/userguide/declarative_config.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/userguide/declarative_config.rst b/docs/userguide/declarative_config.rst
index 128d9f97..dcab0b3a 100644
--- a/docs/userguide/declarative_config.rst
+++ b/docs/userguide/declarative_config.rst
@@ -68,6 +68,7 @@ boilerplate code in some cases.
site.d/00_default.conf
host.d/00_default.conf
data = data/img/logo.png, data/svg/icon.svg
+ fonts = glob: data/fonts/*.ttf, glob: data/fonts/*.otf
Metadata and options are set in the config sections of the same name.
@@ -156,6 +157,8 @@ Special directives:
The ``file:`` directive is sandboxed and won't reach anything outside
the directory containing ``setup.py``.
+* ``glob:`` - Value will be treated as a glob() pattern and expanded accordingly.
+
Metadata
--------
@@ -225,7 +228,7 @@ package_data section [#
exclude_package_data section
namespace_packages list-comma
py_modules list-comma
-data_files dict 40.6.0
+data_files glob:, dict 40.6.0
======================= =================================== =============== =========
**Notes**: