Make trytond-gis depends on the trytond extras test for its tests
This commit is contained in:
@@ -46,6 +46,7 @@ else:
|
||||
major_version, minor_version)
|
||||
|
||||
requires = ['geomet', get_require_version('trytond'), 'psycopg2 >= 2.0.14']
|
||||
tests_require = [get_require_version('trytond[test]')]
|
||||
|
||||
setup(name=name,
|
||||
version=version,
|
||||
@@ -80,6 +81,9 @@ setup(name=name,
|
||||
license='GPL-3',
|
||||
python_requires='>=3.9',
|
||||
install_requires=requires,
|
||||
extras_require={
|
||||
'test': tests_require,
|
||||
},
|
||||
entry_points={
|
||||
'trytond.backend': [
|
||||
'postgis = trytond_gis.postgis',
|
||||
|
||||
@@ -3,6 +3,7 @@ envlist = py39,py310,py311,py312,py313
|
||||
|
||||
[testenv]
|
||||
usedevelop = true
|
||||
extras = test
|
||||
commands =
|
||||
coverage run --omit=*/tests/* -m xmlrunner discover -s trytond.tests {posargs}
|
||||
coverage run -a --omit=*/tests/* -m xmlrunner discover -s trytond_gis.tests {posargs}
|
||||
|
||||
Reference in New Issue
Block a user