diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-10-28 10:32:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 10:32:00 -0400 |
commit | 4c9216ea337a7ecb68fa1ae1691b25a739af8740 (patch) | |
tree | 1f400c1e5b63f42fbc3767b5e6fb6bd9342df488 /docs/setuptools.txt | |
parent | fb84b3fdfd6d4e010d8397efacf4388ee418da7f (diff) | |
parent | 009e0a92b463d444e48c17a3a636fc7c477dec71 (diff) | |
download | external_python_setuptools-4c9216ea337a7ecb68fa1ae1691b25a739af8740.tar.gz external_python_setuptools-4c9216ea337a7ecb68fa1ae1691b25a739af8740.tar.bz2 external_python_setuptools-4c9216ea337a7ecb68fa1ae1691b25a739af8740.zip |
Merge pull request #1537 from madig/doc-setup.cfg-src-layout
Document using setup.cfg for src-layouts
Diffstat (limited to 'docs/setuptools.txt')
-rw-r--r-- | docs/setuptools.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt index ec40548a..28c7d81f 100644 --- a/docs/setuptools.txt +++ b/docs/setuptools.txt @@ -2405,6 +2405,35 @@ Metadata and options are set in the config sections of the same name. * Unknown keys are ignored. +Using a ``src/`` layout +======================= + +One commonly used package configuration has all the module source code in a +subdirectory (often called the ``src/`` layout), like this:: + + ├── src + │ └── mypackage + │ ├── __init__.py + │ └── mod1.py + ├── setup.py + └── setup.cfg + +You can set up your ``setup.cfg`` to automatically find 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 ================= |