changeset d440a905c58f in modules/sale_shipment_grouping:4.2
details:
https://hg.tryton.org/modules/sale_shipment_grouping?cmd=changeset;node=d440a905c58f
description:
Use find_packages to discover packages
issue7963
review253111002
(grafted from 859976b725e34c3a550af1e4eda1071b80047f60)
diffstat:
setup.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 47b359b689e9 -r d440a905c58f setup.py
--- a/setup.py Thu May 16 23:12:32 2019 +0200
+++ b/setup.py Fri Mar 22 15:33:44 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):
@@ -68,9 +68,10 @@
download_url=download_url,
keywords='tryton sale shipment grouping',
package_dir={'trytond.modules.sale_shipment_grouping': '.'},
- packages=[
- 'trytond.modules.sale_shipment_grouping',
- ],
+ packages=(
+ ['trytond.modules.sale_shipment_grouping'] +
+ ['trytond.modules.sale_shipment_grouping.%s' % p for p in
find_packages()]
+ ),
package_data={
'trytond.modules.sale_shipment_grouping': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst']),