Skip to content

Commit 8cd8645

Browse files
committed
Add warning on support of attr: directive
This patch is part of addressing setuptools issue 2492: pypa/setuptools#2492 The code in this Note block was found to not apply to equivalently-named features in setup.py. After discussion on the above issue, a project maintainer noted this behavior was expected. This patch adds documentation of expected behavior close to where it would be discovered by somebody who stumbled upon the attr: feature, but might not know the background on directives and setup.cfg vs. setup.py.
1 parent 8c1f843 commit 8cd8645

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/guides/single-sourcing-package-version.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ number of your project:
4949
analysis so that ``attr:`` can function without having to import any of
5050
the package's dependencies.
5151

52+
Also, please be aware that declarative config indicators, including the
53+
``attr:`` directive, are not supported in parameters to setup.py.
5254

5355
#. Use an external build tool that either manages updating both locations, or
5456
offers an API that both locations can use.

0 commit comments

Comments
 (0)