changeset 88bf67f160df in modules/timesheet:default
details: https://hg.tryton.org/modules/timesheet?cmd=changeset;node=88bf67f160df
description:
        Use find_packages to discover packages

        issue7963
        review253111002
diffstat:

 setup.py |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r 4f9e511a2631 -r 88bf67f160df setup.py
--- a/setup.py  Sun Mar 03 23:11:17 2019 +0100
+++ b/setup.py  Fri Mar 22 15:33:44 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):
@@ -65,10 +65,10 @@
     download_url=download_url,
     keywords='tryton timesheet',
     package_dir={'trytond.modules.timesheet': '.'},
-    packages=[
-        'trytond.modules.timesheet',
-        'trytond.modules.timesheet.tests',
-        ],
+    packages=(
+        ['trytond.modules.timesheet'] +
+        ['trytond.modules.timesheet.%s' % p for p in find_packages()]
+        ),
     package_data={
         'trytond.modules.timesheet': (info.get('xml', [])
             + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'icons/*.svg']),

Reply via email to