Skip to content

Commit

Permalink
Fix template file inclusion in Python package (#731)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cottsay committed Mar 27, 2024
1 parent c6b45ea commit 311c635
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand Down

0 comments on commit 311c635

Please sign in to comment.