Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning on support of attr: directive #806

Merged

Conversation

ajnelson-nist
Copy link
Contributor

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.

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.
@ajnelson-nist
Copy link
Contributor Author

@jaraco I welcome any revisions to this patch. One thing I wasn't sure about is where there might be a statement of the class of features that confused me not being supported in setup.py.

@jaraco
Copy link
Member

jaraco commented Dec 23, 2020

This looks fine to me. The note is in a particular corner of the docs (single-source version), so will be missed by others, but since you were the affected user, I'm guessing this is where the note would need to be to have the intended effect. Ultimately, guidance like this should probably go in the documentation for parameters to setup() and maybe in the section on declarative config, although given the complexities due to distutils docs overlapping with setuptools docs, there may not be a good place for that right now.

Base automatically changed from master to main January 21, 2021 18:44
@webknjaz webknjaz requested a review from di February 3, 2021 18:39
ajnelson-nist and others added 2 commits February 3, 2021 15:09
Thanks to @webknjaz for the style pointer.

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
@di di merged commit 41e77c6 into pypa:main Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants