Remove process-dependency-links [SKIP CI]
This commit is contained in:
parent
7e66b6e610
commit
e8fcce40a6
43
setup.py
43
setup.py
|
@ -45,39 +45,50 @@ minor_version = int(minor_version)
|
|||
name = 'datalife_sale_unit_load'
|
||||
download_url = 'https://bitbucket.org/datalife_sco/trytond-sale_unit_load'
|
||||
|
||||
requires = []
|
||||
for dep in info.get('depends', []):
|
||||
if not re.match(r'(ir|res)(\W|$)', dep):
|
||||
prefix = MODULE2PREFIX.get(dep, 'trytond')
|
||||
requires.append(get_require_version('%s_%s' % (prefix, dep)))
|
||||
requires.append(get_require_version('trytond'))
|
||||
|
||||
tests_require = [get_require_version('proteus'), 'datalife_sale_cost']
|
||||
series = '%s.%s' % (major_version, minor_version)
|
||||
if minor_version % 2:
|
||||
branch = 'default'
|
||||
else:
|
||||
branch = series
|
||||
dependency_links = [
|
||||
('hg+https://bitbucket.org/datalife_sco/'
|
||||
dependency_links = {
|
||||
'stock_unit_load': 'hg+https://bitbucket.org/datalife_sco/'
|
||||
'trytond-stock_unit_load@%(branch)s'
|
||||
'#egg=datalife_stock_unit_load-%(series)s' % {
|
||||
'branch': branch,
|
||||
'series': series,
|
||||
}),
|
||||
('hg+https://bitbucket.org/datalife_sco/'
|
||||
},
|
||||
}
|
||||
|
||||
requires = []
|
||||
for dep in info.get('depends', []):
|
||||
if not re.match(r'(ir|res)(\W|$)', dep):
|
||||
prefix = MODULE2PREFIX.get(dep, 'trytond')
|
||||
req = get_require_version('%s_%s' % (prefix, dep))
|
||||
if dep in dependency_links:
|
||||
req = '%s_%s @ %s' % (prefix, dep, dependency_links[dep])
|
||||
requires.append(req)
|
||||
requires.append(get_require_version('trytond'))
|
||||
|
||||
tests_require = [
|
||||
get_require_version('proteus'),
|
||||
'datalife_sale_cost'
|
||||
]
|
||||
|
||||
tests_dependency_links = [
|
||||
'hg+https://bitbucket.org/datalife_sco/'
|
||||
'trytond-sale_cost@%(branch)s'
|
||||
'#egg=datalife_sale_cost-%(series)s' % {
|
||||
'branch': branch,
|
||||
'series': series,
|
||||
}),
|
||||
('hg+https://bitbucket.org/datalife_sco/'
|
||||
},
|
||||
'hg+https://bitbucket.org/datalife_sco/'
|
||||
'trytond-document_cost@%(branch)s'
|
||||
'#egg=datalife_document_cost-%(series)s' % {
|
||||
'branch': branch,
|
||||
'series': series,
|
||||
}),
|
||||
},
|
||||
]
|
||||
|
||||
if minor_version % 2:
|
||||
# Add development index for testing with proteus
|
||||
dependency_links.append('https://trydevpi.tryton.org/')
|
||||
|
@ -133,7 +144,6 @@ setup(name=name,
|
|||
],
|
||||
license='GPL-3',
|
||||
install_requires=requires,
|
||||
dependency_links=dependency_links,
|
||||
zip_safe=False,
|
||||
entry_points="""
|
||||
[trytond.modules]
|
||||
|
@ -142,6 +152,7 @@ setup(name=name,
|
|||
test_suite='tests',
|
||||
test_loader='trytond.test_loader:Loader',
|
||||
tests_require=tests_require,
|
||||
dependency_links=tests_dependency_links,
|
||||
use_2to3=True,
|
||||
convert_2to3_doctests=[
|
||||
'tests/scenario_sale.rst',
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -15,4 +15,4 @@ setenv =
|
|||
sqlite: DB_NAME={env:SQLITE_NAME::memory:}
|
||||
postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
|
||||
mysql: DB_NAME={env:MYSQL_NAME:test}
|
||||
install_command = pip install --pre --process-dependency-links {opts} {packages}
|
||||
install_command = pip install --pre {opts} {packages}
|
||||
|
|
Loading…
Reference in New Issue