Skip to content

Commit 9c81614

Browse files
Upgrade To 3.10
All dependencies and code are already ready for 3.10, all that's necessary is to update the number. Signed-off-by: Hassan Abouelela <[email protected]>
1 parent cd815d3 commit 9c81614

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

.github/workflows/lint-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1
2020
with:
2121
dev: true
22-
python_version: '3.9'
22+
python_version: '3.10'
2323

2424
# Start the database early to give it a chance to get ready before
2525
# we start running tests.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/chrislovering/python-poetry-base:3.9-slim
1+
FROM ghcr.io/chrislovering/python-poetry-base:3.10-slim
22

33
# Allow service to handle stops gracefully
44
STOPSIGNAL SIGQUIT

pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ You can start several services together: `docker-compose up web snekbox redis`.
507507
##### Setting Up a Development Environment
508508
The bot's code is Python code like any other. To run it locally, you will need the right version of Python with the necessary packages installed:
509509

510-
1. Make sure you have [Python 3.9](https://www.python.org/downloads/) installed. It helps if it is your system's default Python version.
510+
1. Make sure you have [Python 3.10](https://www.python.org/downloads/) installed. It helps if it is your system's default Python version.
511511
2. [Install Poetry](https://github.com/python-poetry/poetry#installation).
512512
3. [Install the dependencies](../installing-project-dependencies).
513513

pydis_site/apps/content/resources/guides/pydis-guides/contributing/site.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You should have already forked the [`site`](https://github.com/python-discord/si
99

1010
### Requirements
1111

12-
- [Python 3.9](https://www.python.org/downloads/)
12+
- [Python 3.10](https://www.python.org/downloads/)
1313
- [Poetry](https://python-poetry.org/docs/#installation)
1414
- `pip install poetry`
1515
- [Git](https://git-scm.com/downloads)

pydis_site/apps/content/resources/guides/pydis-guides/contributing/style-guide.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,3 @@ def foo(input_1: int, input_2: dict[str, int]) -> bool:
202202
This tells us that `foo` accepts an `int` and a `dict`, with `str` keys and `int` values, and returns a `bool`.
203203

204204
In previous examples, we have purposely omitted annotations to keep focus on the specific points they represent.
205-
206-
> **Note:** if the project is running Python 3.8 or below you have to use `typing.Dict` instead of `dict`, but our three main projects are all >=3.9.
207-
> See [PEP 585](https://www.python.org/dev/peps/pep-0585/) for more information.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Python Discord <[email protected]>"]
66
license = "MIT"
77

88
[tool.poetry.dependencies]
9-
python = "3.9.*"
9+
python = "3.10.*"
1010
django = "4.0" # 4.1 blocked by upstream bug, wait for 4.1.1: https://code.djangoproject.com/ticket/33919
1111
django-environ = "0.9.0"
1212
django-filter = "22.1"

0 commit comments

Comments
 (0)