changeset 71f330c1ab3d in modules/account_invoice_history:4.8
details: 
https://hg.tryton.org/modules/account_invoice_history?cmd=changeset;node=71f330c1ab3d
description:
        Use find_packages to discover packages

        issue7963
        review253111002
        (grafted from 4e72adc086c2fe99f463d13ed553809790bc0a67)
diffstat:

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

diffs (34 lines):

diff -r f423f325fc5f -r 71f330c1ab3d setup.py
--- a/setup.py  Tue Feb 19 22:43:16 2019 +0100
+++ b/setup.py  Fri Mar 22 15:33:43 2019 +0100
@@ -2,7 +2,6 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
 
-from setuptools import setup
 import re
 import os
 import io
@@ -10,6 +9,7 @@
     from configparser import ConfigParser
 except ImportError:
     from ConfigParser import ConfigParser
+from setuptools import setup, find_packages
 
 
 def read(fname):
@@ -67,9 +67,11 @@
     download_url=download_url,
     keywords='tryton account invoice history',
     package_dir={'trytond.modules.account_invoice_history': '.'},
-    packages=[
-        'trytond.modules.account_invoice_history',
-        ],
+    packages=(
+        ['trytond.modules.account_invoice_history'] +
+        ['trytond.modules.account_invoice_history.%s' % p
+            for p in find_packages()]
+        ),
     package_data={
         'trytond.modules.account_invoice_history': (info.get('xml', [])
             + ['tryton.cfg', 'locale/*.po']),

Reply via email to