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:
Sunil Mohan Adapa 2019-03-10 17:15:45 -07:00 committed by James Valleroy
parent 39167bfd7e
commit 925f7dd1c1
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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'])],