Skip to content

Exclude test files from source/binary distributions #2956

@seisman

Description

@seisman

Running make package can create source and binary distributions. Here are the files/directories included in the source tarball:

$ tree -L 2
.
├── AUTHORSHIP.md
├── AUTHORS.md
├── CITATION.cff
├── CODE_OF_CONDUCT.md
├── LICENSE.txt
├── MANIFEST.in
├── PKG-INFO
├── pygmt
│   ├── accessors.py
│   ├── clib
│   ├── datasets
│   ├── exceptions.py
│   ├── figure.py
│   ├── helpers
│   ├── __init__.py
│   ├── io.py
│   ├── session_management.py
│   ├── sphinx_gallery.py
│   ├── src
│   └── tests
├── pygmt.egg-info
│   ├── dependency_links.txt
│   ├── PKG-INFO
│   ├── requires.txt
│   ├── SOURCES.txt
│   └── top_level.txt
├── pyproject.toml
├── README.rst
└── setup.cfg

8 directories, 22 files
  1. AUTHORSHIP.md is excluded in MANIFEST.in. Why is it still here?
  2. Exclude CODE_OF_CONDUCT.md from the tarball?
  3. Exclude the whole pygmt/tests directory? The reasons are (1): tests are 536 KB and others are 900 KB. (2) Users can't run these tests due to the missing DVC files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceBoring but important stuff for the core devs

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions