tomllib (#766)
This commit is contained in:
1 parent
97f4075edb
commit
db88420014
3 files changed
+8
-1
No files matched your search
@@ -36,6 +36,7 @@ dev = [
|
|||||||
"polib>=1.2.0,<2",
|
"polib>=1.2.0,<2",
|
||||||
"pyinstaller>=6.14.1",
|
"pyinstaller>=6.14.1",
|
||||||
"pytest>=8.3.2,<9",
|
"pytest>=8.3.2,<9",
|
||||||
|
"tomli>=1.2.0 ; python_version < '3.11'",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.uv]
|
[tool.uv]
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
import tomllib
|
try:
|
||||||
|
import tomllib # Python 3.11+
|
||||||
|
except ImportError:
|
||||||
|
import tomli as tomllib # Python < 3.11
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from katrain.core.constants import VERSION
|
from katrain.core.constants import VERSION
|
||||||
|
|||||||
@@ -281,6 +281,7 @@ dev = [
|
|||||||
{ name = "polib" },
|
{ name = "polib" },
|
||||||
{ name = "pyinstaller" },
|
{ name = "pyinstaller" },
|
||||||
{ name = "pytest" },
|
{ name = "pytest" },
|
||||||
|
{ name = "tomli", marker = "python_full_version < '3.11'" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.metadata]
|
[package.metadata]
|
||||||
@@ -301,6 +302,7 @@ dev = [
|
|||||||
{ name = "polib", specifier = ">=1.2.0,<2" },
|
{ name = "polib", specifier = ">=1.2.0,<2" },
|
||||||
{ name = "pyinstaller", specifier = ">=6.14.1" },
|
{ name = "pyinstaller", specifier = ">=6.14.1" },
|
||||||
{ name = "pytest", specifier = ">=8.3.2,<9" },
|
{ name = "pytest", specifier = ">=8.3.2,<9" },
|
||||||
|
{ name = "tomli", marker = "python_full_version < '3.11'", specifier = ">=1.2.0" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
Reference in new issue
Block a user