Skip to content

Commit 83b530c

Browse files
committed
Fix for python3.11
1 parent d711d69 commit 83b530c

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
persist-credentials: false
2525
- uses: actions/setup-python@v2
2626
with:
27-
python-version: '3.10'
27+
python-version: '3.11'
2828
- run: pip install tox
2929
- run: tox -e flake8
3030
filename-matching:
@@ -35,7 +35,7 @@ jobs:
3535
persist-credentials: false
3636
- uses: actions/setup-python@v2
3737
with:
38-
python-version: '3.10'
38+
python-version: '3.11'
3939
- run: pip install tox
4040
- run: tox -e filename_matching
4141
mypy:
@@ -46,7 +46,7 @@ jobs:
4646
persist-credentials: false
4747
- uses: actions/setup-python@v2
4848
with:
49-
python-version: '3.10'
49+
python-version: '3.11'
5050
- run: pip install tox
5151
- run: tox -e mypy
5252
individual-coverage:
@@ -67,11 +67,11 @@ jobs:
6767
matrix:
6868
include:
6969
- os: ubuntu-latest
70-
py: "3.10"
70+
py: "3.11"
7171
- os: windows-latest
72-
py: "3.10"
72+
py: "3.11"
7373
- os: macos-latest
74-
py: "3.10"
74+
py: "3.11"
7575
- os: ubuntu-latest
7676
py: 3.9
7777
runs-on: ${{ matrix.os }}
@@ -90,9 +90,9 @@ jobs:
9090
- name: Run tox -e py (without internet)
9191
run: |
9292
# install dependencies (requires internet connectivity)
93-
tox -e py --notest
93+
tox -e py --notest
9494
# run tests with loopback only. We need to sudo for unshare, which means we need an absolute path for tox.
95-
sudo unshare --net -- sh -c "ip link set lo up; $(which tox) -e py"
95+
sudo unshare --net -- sh -c "ip link set lo up; $(which tox) -e py"
9696
if: matrix.os == 'ubuntu-latest'
9797
- uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27
9898
# mirrored below and at https://github.com/mitmproxy/mitmproxy/settings/actions
@@ -124,7 +124,7 @@ jobs:
124124
fetch-depth: 0
125125
- uses: actions/setup-python@v2
126126
with:
127-
python-version: '3.10'
127+
python-version: '3.11'
128128
- if: matrix.platform == 'windows'
129129
uses: actions/cache@v2
130130
with:
@@ -175,7 +175,7 @@ jobs:
175175
persist-credentials: false
176176
- uses: actions/setup-python@v2
177177
with:
178-
python-version: '3.10'
178+
python-version: '3.11'
179179
- run: |
180180
wget -q https://github.com/gohugoio/hugo/releases/download/v0.92.1/hugo_extended_0.92.1_Linux-64bit.deb
181181
echo "a9440adfd3ecce40089def287dee4e42ffae252ba08c77d1ac575b880a079ce6 hugo_extended_0.92.1_Linux-64bit.deb" | sha256sum -c
@@ -211,7 +211,7 @@ jobs:
211211
persist-credentials: false
212212
- uses: actions/setup-python@v2
213213
with:
214-
python-version: '3.10'
214+
python-version: '3.11'
215215
- uses: actions/download-artifact@v2
216216
with:
217217
name: binaries.linux
@@ -245,7 +245,7 @@ jobs:
245245
persist-credentials: false
246246
- uses: actions/setup-python@v2
247247
with:
248-
python-version: '3.10'
248+
python-version: '3.11'
249249
- run: sudo apt-get update
250250
- run: sudo apt-get install -y twine awscli
251251
- uses: actions/download-artifact@v2

mitmproxy/contentviews/grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ def format_grpc(
951951

952952
@dataclass
953953
class ViewConfig:
954-
parser_options: ProtoParser.ParserOptions = ProtoParser.ParserOptions()
954+
parser_options: ProtoParser.ParserOptions = field(default_factory=ProtoParser.ParserOptions)
955955
parser_rules: list[ProtoParser.ParserRule] = field(default_factory=list)
956956

957957

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"hypothesis>=5.8,<7",
107107
"parver>=0.1,<2.0",
108108
"pdoc>=4.0.0",
109-
"pyinstaller==5.1",
109+
"pyinstaller>=5.1",
110110
"pytest-asyncio>=0.17.0,<0.19",
111111
"pytest-cov>=2.7.1,<3.1",
112112
"pytest-timeout>=1.3.3,<2.2",

0 commit comments

Comments
 (0)