From e4ed5c4ac692211be5c3348d87bc70097c03c970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 22 Mar 2019 15:33:43 +0100 Subject: [PATCH] Use find_packages to discover packages issue7963 review253111002 --- setup.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index f7e2bb6170..e2a3270f38 100755 --- a/setup.py +++ b/setup.py @@ -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): @@ -69,10 +69,11 @@ setup(name=name, download_url=download_url, keywords='tryton account stock valuation continental', package_dir={'trytond.modules.account_stock_continental': '.'}, - packages=[ - 'trytond.modules.account_stock_continental', - 'trytond.modules.account_stock_continental.tests', - ], + packages=( + ['trytond.modules.account_stock_continental'] + + ['trytond.modules.account_stock_continental.%s' % p + for p in find_packages()] + ), package_data={ 'trytond.modules.account_stock_continental': (info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst']),