Python: Force dependency versions

This commit is contained in:
Fuma Nama
2025-08-30 10:36:25 +08:00
parent 82296316a0
commit 6554c33d34
3 changed files with 15 additions and 4 deletions
@@ -1,7 +1,13 @@
import typing as t
from pathlib import Path, PosixPath, WindowsPath
import griffe
from _griffe.encoders import _json_encoder_map
_json_encoder_map: dict[type, t.Callable[[t.Any], t.Any]] = {
Path: str,
PosixPath: str,
WindowsPath: str,
set: sorted,
}
class CustomEncoder(griffe.JSONEncoder):
+2 -2
View File
@@ -9,8 +9,8 @@ authors = [
]
requires-python = ">=3.10"
dependencies = [
"griffe",
"griffe_typingdoc"
"griffe (>=1.13.0, <2.0.0)",
"griffe_typingdoc (>=0.2.8, <1.0.0)"
]
[project.scripts]