Skip to content

Commit

Permalink
Drop support for python 3.7. Add support for 3.11 (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunn1313 authored Jul 28, 2023
1 parent 301bb20 commit f69ca30
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
6 changes: 3 additions & 3 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f69ca30

Please sign in to comment.