You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setuptools users become able to omit redundant definition when they want to add exclude directory or file in flat-layout.
And they also become able to manage many packages because they can reduce toils of maintain pyproject.toml in each project.
pyproject.toml when exclude as same as DEFAULT_EXCLUDE by tool.setuptools.packages.find.exclude
For example, adds parameter additional_exclude which inherits DEFAULT_EXCLUDE .
Alternative Solutions
Alternative Solution A
(If it can) User rename target directory with starting . .
Because Setuptools ignore by DEFAULT_EXCLUDE .
However, directory starting with . behaves as hidden by system.
It's intension isn't always same as excluding when build.
Alternative Solution B
Setuptools adds directory to exclude when user report in GitHub Issues.
However, Setuptools shouldn't cover every tools because there are infinite minor tools.
Hi @yukihiko-shinoda, thank you very much for bringing this topic to discussion.
I think it does make sense to add htmlcov to the list of directories ignored by default. If you would like to work on a PR for that I would be very happy to review.
In my opinion, however, it makes less sense to work on the inheritance of DEFAULT_EXCLUDE, the reason is that if the user is going to the trouble of customizing the list, it might make more sense to use include instead of exclude. For example, if you package is called mypkg, it may make more sense to use include = ["mypkg*"].
What's the problem this feature will solve?
Setuptools users become able to omit redundant definition when they want to add exclude directory or file in
flat-layout
.And they also become able to manage many packages because they can reduce toils of maintain
pyproject.toml
in each project.pyproject.toml when exclude as same as DEFAULT_EXCLUDE by tool.setuptools.packages.find.exclude
cf. Package Discovery and Namespace Packages - setuptools 65.3.0.post20220826 documentation
Describe the solution you'd like
For example, adds parameter
additional_exclude
which inheritsDEFAULT_EXCLUDE
.Alternative Solutions
Alternative Solution A
(If it can) User rename target directory with starting
.
.Because Setuptools ignore by
DEFAULT_EXCLUDE
.However, directory starting with
.
behaves as hidden by system.It's intension isn't always same as excluding when build.
Alternative Solution B
Setuptools adds directory to exclude when user report in GitHub Issues.
However, Setuptools shouldn't cover every tools because there are infinite minor tools.
Additional context
In my case, I would to exclude
htmlcov
directory additionally which is dump of coverage.see: Command line usage — Coverage.py 6.3.2 documentation
Code of Conduct
The text was updated successfully, but these errors were encountered: