Skip to content

Commit f69ca30

Browse files
authored
Drop support for python 3.7. Add support for 3.11 (#539)
1 parent 301bb20 commit f69ca30

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ jobs:
1414
# Some CI issues regarding ubuntu-latest
1515
# runs-on: ubuntu-latest
1616
env:
17-
PY_VER_MYPY: 3.8.13
18-
PY_VER_UNIT_TESTS_3: 3.8.13
17+
PY_VER_MYPY: 3.8.17
18+
PY_VER_UNIT_TESTS_3: 3.8.17
1919
strategy:
2020
matrix:
2121
# Running mypy-protobuf itself
22-
py-ver-mypy-protobuf: [
23-
3.7.13,
24-
3.8.13,
25-
3.9.13,
26-
3.10.6,
27-
]
22+
py-ver-mypy-protobuf: [3.8.17, 3.9.17, 3.10.12, 3.11.4]
2823
steps:
2924
- uses: actions/checkout@v3
3025
- name: Read version numbers
@@ -36,8 +31,8 @@ jobs:
3631
uses: actions/cache@v3
3732
with:
3833
path: |
39-
~/.pyenv
40-
!~/.pyenv/versions
34+
~/.pyenv
35+
!~/.pyenv/versions
4136
key: pyenv-installation-2
4237
- name: Cache pyenv mypy-protobuf ver
4338
uses: actions/cache@v3

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Add gRPC aio stub and servicer generation (#489)
44
- Bump tested dependencies to pyright==1.1.319, mypy==1.4.1, protobuf==4.23.4, grpcio-tools==1.56.2
5+
- Drop support for py 3.7. Add support for py 3.11.
56

67
## 3.4.0
78

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Earlier releases might work, but aren't tested
1717

1818
- [protoc >= 23.4](https://github.com/protocolbuffers/protobuf/releases)
1919
- [python-protobuf >= 4.23.4](https://pypi.org/project/protobuf/) - matching protoc release
20-
- [python >= 3.7](https://www.python.org/downloads/source/) - for running mypy-protobuf plugin.
20+
- [python >= 3.8](https://www.python.org/downloads/source/) - for running mypy-protobuf plugin.
2121

2222
## Requirements to run typecheckers on stubs generated by mypy-protobuf
2323

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ show_error_codes = true
2121

2222
[tool.pyright]
2323
venvPath = "."
24-
venv = "venv_3.8.13"
24+
venv = "venv_3.8.17"
2525
# verboseOutput = true
2626
extraPaths = ["test/generated"]
2727
include = [

run_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
RED="\033[0;31m"
44
NC='\033[0m'
55

6-
PY_VER_MYPY_PROTOBUF=${PY_VER_MYPY_PROTOBUF:=3.10.6}
6+
PY_VER_MYPY_PROTOBUF=${PY_VER_MYPY_PROTOBUF:=3.11.4}
77
PY_VER_MYPY_PROTOBUF_SHORT=$(echo "$PY_VER_MYPY_PROTOBUF" | cut -d. -f1-2)
8-
PY_VER_MYPY=${PY_VER_MYPY:=3.8.13}
9-
PY_VER_UNIT_TESTS="${PY_VER_UNIT_TESTS:=3.8.13}"
8+
PY_VER_MYPY=${PY_VER_MYPY:=3.8.17}
9+
PY_VER_UNIT_TESTS="${PY_VER_UNIT_TESTS:=3.8.17}"
1010

1111
if [ -e "$CUSTOM_TYPESHED_DIR" ]; then
1212
export MYPYPATH=$CUSTOM_TYPESHED_DIR/stubs/protobuf

0 commit comments

Comments
 (0)