Skip to content

[MAINT / BEGGINNERS FRIENDLY]: Exclude scripts from source code distribution #2520

Closed

Description

@echedey-ls

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.

For example, using pvlib-0.13.0.tar.gz as an example:
https://pypi.org/project/pvlib/#files

Image

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.

Activity

  1. added
    build tools
    and removed on Jul 30, 2025
  2. added theissue type on Jul 30, 2025
  3. kandersolar commented on Sep 18, 2025

    @kandersolar
    Member

    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.

  4. added a commit that references this issue on Nov 6, 2025
    5bfaedb
  5. added this to the v0.13.2 milestone on Nov 12, 2025
  6. added a commit that references this issue on Nov 12, 2025
    eaac4f8
  7. modified the milestones: v0.13.2, v0.14.0 on Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build toolsenhancement

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions