Skip to content

Commit

Permalink
Ignore newsfragments and launcher directories in setuptools project i…
Browse files Browse the repository at this point in the history
…tself (#4007)
  • Loading branch information
abravalheri committed Aug 15, 2023
2 parents a0fca44 + df8836a commit 9e24163
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions newsfragments/4007.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ignore ``newsfragments`` directories in the source tree when performing automatic discovery of packages.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ exclude =
*.tests.*
tools*
debian*
launcher*
newsfragments*

[options.extras_require]
testing =
Expand Down
1 change: 1 addition & 0 deletions setuptools/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ class FlatLayoutPackageFinder(PEP420PackageFinder):
"documentation",
"manpages",
"news",
"newsfragments",
"changelog",
"test",
"tests",
Expand Down

0 comments on commit 9e24163

Please sign in to comment.