mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
setup: Don't include data/ files as package data
- Don't include all data files of a package by default anymore. - Simplify expressions for what is included as part of package data. - Explicitly don't include data/* files in package data. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
39167bfd7e
commit
925f7dd1c1
6
setup.py
6
setup.py
@ -266,13 +266,13 @@ setuptools.setup(
|
||||
'ruamel.yaml',
|
||||
],
|
||||
tests_require=['pytest', 'pytest-cov', 'pytest-django'],
|
||||
include_package_data=True,
|
||||
package_data={
|
||||
'plinth': [
|
||||
'templates/*', 'modules/*/static/*', 'modules/*/templates/*',
|
||||
'': [
|
||||
'templates/*', 'static/*',
|
||||
'locale/*/LC_MESSAGES/*.[pm]o'
|
||||
]
|
||||
},
|
||||
exclude_package_data={'': ['*/data/*']},
|
||||
data_files=_gather_data_files() +
|
||||
[('/usr/share/plinth/actions', glob.glob(os.path.join('actions', '*'))),
|
||||
('/usr/share/man/man1', ['doc/plinth.1'])],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user