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
Exclude test files from source/binary distributions #2956
AUTHORSHIP.md is excluded in MANIFEST.in. Why is it still here?
Exclude CODE_OF_CONDUCT.md from the tarball?
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.
AUTHORSHIP.md is excluded in MANIFEST.in. Why is it still here?
Might be a case of pypa/setuptools#3260? We switched from setup.py to pyproject.toml in #1848 around Aug 2022, but most of the 'exclude' lines in MANIFEST.in was last modified in #999 around Mar 2021, and we might not have checked things properly. I tried for a bit with some settings, but couldn't figure out how to exclude those files...
Yeah, I just tried downloading the sdist tar.gz files for PyGMT, and v0.4.1 (released 7 Aug 2021) was the last time when AUTHORSHIP.md was excluded. All the releases from v0.5.0 (released 29 Oct 2021) onwards to v0.10.0 contain AUTHORSHIP.md 😅 Might not be a setup.py/pyproject.toml thing, but some setuptools bug.
AUTHORSHIP.md is excluded in MANIFEST.in. Why is it still here?
Might be a case of pypa/setuptools#3260? We switched from setup.py to pyproject.toml in #1848 around Aug 2022, but most of the 'exclude' lines in MANIFEST.in was last modified in #999 around Mar 2021, and we might not have checked things properly. I tried for a bit with some settings, but couldn't figure out how to exclude those files...
AUTHORSHIP.md is excluded in MANIFEST.in. Why is it still here?
Might be a case of pypa/setuptools#3260? We switched from setup.py to pyproject.toml in #1848 around Aug 2022, but most of the 'exclude' lines in MANIFEST.in was last modified in #999 around Mar 2021, and we might not have checked things properly. I tried for a bit with some settings, but couldn't figure out how to exclude those files...
Activity
weiji14 commentedon Jan 6, 2024
Might be a case of pypa/setuptools#3260? We switched from setup.py to pyproject.toml in #1848 around Aug 2022, but most of the 'exclude' lines in MANIFEST.in was last modified in #999 around Mar 2021, and we might not have checked things properly. I tried for a bit with some settings, but couldn't figure out how to exclude those files...
weiji14 commentedon Jan 6, 2024
Yeah, I just tried downloading the sdist tar.gz files for PyGMT, and v0.4.1 (released 7 Aug 2021) was the last time when AUTHORSHIP.md was excluded. All the releases from v0.5.0 (released 29 Oct 2021) onwards to v0.10.0 contain AUTHORSHIP.md 😅 Might not be a setup.py/pyproject.toml thing, but some setuptools bug.
seisman commentedon Jan 6, 2024
It's likely that
AUTHORSHIP.mdis a special name and is always included:seisman commentedon Jan 6, 2024
Making following changes to
MANIFEST.in:Then the source tarball contains following files/directories:
The new source tarball is 178 KB, compared to 244 KB for the old source tarball.
seisman commentedon Jan 6, 2024
Likely related to https://github.com/pypa/setuptools/blob/85fd45b7d10441f006cbbdee2b718aa741db5246/NEWS.rst#breaking-changes-12.
weiji14 commentedon Jan 6, 2024
Ah nice, so need to add this to pyproject.toml:
[tool.setuptools] platforms = ["Any"] include-package-data = true +license-files = ["LICENSE.txt"]