From d9206254af9b24e483eb1fd7f9e124e4f6d9b2e6 Mon Sep 17 00:00:00 2001 From: Artur Barseghyan Date: Thu, 28 Nov 2024 21:11:53 +0100 Subject: [PATCH] Fix tox --- tox.ini | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/tox.ini b/tox.ini index d2fa6b2..729eabb 100644 --- a/tox.ini +++ b/tox.ini @@ -4,86 +4,69 @@ envlist = py{39,310,311,312,313}-{customization,dataclasses,django,hypothesis,lazyfuzzy,pydantic,sqlalchemy,sqlmodel,tortoise} skip_build = True -[baseenv] -passenv = * -allowlist_externals=* -commands = - {envpython} -m pip install -e .[all] - {env:EXTRA_COMMANDS:} - [testenv] passenv = * allowlist_externals=* -commands_pre = - {[baseenv]commands} commands = + cd {toxinidir} && {envpython} -m pip install -e .[all] {envpython} -m pytest -vrx [testenv:py{39,310,311,312,313}-customization] changedir = examples/customization -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} manage.py test [testenv:py{39,310,311,312,313}-dataclasses] changedir = examples/dataclasses -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} manage.py test [testenv:py{39,310,311,312,313}-django] changedir = examples/django -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} -m pip install -r requirements.in {envpython} manage.py test [testenv:py{39,310,311,312,313}-hypothesis] changedir = examples/hypothesis -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} -m pip install -r requirements.in {envpython} manage.py test [testenv:py{39,310,311,312,313}-lazyfuzzy] changedir = examples/lazyfuzzy -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} manage.py test [testenv:py{39,310,311,312,313}-pydantic] changedir = examples/pydantic -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} -m pip install -r requirements.in {envpython} manage.py test [testenv:py{39,310,311,312,313}-sqlalchemy] changedir = examples/sqlalchemy -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} -m pip install -r requirements.in {envpython} manage.py test [testenv:py{39,310,311,312,313}-sqlmodel] changedir = examples/sqlmodel -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} -m pip install -r requirements.in {envpython} manage.py test [testenv:py{39,310,311,312,313}-tortoise] changedir = examples/tortoise -commands_pre = - {[baseenv]commands} commands = + sh -c 'cd {toxinidir} && {envpython} -m pip install -e .[all]' {envpython} -m pip install -r requirements.in {envpython} manage.py test