Use find_packages to discover packages
issue7963 review253111002
This commit is contained in:
1 parent
1275aa41ce
commit
4516301996
1 file changed
+5
-5
@@ -6,7 +6,7 @@ import io
|
||||
import os
|
||||
import re
|
||||
from configparser import ConfigParser
|
||||
from setuptools import setup
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
||||
def read(fname):
|
||||
@@ -65,10 +65,10 @@ setup(name=name,
|
||||
download_url=download_url,
|
||||
keywords='tryton company work time',
|
||||
package_dir={'trytond.modules.company_work_time': '.'},
|
||||
packages=[
|
||||
'trytond.modules.company_work_time',
|
||||
'trytond.modules.company_work_time.tests',
|
||||
],
|
||||
packages=(
|
||||
['trytond.modules.company_work_time'] +
|
||||
['trytond.modules.company_work_time.%s' % p for p in find_packages()]
|
||||
),
|
||||
package_data={
|
||||
'trytond.modules.company_work_time': (info.get('xml', [])
|
||||
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
|
||||
|
||||
Reference in new issue
Block a user