Skip to content

Unnecessary files in the source distribution? #904

Closed

Description

@seisman

Running python setup.py sdist will build a PyGMT source distribution in the dist directory (e.g., dist/pygmt-0.3.0.tar.gz.

The tarball contains the PyGMT source codes. Below is the list of top-level files and directories:

.codecov.yml
.github
.gitignore
.pylintrc
AUTHORS.md
AUTHORSHIP.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.txt
MAINTENANCE.md
MANIFEST.in
Makefile
PKG-INFO
README.rst
doc
environment.yml
examples
package.json
pygmt
pygmt.egg-info
pyproject.toml
requirements-dev.txt
requirements.txt
setup.cfg
setup.py
vercel.json

I'm not familiar with Python source distributions, but some files seem unnecessary (e.g., vercel.json, package.json, .github).

Reading the Python package guide, I thought most plaintext files won't be added into the source distribution, unless explicitly specified in the MANIFEST.in file. Perhaps my understanding is wrong.

Activity

  1. added
    question
    on Feb 15, 2021
  2. weiji14 commented on Feb 16, 2021

    @weiji14
    Member

    Yeah we should fix this by the next release (v0.3.1). Not that we'll reach it anytime soon, but PyPI has a 10GB total project size limit, and a 100 MB project upload limit (i.e. per release/version).

    image

  3. added this to the 0.3.1 milestone on Feb 16, 2021
  4. added
    help wanted
    maintenance
    and removed
    question
    on Feb 16, 2021
  5. seisman commented on Mar 2, 2021

    @seisman
    MemberAuthor

    So setuptools_scm includes all files in the source distribution by default.

    See https://github.com/pypa/setuptools_scm#file-finders-hook-makes-most-of-manifestin-unnecessary and pypa/setuptools-scm#516.

    I think we need to explicitly exclude unnecessary files in the MANIFEST.in file.

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

    help wantedmaintenance

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions