Skip to content

Commit

Permalink
fix virtualenv version in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Mar 21, 2024
1 parent 4a92ddf commit 34951ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
"""

Expand All @@ -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"
Expand All @@ -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"() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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"() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 34951ec

Please sign in to comment.