Use find_packages to discover packages
issue7963 review253111002
This commit is contained in:
1 parent
6afa81bb8d
commit
98ec9e0a1f
1 file changed
+6
-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,11 @@ setup(name=name,
|
||||
download_url=download_url,
|
||||
keywords='tryton stock location sequence',
|
||||
package_dir={'trytond.modules.stock_location_sequence': '.'},
|
||||
packages=[
|
||||
'trytond.modules.stock_location_sequence',
|
||||
'trytond.modules.stock_location_sequence.tests',
|
||||
],
|
||||
packages=(
|
||||
['trytond.modules.stock_location_sequence'] +
|
||||
['trytond.modules.stock_location_sequence.%s' % p
|
||||
for p in find_packages()]
|
||||
),
|
||||
package_data={
|
||||
'trytond.modules.stock_location_sequence': (info.get('xml', [])
|
||||
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
|
||||
|
||||
Reference in new issue
Block a user