Use find_packages to discover packages

issue7963
review253111002
This commit is contained in:
Cédric Krier committed 2019-03-22 15:33:43 +01:00
1 parent 9a4a1c78b8
commit 46435262fc
1 file changed
+5 -5
+5 -5
View File
@@ -6,7 +6,7 @@ import io
import os
import re
from configparser import ConfigParser
from setuptools import setup
from setuptools import setup, find_packages
def read(fname):
@@ -66,10 +66,10 @@ setup(name=name,
download_url=download_url,
keywords='tryton ldap authentication',
package_dir={'trytond.modules.ldap_authentication': '.'},
packages=[
'trytond.modules.ldap_authentication',
'trytond.modules.ldap_authentication.tests',
],
packages=(
['trytond.modules.ldap_authentication'] +
['trytond.modules.ldap_authentication.%s' % p for p in find_packages()]
),
package_data={
'trytond.modules.ldap_authentication': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),