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
{{ message }}
Repository navigation
[MAINT / BEGGINNERS FRIENDLY]: Exclude scripts from source code distribution #2520
Is your feature request related to a problem? Please describe. #2267 introduced a new folder in the layout at the root of the repo, scripts, to include a file that finds the most upvoted issues and sorts them in a Top-ranking issues tracker.
By default, our version manager, setuptools-scm, includes all the repository files by default in the source distribution, sdist (that .tar.gz file in PyPI). However, this source distribution often comprises just enough files to build a wheel, run tests, and create the documentation. Development-platform specific code and helpers are usually not considered in any of this categories; for example, .github folder is pruned. Which folders/files get excluded is configured in MANIFEST.in.
Describe the solution you'd like
Removing this folder as a whole, with the appropriate exclude instruction in MANIFEST.in.
Describe alternatives you've considered
Removing just the lone script file in that folder.
Not doing anything, cause ya know, it doesn't really have an impact.
Additional context
I expect a contributor to deduce the exact instruction that must be used (it is easy from a quick glance at the manifest file).
Warning
I'm saving this issue for potential contributors that, (a) have never contributed to pvlib and (b) do expect to contribute to this library in the future. Please, don't work on this issue without previous agreement.
Another option is to remove the scripts folder from the repo entirely (not just exclude it from the distributions), and move that script file into .github, since that's the only place it gets used.
Reacted by Adam R. Jensen, Echedey Luis and Will Holmgren
Activity
kandersolar commentedon Sep 18, 2025
Another option is to remove the
scriptsfolder from the repo entirely (not just exclude it from the distributions), and move that script file into.github, since that's the only place it gets used.Move top ranking script to .github/workflows
Remove `scripts` from source code distribution (pvlib#2593)