changeset 8427e409b360 in modules/authentication_sms:default
details:
https://hg.tryton.org/modules/authentication_sms?cmd=changeset;node=8427e409b360
description:
Use find_packages to discover packages
issue7963
review253111002
diffstat:
setup.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r b2f3dce509d8 -r 8427e409b360 setup.py
--- a/setup.py Sat Jan 26 01:10:47 2019 +0100
+++ b/setup.py Fri Mar 22 15:33:43 2019 +0100
@@ -6,7 +6,7 @@
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 @@
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 @@
'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',