Skip to content

Commit

Permalink
Add python 3.11 version support (b/324579174)
Browse files Browse the repository at this point in the history
RELNOTES=FEATURE

Change-Id: If2b42c35d2af4e760d07a8b8b7b87da682d963ee
GitOrigin-RevId: 3581623213ab7b499c230f2e559747f47a888c17
  • Loading branch information
molcay authored and ahidalgob committed Mar 28, 2024
1 parent 807db22 commit 1c8fa9d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .kokoro/tests/run_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ set "PYENV_HOME=%USERPROFILE%\.pyenv\pyenv-win\"
set "PATH=%USERPROFILE%\.pyenv\pyenv-win\bin;%USERPROFILE%\.pyenv\pyenv-win\shims;%PATH%"

@echo "Install additional Python versions"
call %USERPROFILE%\.pyenv\pyenv-win\bin\pyenv install --skip-existing --register 3.8.10 3.9.13 3.10.5
call %USERPROFILE%\.pyenv\pyenv-win\bin\pyenv global 3.8.10 3.9.13 3.10.5
call %USERPROFILE%\.pyenv\pyenv-win\bin\pyenv install --skip-existing --register 3.8.10 3.9.13 3.10.5 3.11.5
call %USERPROFILE%\.pyenv\pyenv-win\bin\pyenv global 3.8.10 3.9.13 3.10.5 3.11.5

if defined KOKORO_BUILD_ID ( @rem export vars only for Kokoro job
@rem Setup service account credentials
Expand Down
3 changes: 2 additions & 1 deletion .kokoro/tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ else
pyenv install --skip-existing 3.7.10
pyenv install --skip-existing 3.8.10
pyenv install --skip-existing 3.9.5
pyenv global 3.7.10 3.8.10 3.9.5
pyenv install --skip-existing 3.11.5
pyenv global 3.7.10 3.8.10 3.9.5 3.11.5
fi

# install nox for testing
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Composer.

In order to run the CLI tool, install the following prerequisites:

- Python 3.7-3.10 with `pip`
- Python 3.7-3.11 with `pip`
- [gcloud CLI](https://cloud.google.com/sdk/docs/install)
- Docker

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import nox

DEFAULT_PYTHON_VERSION = "3.9"
TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]

CURRENT_DIRECTORY = Path(__file__).parent.absolute()

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 80
target-version = ['py37', 'py38', 'py39']
target-version = ['py37', 'py38', 'py39', 'py311']
[tool.isort]
profile = "black"
line_length = 80
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Internet",
],
platforms="Posix; MacOS X; Windows",
packages=packages,
python_requires=">=3.7,<3.11",
python_requires=">=3.7,<3.12",
install_requires=dependencies,
extras_require=extras,
package_data={"": ["docker_files/entrypoint.sh"]},
Expand Down

0 comments on commit 1c8fa9d

Please sign in to comment.