Skip to content

Commit f17d7ae

Browse files
authored
upgrade aiohttp to 3.12.14 (#286)
* upgrade aiohttp to 3.12.14 * typing-extensions * remove py3.8 * bump lintlizard * fix lint
1 parent 590c811 commit f17d7ae

File tree

8 files changed

+15
-27
lines changed

8 files changed

+15
-27
lines changed

.circleci/config.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ workflows:
77
- static-code-analysis:
88
context:
99
- docker-hub-creds-ro
10-
- test-3.8:
11-
context:
12-
- docker-hub-creds-ro
1310
- test-3.9:
1411
context:
1512
- docker-hub-creds-ro
@@ -38,7 +35,7 @@ jobs:
3835
static-code-analysis:
3936
<<: *defaults
4037
docker:
41-
- image: cimg/python:3.8
38+
- image: cimg/python:3.12
4239
auth:
4340
username: $DOCKER_USER
4441
password: $DOCKER_PASS
@@ -56,17 +53,6 @@ jobs:
5653
command: |
5754
lintlizard
5855
59-
test-3.8:
60-
<<: *defaults
61-
docker:
62-
- image: cimg/python:3.8
63-
auth:
64-
username: $DOCKER_USER
65-
password: $DOCKER_PASS
66-
- image: redis:3.2.12-alpine
67-
auth:
68-
username: $DOCKER_USER
69-
password: $DOCKER_PASS
7056
test-3.9:
7157
<<: *defaults
7258
docker:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
skip-string-normalization = true
3-
target-version = ['py37']
3+
target-version = ['py310']
44
line-length = 79
55
exclude = '''
66
/(

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
aiohappyeyeballs==2.4.3
2-
aiohttp==3.10.11
1+
aiohappyeyeballs==2.5.0
2+
aiohttp==3.12.14
33
aioredis==1.3.1
4-
aiosignal==1.2.0
4+
aiosignal==1.4.0
55
async-timeout==4.0.2
66
attrs==24.2.0
77
click==8.0.4
@@ -13,4 +13,4 @@ propcache==0.2.0
1313
six==1.17.0
1414
structlog==20.1.0
1515
websockets==12.0
16-
yarl==1.14.0
16+
yarl==1.17.0

requirements_lint.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
lintlizard==0.18.0
1+
lintlizard==0.26.0
22
click<8.1 # 8.1+ breaks black

requirements_tests.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ pluggy==1.5.0
77
pytest==8.0.2
88
pytest-asyncio==0.21.1
99
tomli==2.0.2
10+
typing-extensions~=4.15.0

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@
4040
'Topic :: Software Development :: Libraries :: Python Modules',
4141
'Programming Language :: Python',
4242
'Programming Language :: Python :: 3',
43-
'Programming Language :: Python :: 3.8',
4443
'Programming Language :: Python :: 3.9',
44+
'Programming Language :: Python :: 3.10',
45+
'Programming Language :: Python :: 3.11',
46+
'Programming Language :: Python :: 3.12',
4547
],
4648
packages=[
4749
'socketshark',

socketshark/events.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,9 @@ def __init__(self, session, data):
127127
super().__init__(session, data)
128128
subscription_name = data.get('subscription') or None
129129
self.subscription_name = subscription_name
130-
if subscription_name in self.session.subscriptions:
131-
self.subscription = self.session.subscriptions[subscription_name]
132-
else:
133-
self.subscription = Subscription(self.config, session, data)
130+
self.subscription = self.session.subscriptions.get(
131+
subscription_name, Subscription(self.config, session, data)
132+
)
134133
self.extra_data = self.subscription.extra_data
135134

136135
async def send_error(self, error, data=None):

socketshark/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _scrub_url(url):
6161
# so can't easily use _replace to get rid of password
6262
# and then call urlunsplit to reconstruct url.
6363
_, _, hostinfo = url_parts.netloc.rpartition('@')
64-
scrubbed_netloc = f'*****:*****@{hostinfo}'
64+
scrubbed_netloc = f'*****:*****@{hostinfo}' # noqa: E231
6565
scrubbed_url_parts = url_parts._replace(netloc=scrubbed_netloc)
6666
return urlunsplit(scrubbed_url_parts)
6767

0 commit comments

Comments
 (0)