From a8bda30e694a05133ed64ee1cb0808d59144db6b Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Thu, 18 May 2023 16:51:50 +0800 Subject: [PATCH] [PATCH] Including files in source distributions with MANIFEST.in When packaging as .deb/.rpm with setuptools (sometime without setuptools_scm), some required template files are excluded from the final packaging result, unless specify them within `MANIFEST.in`. See https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html See https://packaging.python.org/en/latest/guides/using-manifest-in Signed-off-by: Wong Hoi Sing Edison --- MANIFEST.in | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..27c0ce67 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,9 @@ +include LICENSE +include README.md + +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] + +recursive-include src/molecule_plugins/*/cookiecutter **/* +recursive-include src/molecule_plugins/*/modules **/* +recursive-include src/molecule_plugins/*/playbooks **/*