From 81c1fc952a85f3a970c9b36ff66cfe67c8b11734 Mon Sep 17 00:00:00 2001 From: "Paul J. Dorn" Date: Mon, 12 Aug 2024 15:44:03 +0200 Subject: [PATCH 1/2] packaging: include tox.ini in sdist tox testing works without full git repo, so no obvious harm in aiding people running it from source distribution based on setuptools itself doing it, and suggesting so in an example in docs: https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html#controlling-files-in-the-distribution https://github.com/pypa/setuptools/commit/551eb7f444dea2cb15cd70093d37d49b42a49d07 beware of .gitattributes / MANIFEST.in precedence when using setuptools-scm --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index af8aae7e7..05ff5bd1a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,6 +5,7 @@ include README.rst include THANKS include requirements_dev.txt include requirements_test.txt +include tox.ini recursive-include tests * recursive-include examples * recursive-include docs * From 0c722b691544d5091f50819fcfeb9a4e84b846c8 Mon Sep 17 00:00:00 2001 From: "Paul J. Dorn" Date: Mon, 12 Aug 2024 16:00:56 +0200 Subject: [PATCH 2/2] packaging: add .pylintrc to sdist undo when .pylintrc is moved into pyproject.toml (which is only supported since pylint 2.5.3+ @ 2020-06-8) --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index 05ff5bd1a..1423168b5 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,6 +6,7 @@ include THANKS include requirements_dev.txt include requirements_test.txt include tox.ini +include .pylintrc recursive-include tests * recursive-include examples * recursive-include docs *