diff options
author | Nikolaus Waxweiler <madigens@gmail.com> | 2018-10-27 15:40:30 +0100 |
---|---|---|
committer | Nikolaus Waxweiler <madigens@gmail.com> | 2018-10-27 15:40:30 +0100 |
commit | d011cd989c1d3d5906f2bffb8d68a9da88cab120 (patch) | |
tree | a9432e63d574d61ad06be771e9037db33288c1c9 /docs | |
parent | 56a7c4436e6370ae369f89cd6cef9294d03af8a2 (diff) | |
download | external_python_setuptools-d011cd989c1d3d5906f2bffb8d68a9da88cab120.tar.gz external_python_setuptools-d011cd989c1d3d5906f2bffb8d68a9da88cab120.tar.bz2 external_python_setuptools-d011cd989c1d3d5906f2bffb8d68a9da88cab120.zip |
Document using setup.cfg for src-layouts
Diffstat (limited to 'docs')
-rw-r--r-- | docs/setuptools.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt index 46103b25..3cde56ea 100644 --- a/docs/setuptools.txt +++ b/docs/setuptools.txt @@ -2400,6 +2400,34 @@ Metadata and options are set in the config sections of the same name. * Unknown keys are ignored. +Using a ``src/`` layout (storing packages in a subdirectory) +============================================================ + +If you use a `src` layout, as in, you package structure looks like this:: + + ├── src + │ └── mypackage + │ ├── __init__.py + │ └── mod1.py + ├── setup.py + └── setup.cfg + +You can set up your ``setup.cfg`` to automatically look up all your packages in +the subdirectory like this: + +.. code-block:: ini + + # This example contains just the necessary options for a src-layout, set up + # the rest of the file as described above. + + [options] + package_dir= + =src + packages=find: + + [options.packages.find] + where=src + Specifying values ================= |