diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 81caa73..e8b1346 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,17 +14,12 @@ jobs: # Some CI issues regarding ubuntu-latest # runs-on: ubuntu-latest env: - PY_VER_MYPY: 3.8.13 - PY_VER_UNIT_TESTS_3: 3.8.13 + PY_VER_MYPY: 3.8.17 + PY_VER_UNIT_TESTS_3: 3.8.17 strategy: matrix: # Running mypy-protobuf itself - py-ver-mypy-protobuf: [ - 3.7.13, - 3.8.13, - 3.9.13, - 3.10.6, - ] + py-ver-mypy-protobuf: [3.8.17, 3.9.17, 3.10.12, 3.11.4] steps: - uses: actions/checkout@v3 - name: Read version numbers @@ -36,8 +31,8 @@ jobs: uses: actions/cache@v3 with: path: | - ~/.pyenv - !~/.pyenv/versions + ~/.pyenv + !~/.pyenv/versions key: pyenv-installation-2 - name: Cache pyenv mypy-protobuf ver uses: actions/cache@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index e0c1f12..5741403 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Add gRPC aio stub and servicer generation (#489) - Bump tested dependencies to pyright==1.1.319, mypy==1.4.1, protobuf==4.23.4, grpcio-tools==1.56.2 +- Drop support for py 3.7. Add support for py 3.11. ## 3.4.0 diff --git a/README.md b/README.md index ea2c4e1..25b11ea 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Earlier releases might work, but aren't tested - [protoc >= 23.4](https://github.com/protocolbuffers/protobuf/releases) - [python-protobuf >= 4.23.4](https://pypi.org/project/protobuf/) - matching protoc release -- [python >= 3.7](https://www.python.org/downloads/source/) - for running mypy-protobuf plugin. +- [python >= 3.8](https://www.python.org/downloads/source/) - for running mypy-protobuf plugin. ## Requirements to run typecheckers on stubs generated by mypy-protobuf diff --git a/pyproject.toml b/pyproject.toml index 2107e48..4259782 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ show_error_codes = true [tool.pyright] venvPath = "." -venv = "venv_3.8.13" +venv = "venv_3.8.17" # verboseOutput = true extraPaths = ["test/generated"] include = [ diff --git a/run_test.sh b/run_test.sh index ba677ba..86be018 100755 --- a/run_test.sh +++ b/run_test.sh @@ -3,10 +3,10 @@ RED="\033[0;31m" NC='\033[0m' -PY_VER_MYPY_PROTOBUF=${PY_VER_MYPY_PROTOBUF:=3.10.6} +PY_VER_MYPY_PROTOBUF=${PY_VER_MYPY_PROTOBUF:=3.11.4} PY_VER_MYPY_PROTOBUF_SHORT=$(echo "$PY_VER_MYPY_PROTOBUF" | cut -d. -f1-2) -PY_VER_MYPY=${PY_VER_MYPY:=3.8.13} -PY_VER_UNIT_TESTS="${PY_VER_UNIT_TESTS:=3.8.13}" +PY_VER_MYPY=${PY_VER_MYPY:=3.8.17} +PY_VER_UNIT_TESTS="${PY_VER_UNIT_TESTS:=3.8.17}" if [ -e "$CUSTOM_TYPESHED_DIR" ]; then export MYPYPATH=$CUSTOM_TYPESHED_DIR/stubs/protobuf