From b1950dd488527f54a6bdc43d68f98c4dbda52ae4 Mon Sep 17 00:00:00 2001 From: Tomasz Prus Date: Sat, 23 Oct 2021 02:32:44 +0200 Subject: [PATCH] [Python] Remove virtualenv deprecated option from test scripts. (#10666) * [Python] Remove virtualenv deprecated option from test scripts. * [Python/asyncio] create venv with Python 3.x --- samples/client/petstore/python-asyncio/test_python3.sh | 2 +- samples/client/petstore/python-legacy/test_python2.sh | 2 +- samples/client/petstore/python-legacy/test_python2_and_3.sh | 2 +- samples/client/petstore/python-tornado/test_python2_and_3.sh | 2 +- samples/client/petstore/python/test_python.sh | 2 +- .../test_python.sh | 2 +- samples/openapi3/client/petstore/python-legacy/test_python2.sh | 2 +- .../client/petstore/python-legacy/test_python2_and_3.sh | 2 +- samples/openapi3/client/petstore/python/test_python.sh | 2 +- .../server/petstore/python-aiohttp-srclayout/test_python3.sh | 2 +- samples/server/petstore/python-aiohttp/test_python3.sh | 2 +- samples/server/petstore/python-flask/test_python3.sh | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/samples/client/petstore/python-asyncio/test_python3.sh b/samples/client/petstore/python-asyncio/test_python3.sh index 580b2182b51..fc91ee7a670 100755 --- a/samples/client/petstore/python-asyncio/test_python3.sh +++ b/samples/client/petstore/python-asyncio/test_python3.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy --python python3.6 + virtualenv $VENV --always-copy --python python3 source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/client/petstore/python-legacy/test_python2.sh b/samples/client/petstore/python-legacy/test_python2.sh index c751423528d..a4faa81ca71 100755 --- a/samples/client/petstore/python-legacy/test_python2.sh +++ b/samples/client/petstore/python-legacy/test_python2.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy --python python + virtualenv $VENV --always-copy --python python source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/client/petstore/python-legacy/test_python2_and_3.sh b/samples/client/petstore/python-legacy/test_python2_and_3.sh index ab02e6e4080..ef758bd4450 100755 --- a/samples/client/petstore/python-legacy/test_python2_and_3.sh +++ b/samples/client/petstore/python-legacy/test_python2_and_3.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy + virtualenv $VENV --always-copy source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/client/petstore/python-tornado/test_python2_and_3.sh b/samples/client/petstore/python-tornado/test_python2_and_3.sh index ab02e6e4080..ef758bd4450 100755 --- a/samples/client/petstore/python-tornado/test_python2_and_3.sh +++ b/samples/client/petstore/python-tornado/test_python2_and_3.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy + virtualenv $VENV --always-copy source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/client/petstore/python/test_python.sh b/samples/client/petstore/python/test_python.sh index 6f5e2c41d3a..f617f3adfa6 100644 --- a/samples/client/petstore/python/test_python.sh +++ b/samples/client/petstore/python/test_python.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy + virtualenv $VENV --always-copy source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/test_python.sh b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/test_python.sh index 6f5e2c41d3a..f617f3adfa6 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/test_python.sh +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/test_python.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy + virtualenv $VENV --always-copy source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/openapi3/client/petstore/python-legacy/test_python2.sh b/samples/openapi3/client/petstore/python-legacy/test_python2.sh index c0e21a11605..dbf254b0961 100755 --- a/samples/openapi3/client/petstore/python-legacy/test_python2.sh +++ b/samples/openapi3/client/petstore/python-legacy/test_python2.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy + virtualenv $VENV --always-copy source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/openapi3/client/petstore/python-legacy/test_python2_and_3.sh b/samples/openapi3/client/petstore/python-legacy/test_python2_and_3.sh index ab02e6e4080..ef758bd4450 100755 --- a/samples/openapi3/client/petstore/python-legacy/test_python2_and_3.sh +++ b/samples/openapi3/client/petstore/python-legacy/test_python2_and_3.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy + virtualenv $VENV --always-copy source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/openapi3/client/petstore/python/test_python.sh b/samples/openapi3/client/petstore/python/test_python.sh index 6f5e2c41d3a..f617f3adfa6 100755 --- a/samples/openapi3/client/petstore/python/test_python.sh +++ b/samples/openapi3/client/petstore/python/test_python.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy + virtualenv $VENV --always-copy source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/server/petstore/python-aiohttp-srclayout/test_python3.sh b/samples/server/petstore/python-aiohttp-srclayout/test_python3.sh index 65d96267d4f..43fab931f00 100755 --- a/samples/server/petstore/python-aiohttp-srclayout/test_python3.sh +++ b/samples/server/petstore/python-aiohttp-srclayout/test_python3.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy --python python3 + virtualenv $VENV --always-copy --python python3 source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/server/petstore/python-aiohttp/test_python3.sh b/samples/server/petstore/python-aiohttp/test_python3.sh index 65d96267d4f..43fab931f00 100755 --- a/samples/server/petstore/python-aiohttp/test_python3.sh +++ b/samples/server/petstore/python-aiohttp/test_python3.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy --python python3 + virtualenv $VENV --always-copy --python python3 source $VENV/bin/activate DEACTIVE=true fi diff --git a/samples/server/petstore/python-flask/test_python3.sh b/samples/server/petstore/python-flask/test_python3.sh index 677bc926e43..add0ff0c4f2 100755 --- a/samples/server/petstore/python-flask/test_python3.sh +++ b/samples/server/petstore/python-flask/test_python3.sh @@ -11,7 +11,7 @@ export LANG=en_US.UTF-8 ### set virtualenv if [ -z "$VIRTUAL_ENV" ]; then - virtualenv $VENV --no-site-packages --always-copy --python python3 + virtualenv $VENV --always-copy --python python3 source $VENV/bin/activate DEACTIVE=true fi