X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=tox.ini;h=8b329bf5d4a9b402132d89cb5d8013a42374b4b7;hb=cd21ec69cc9c25d80dfd36a7dd0b88e1e93ec66d;hp=2dc81107a6a061b5e642832c4356c2c6a90f4f89;hpb=cca4acdd2d0c55f5d1d38a4753e5722a2fafb5fa;p=osm%2Fosmclient.git diff --git a/tox.ini b/tox.ini index 2dc8110..8b329bf 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ toxworkdir = /tmp/.tox [testenv] usedevelop = True -basepython = python3 +basepython = python3.8 setenv = VIRTUAL_ENV={envdir} PYTHONDONTWRITEBYTECODE = 1 deps = -r{toxinidir}/requirements.txt @@ -31,10 +31,10 @@ parallel_show_output = true ####################################################################################### [testenv:black] -deps = black +deps = black==23.12.1 skip_install = true commands = - - black --check --diff osmclient/ + black --check --diff osmclient/ ####################################################################################### @@ -66,7 +66,7 @@ deps = {[testenv]deps} -r{toxinidir}/requirements-test.txt pylint commands = - - pylint -E osmclient + pylint -E osmclient ####################################################################################### @@ -82,13 +82,18 @@ commands = ####################################################################################### [testenv:pip-compile] -deps = pip-tools==5.5.0 +deps = pip-tools==6.6.2 +skip_install = true +whitelist_externals = bash + [ commands = - - sh -c 'for file in requirements*.in ; do pip-compile -rU --no-header $file ;\ - out=`echo $file | sed "s/.in/.txt/"` ; \ - head -16 tox.ini >> $out ;\ - done' -whitelist_externals = sh + - bash -c "for file in requirements*.in ; do \ + UNSAFE="" ; \ + if [[ $file =~ 'dist' ]] ; then UNSAFE='--allow-unsafe' ; fi ; \ + pip-compile -rU --no-header $UNSAFE $file ;\ + out=`echo $file | sed 's/.in/.txt/'` ; \ + sed -i -e '1 e head -16 tox.ini' $out ;\ + done" #######################################################################################