Skip to content

Commit 9cc9870

Browse files
authored
Add support for Python 3.12 (#644)
1 parent 8740cbf commit 9cc9870

8 files changed

Lines changed: 108 additions & 149 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
- name: ⤵️ Check out code from GitHub
1515
uses: actions/checkout@v4
1616

17-
- name: 🏗 Set up Python 3.9
17+
- name: 🏗 Set up Python 3.12
1818
id: python
1919
uses: actions/setup-python@v4
2020
with:
21-
python-version: 3.9
21+
python-version: "3.12"
2222

2323
- name: 🚀 Publish to PyPi
2424
run: |

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
- name: ⤵️ Check out code from GitHub
2323
uses: actions/checkout@v4
2424

25-
- name: 🏗 Set up Python 3.9
25+
- name: 🏗 Set up Python 3.12
2626
id: setup-python
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: 3.9
29+
python-version: "3.12"
3030

3131
- name: ⤵️ Get pip cache directory
3232
id: pip-cache

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
strategy:
2222
matrix:
2323
python-version:
24-
- "3.9"
2524
- "3.10"
2625
- "3.11"
26+
- "3.12"
2727

2828
steps:
2929
- name: ⤵️ Check out code from GitHub
@@ -91,11 +91,11 @@ jobs:
9191
- name: ⬇️ Download coverage data
9292
uses: actions/download-artifact@v3
9393

94-
- name: 🏗 Set up Python 3.9
94+
- name: 🏗 Set up Python 3.12
9595
id: setup-python
9696
uses: actions/setup-python@v4
9797
with:
98-
python-version: 3.9
98+
python-version: "3.12"
9999

100100
- name: ⤵️ Get pip cache directory
101101
id: pip-cache

.rtx.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[tools]
2-
python = { version="3.11", virtualenv=".venv" }
2+
python = { version="3.12", virtualenv=".venv" }

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ pip install simplisafe-python
1010

1111
`simplisafe-python` is currently supported on:
1212

13-
- Python 3.9
1413
- Python 3.10
1514
- Python 3.11
15+
- Python 3.12
1616

1717
## SimpliSafe™ Plans
1818

poetry.lock

Lines changed: 89 additions & 137 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,22 @@ classifiers = [
5555
"License :: OSI Approved :: MIT License",
5656
"Programming Language :: Python",
5757
"Programming Language :: Python :: 3",
58-
"Programming Language :: Python :: 3.9",
5958
"Programming Language :: Python :: 3.10",
6059
"Programming Language :: Python :: 3.11",
60+
"Programming Language :: Python :: 3.12",
6161
"Programming Language :: Python :: Implementation :: CPython",
6262
"Programming Language :: Python :: Implementation :: PyPy",
6363
]
6464

6565
[tool.poetry.dependencies]
66-
aiohttp = ">=3.8.0"
66+
aiohttp = ">=3.9.0b0"
6767
backoff = ">=1.11.1"
6868
beautifulsoup4 = ">=4.11.1"
6969
certifi = ">=2023.07.22"
70-
python = "^3.9.0"
70+
python = ">=3.10,<=3.12"
7171
voluptuous = ">=0.11.7"
7272
websockets = ">=8.1"
73+
yarl = ">=1.9.2"
7374

7475
[tool.poetry.group.dev.dependencies]
7576
GitPython = ">=3.1.35"
@@ -91,10 +92,12 @@ pytest = "^7.2.0"
9192
pytest-aiohttp = "^1.0.0"
9293
pytest-cov = "^4.0.0"
9394
pyupgrade = "^3.1.0"
95+
pyyaml = "^6.0.1"
9496
requests = ">=2.31.0"
9597
ruff = ">=0.0.261,<0.0.293"
9698
safety = "^2.3.1"
9799
sphinx-rtd-theme = "^1.0.0"
100+
typing-extensions = "^4.8.0"
98101
vulture = "^2.6"
99102
yamllint = "^1.28.0"
100103

script/setup

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/sh
22
set -e
33

4+
if command -v "rtx"; then
5+
rtx install
6+
fi
7+
48
# Install all dependencies:
59
pip3 install poetry
610
poetry install

0 commit comments

Comments
 (0)