From de1a3af0198d95d933bd3c49cef790fd71823fdb Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Wed, 20 Oct 2021 10:49:47 +0100 Subject: [PATCH] build: more intentional about what's included in sdist Our sdist has typically included everything from git apart from the CI related files (.github/*, .fossa.yml, .readthedocs.yaml). Update our MANIFEST.in and the check-manifest section of setup.cfg to be explicit about this. Signed-off-by: Joshua Lock --- MANIFEST.in | 32 ++++++-------------------------- setup.cfg | 2 -- 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 764e1f58..06f92591 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,35 +1,15 @@ # License files include LICENSE* -# Test related files +# Development and testing +include *.txt +global-include pylintrc include tox.ini -recursive-include tests *.py -recursive-include tests *.md -include tests/repository_data/keystore/delegation_key -include tests/repository_data/keystore/root_key* -include tests/repository_data/keystore/snapshot_key -include tests/repository_data/keystore/targets_key -include tests/repository_data/keystore/timestamp_key -include tests/ssl_certs/*.crt -include tests/ssl_certs/*.key -recursive-include tests *.json -recursive-include tests *.txt -recursive-include tests *.cfg -recursive-include tests *.coveragerc -recursive-include tests *.pub +graft tests -# Development related files -include requirements*.txt -include pylintrc -include tuf/api/pylintrc - -# Docs -include docs/conf.py +# Documentation +graft docs recursive-include tuf *.md -recursive-include docs *.txt -recursive-include docs *.md -recursive-include docs *.rst # To remove recursive-include tuf/scripts *.py - diff --git a/setup.cfg b/setup.cfg index 099d3fa9..f880a389 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,8 +49,6 @@ exclude = tests ignore = .fossa.yml .readthedocs.yaml - docs/images/* - docs/latex/* [mypy] warn_unused_configs = True