changeset 451abedb9f75 in modules/account_invoice_history:5.0
details:
https://hg.tryton.org/modules/account_invoice_history?cmd=changeset;node=451abedb9f75
description:
Use find_packages to discover packages
issue7963
review253111002
(grafted from 4e72adc086c2fe99f463d13ed553809790bc0a67)
diffstat:
setup.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 3fcbcf960a25 -r 451abedb9f75 setup.py
--- a/setup.py Tue Feb 19 21:56:17 2019 +0100
+++ b/setup.py Fri Mar 22 15:33:43 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):
@@ -65,9 +65,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']),