Skip to content

Commit 05676fe

Browse files
committed
fix: update SDK security dependencies
Require Python 3.10 so the universal lock uses patched releases for every supported interpreter. Update the setup action to install the patched Hatch and virtualenv toolchain, and document the support boundary. Assisted-by: Codex:GPT-6
1 parent c7bb30c commit 05676fe

4 files changed

Lines changed: 134 additions & 572 deletions

File tree

‎.github/actions/setup-hatch/action.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ runs:
99
- shell: bash
1010
run: |
1111
python -m pip install --upgrade pip
12-
pip install "virtualenv<20.36"
13-
pip install hatchling==1.27.0 hatch==1.14.0
12+
python -m pip install "hatch==1.18.1" "hatchling==1.32.0" "virtualenv==21.7.13"

‎README.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
socketdev
33
#########
44

5+
Supported Python versions
6+
-------------------------
7+
8+
This SDK supports Python 3.10 and newer.
9+
510
Purpose
611
-------
712

‎pyproject.toml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
[build-system]
2-
# 1.27.0 is the newest hatchling that supports Python 3.9, which this
3-
# package's requires-python still includes.
42
requires = ["hatchling==1.32.0"]
53
build-backend = "hatchling.build"
64

75
[project]
86
name = "socketdev"
97
dynamic = ["version"]
10-
requires-python = ">= 3.9"
8+
requires-python = ">= 3.10"
119
dependencies = [
12-
'requests>=2.32.5,<3',
10+
'requests>=2.33.0,<3',
1311
'typing-extensions>=4.12.2,<5'
1412
]
1513
readme = "README.rst"
@@ -42,12 +40,12 @@ packages = ["socketdev"]
4240
[project.optional-dependencies]
4341
dev = [
4442
"ruff>=0.3.0",
45-
"hatch>=1.14.0",
43+
"hatch>=1.18.1",
4644
"hatchling>=1.27.0",
4745
"twine>=4.0.0"
4846
]
4947
test = [
50-
"pytest>=7.0.0",
48+
"pytest>=9.0.3",
5149
"pytest-cov>=4.0.0"
5250
]
5351

0 commit comments

Comments
 (0)