From 595ac88825fe9ad24d83bf4d4ade0ce9e6d36d04 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 8bed632ea6..a4d0b852a6 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): @@ -66,10 +66,10 @@ setup(name=name, download_url=download_url, keywords='tryton sms authentication two-factor 2FA', package_dir={'trytond.modules.authentication_sms': '.'}, - packages=[ - 'trytond.modules.authentication_sms', - 'trytond.modules.authentication_sms.tests', - ], + packages=( + ['trytond.modules.authentication_sms'] + + ['trytond.modules.authentication_sms.%s' % p for p in find_packages()] + ), package_data={ 'trytond.modules.authentication_sms': (info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.fodt', @@ -82,7 +82,7 @@ setup(name=name, 'Intended Audience :: Developers', 'Intended Audience :: Financial and Insurance Industry', 'Intended Audience :: Legal Industry', - 'License :: OSI Approved :: GNU General Public License (GPL)', + 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Natural Language :: Bulgarian', 'Natural Language :: Catalan', 'Natural Language :: Czech',