Skip to content

Commit 020289b

Browse files
committed
Relax Python requirement to >=3.8
Signed-off-by: Cong Wang <cwang@multikernel.io>
1 parent fcf0be7 commit 020289b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protects your working directory automatically.
3434

3535
## Requirements
3636

37-
- **Linux 5.13+** (Landlock ABI v1), **Python 3.10+**
37+
- **Linux 5.13+** (Landlock ABI v1), **Python 3.8+**
3838
- No root, no cgroups, no C compiler (all kernel interfaces via ctypes)
3939

4040
| Feature | Minimum kernel |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "sandlock"
77
version = "0.1.0"
88
description = "Lightweight process sandbox using Landlock, seccomp, and seccomp user notification"
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.8"
1010
dependencies = ["tomli>=1.0; python_version < '3.11'"]
1111
license = {text = "Apache-2.0"}
1212
readme = "README.md"

src/sandlock/_syscall_table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
To regenerate from headers:
99
grep -oP '#define __NR_(\w+)\s+(\d+)' /usr/include/.../unistd_64.h
1010
"""
11+
from __future__ import annotations
1112

1213
# fmt: off
1314

0 commit comments

Comments
 (0)