diff --git a/CHANGELOG.md b/CHANGELOG.md index 38a7b4b..dfeaa09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ * Add requirements file references (-r file) support under strict mode (#94) * Configuration cache compatibility (#89) * Changed virtualenv version installed by default (python.virtualenvVersion) from 20.4.2 to 20.25.1 - (supports python 3.7 and above) + (supports python 3.7 - 3.12) * Changed default docker image (python.docker.image) from python:3.10.8-alpine3.15 to python:3.11.8-alpine3.19 ### 3.0.0 (2022-10-22) diff --git a/src/test/groovy/ru/vyarus/gradle/plugin/python/ConfigurationCacheSupportKitTest.groovy b/src/test/groovy/ru/vyarus/gradle/plugin/python/ConfigurationCacheSupportKitTest.groovy index f3a3a51..4f3fd2c 100644 --- a/src/test/groovy/ru/vyarus/gradle/plugin/python/ConfigurationCacheSupportKitTest.groovy +++ b/src/test/groovy/ru/vyarus/gradle/plugin/python/ConfigurationCacheSupportKitTest.groovy @@ -107,7 +107,7 @@ class ConfigurationCacheSupportKitTest extends AbstractKitTest { scope = VIRTUALENV pip 'extract-msg:0.28.0' pythonPath = "${env.pythonPath.replace('\\', '\\\\')}" - virtualenvVersion = "20.4.0" + virtualenvVersion = "20.24.6" } """ @@ -122,7 +122,7 @@ class ConfigurationCacheSupportKitTest extends AbstractKitTest { then: "task successful" result.task(':checkPython').outcome == TaskOutcome.SUCCESS - result.output.contains('-m pip install virtualenv==20.4.0') + result.output.contains("-m pip install virtualenv==20.24.6") when: "run from cache" @@ -131,7 +131,7 @@ class ConfigurationCacheSupportKitTest extends AbstractKitTest { then: "cache used" result.output.contains('Reusing configuration cache.') - !result.output.contains('-m pip install virtualenv==20.4.0') + !result.output.contains('-m pip install virtualenv==20.24.6') } def "Check list task"() { diff --git a/src/test/groovy/ru/vyarus/gradle/plugin/python/PythonPluginKitTest.groovy b/src/test/groovy/ru/vyarus/gradle/plugin/python/PythonPluginKitTest.groovy index 7f8b504..e4bbbb0 100644 --- a/src/test/groovy/ru/vyarus/gradle/plugin/python/PythonPluginKitTest.groovy +++ b/src/test/groovy/ru/vyarus/gradle/plugin/python/PythonPluginKitTest.groovy @@ -97,7 +97,7 @@ class PythonPluginKitTest extends AbstractKitTest { python { scope = VIRTUALENV pythonPath = "${env.pythonPath.replace('\\', '\\\\')}" - virtualenvVersion = "20.4.0" + virtualenvVersion = "20.24.6" pip 'extract-msg:0.28.0' } @@ -108,7 +108,7 @@ class PythonPluginKitTest extends AbstractKitTest { then: "task successful" result.task(':checkPython').outcome == TaskOutcome.SUCCESS - result.output.contains('-m pip install virtualenv==20.4.0') + result.output.contains('-m pip install virtualenv==20.24.6') } def "Check install the latest virtualenv case"() { diff --git a/src/test/groovy/ru/vyarus/gradle/plugin/python/VenvFromVenvCreationTest.groovy b/src/test/groovy/ru/vyarus/gradle/plugin/python/VenvFromVenvCreationTest.groovy index 7da631d..3c16817 100644 --- a/src/test/groovy/ru/vyarus/gradle/plugin/python/VenvFromVenvCreationTest.groovy +++ b/src/test/groovy/ru/vyarus/gradle/plugin/python/VenvFromVenvCreationTest.groovy @@ -22,7 +22,7 @@ class VenvFromVenvCreationTest extends AbstractTest { Virtualenv env2 = new Virtualenv(gradleEnv(project), env.pythonPath, null, "second") env2.python.extraArgs('-v') // enable logs Pip pip = new Pip(gradleEnv(project), env.pythonPath, null).userScope(false) - pip.install(env2.name + "==20.4.0") + pip.install(env2.name + "==20.24.6") env2.createPythonOnly() when: "validating pip in second environment"