From 311c6354f7869df95122831a96948847ae9f2c0d Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 27 Mar 2024 11:07:53 -0500 Subject: [PATCH] Fix template file inclusion in Python package (#731) The setuptools documentation states that `package_data` is used for finer-grained control over the inclusion of package data as an alternative to `include_package_data`/`MANIFEST.in`. After correcting the glob patterns in `package_data`, the latter mechanisms are no longer needed. --- MANIFEST.in | 2 -- setup.py | 9 ++++----- 2 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index adf391a6..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,2 +0,0 @@ -recursive-include bloom/generators/debian/templates * -recursive-include bloom/generators/rpm/templates * diff --git a/setup.py b/setup.py index 4bd6442b..95f685dc 100755 --- a/setup.py +++ b/setup.py @@ -27,14 +27,13 @@ packages=find_packages(exclude=['test', 'test.*']), package_data={ 'bloom.generators.debian': [ - 'bloom/generators/debian/templates/*', - 'bloom/generators/debian/templates/source/*' + 'templates/*/*', + 'templates/*/source/*', ], 'bloom.generators.rpm': [ - 'bloom/generators/rpm/templates/*' - ] + 'templates/*/*.em', + ], }, - include_package_data=True, install_requires=install_requires, extras_require={ 'test': [