Use find_packages to discover packages

issue7963
review253111002
This commit is contained in:
Cédric Krier committed 2019-03-22 15:33:44 +01:00
1 parent 6afa81bb8d
commit 98ec9e0a1f
1 file changed
+6 -5
+6 -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):
@@ -65,10 +65,11 @@ setup(name=name,
download_url=download_url,
keywords='tryton stock location sequence',
package_dir={'trytond.modules.stock_location_sequence': '.'},
packages=[
'trytond.modules.stock_location_sequence',
'trytond.modules.stock_location_sequence.tests',
],
packages=(
['trytond.modules.stock_location_sequence'] +
['trytond.modules.stock_location_sequence.%s' % p
for p in find_packages()]
),
package_data={
'trytond.modules.stock_location_sequence': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),