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

        issue7963
        review253111002
diffstat:

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

diffs (28 lines):

diff -r 6fd28cc0e6b9 -r cbc88df36fd7 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 io
 from configparser import ConfigParser
-from setuptools import setup
+from setuptools import setup, find_packages
 
 
 def read(fname):
@@ -65,10 +65,11 @@
     download_url=download_url,
     keywords='tryton account standalone invoice line',
     package_dir={'trytond.modules.account_invoice_line_standalone': '.'},
-    packages=[
-        'trytond.modules.account_invoice_line_standalone',
-        'trytond.modules.account_invoice_line_standalone.tests',
-        ],
+    packages=(
+        ['trytond.modules.account_invoice_line_standalone'] +
+        ['trytond.modules.account_invoice_line_standalone.%s' % p
+            for p in find_packages()]
+        ),
     package_data={
         'trytond.modules.account_invoice_line_standalone': (
             info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po']),

Reply via email to