changeset 633cc6ccf4bd in modules/stock_location_move:default
details:
https://hg.tryton.org/modules/stock_location_move?cmd=changeset;node=633cc6ccf4bd
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 5bc58ce7d86a -r 633cc6ccf4bd 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):
@@ -68,10 +68,10 @@
download_url=download_url,
keywords='tryton stock location',
package_dir={'trytond.modules.stock_location_move': '.'},
- packages=[
- 'trytond.modules.stock_location_move',
- 'trytond.modules.stock_location_move.tests',
- ],
+ packages=(
+ ['trytond.modules.stock_location_move'] +
+ ['trytond.modules.stock_location_move.%s' % p for p in find_packages()]
+ ),
package_data={
'trytond.modules.stock_location_move': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.fodt',