Skip to content

Commit db0ff48

Browse files
Merge pull request #114 from python-discord/8.0.0-beta
2 parents 20ed26e + fb9b5fa commit db0ff48

File tree

7 files changed

+135
-1104
lines changed

7 files changed

+135
-1104
lines changed

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: HassanAbouelela/actions/setup-python@setup-python_v1.1.0
2626
with:
2727
dev: true
28-
python_version: 3.9
28+
python_version: "3.10"
2929
install_args: "--extras async-rediscache"
3030

3131
# Undeclared dependency for `releases`... whoops
@@ -54,7 +54,7 @@ jobs:
5454
uses: HassanAbouelela/actions/setup-python@setup-python_v1.1.0
5555
with:
5656
dev: true
57-
python_version: 3.9
57+
python_version: "3.10"
5858
install_args: "--extras async-rediscache"
5959

6060
# Undeclared dependency for `releases`... whoops

.github/workflows/lint-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
# Set dev=true to run pre-commit which is a dev dependency
2323
dev: true
24-
python_version: 3.9
24+
python_version: "3.10"
2525
install_args: "--extras async-rediscache"
2626

2727
# We will not run `flake8` here, as we will use a separate flake8

botcore/_bot.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ async def setup_hook(self) -> None:
234234
)
235235
self.http.connector = self._connector
236236

237-
if getattr(self, "redis_session", False) and self.redis_session.closed:
237+
if getattr(self, "redis_session", False) and not self.redis_session.valid:
238238
# If the RedisSession was somehow closed, we try to reconnect it
239239
# here. Normally, this shouldn't happen.
240-
await self.redis_session.connect()
240+
await self.redis_session.connect(ping=True)
241241

242242
# Create dummy stats client first, in case `statsd_url` is unreachable or None
243243
self.stats = AsyncStatsClient(loop, "127.0.0.1")
@@ -284,8 +284,5 @@ async def close(self) -> None:
284284
if getattr(self.stats, "_transport", False):
285285
self.stats._transport.close()
286286

287-
if getattr(self, "redis_session", False):
288-
await self.redis_session.close()
289-
290287
if self._statsd_timerhandle:
291288
self._statsd_timerhandle.cancel()

dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim
1+
FROM python:3.10-slim
22

33
# Set pip to have no saved cache
44
ENV PIP_NO_CACHE_DIR=false \

docs/changelog.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
Changelog
55
=========
66

7-
- :bug:`107` Declare aiodns as a project dependency.
7+
- :release:`8.0.0 <27th July 2022>`
8+
- :breaking:`110` Bump async-rediscache to v1.0.0-rc2
9+
- :support:`108` Bump Python version to 3.10.*
10+
- :bug:`107 major` Declare aiodns as a project dependency.
811
- :support:`107` Add a sample project with boilerplate and documentation explaining how to develop for bot-core.
912

1013

0 commit comments

Comments
 (0)