changeset 27956e3ea48a in modules/stock_product_location:default
details:
https://hg.tryton.org/modules/stock_product_location?cmd=changeset;node=27956e3ea48a
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 55dfff7f3148 -r 27956e3ea48a setup.py
--- a/setup.py Sat Jan 26 01:10:48 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):
@@ -68,10 +68,11 @@
download_url=download_url,
keywords='tryton stock product location',
package_dir={'trytond.modules.stock_product_location': '.'},
- packages=[
- 'trytond.modules.stock_product_location',
- 'trytond.modules.stock_product_location.tests',
- ],
+ packages=(
+ ['trytond.modules.stock_product_location'] +
+ ['trytond.modules.stock_product_location.%s' % p
+ for p in find_packages()]
+ ),
package_data={
'trytond.modules.stock_product_location': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'label.odt',