-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (75 loc) · 2.4 KB
/
pyproject.toml
File metadata and controls
87 lines (75 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[project]
name = "lk-utils"
version = "3.6.0a20"
description = "A set of utility wrappers made for data processing."
readme = "README.md"
authors = [{ name = "Likianta", email = "likianta@foxmail.com" }]
requires-python = ">=3.8"
dynamic = ["dependencies"]
license = "MIT"
[project.urls]
homepage = "https://github.com/likianta/lk-utils"
[project.scripts]
lkrun = "lk_utils.runner:run"
[tool.poetry.dependencies]
python = "^3.8"
argsense = "^1.1.1"
lk-logger = "^6.0.7"
psutil = ">=6.0.0"
pyyaml = "^6.0.0"
rich = "^14.0.0"
typing-extensions = "^4.0.0"
# --- extras
ipython = [
{ version = "^9.12.0", python = "^3.12", optional = true },
{ version = ">=9.11.0,<9.12.0", python = ">=3.11,<3.12", optional = true },
{ version = "<9.0.0", python = ">=3.8,<3.11", optional = true },
]
py7zr = { version = "^1.1.0", python = "^3.10", optional = true }
toml = { version = "^0.10.0", python = "<3.11", optional = true }
xlrd = { version = "1.2.0", optional = true }
xlsxwriter = { version = "^3.2.0", optional = true }
zstandard = { version = "^0.25.0", python = ">=3.9,<3.14", optional = true }
[project.optional-dependencies]
all = [
"ipython>=9.12.0; python_version >= '3.12'",
"py7zr>=1.1.0; python_version >= '3.10'",
"toml; python_version < '3.11'",
"xlrd==1.2.0",
"xlsxwriter",
"zstandard>=0.25.0; python_version < '3.14'",
]
dbg = ["ipython>=9.12.0; python_version >= '3.12'"]
# exl = ["openpyxl", "pyexcel", "pyexcel-xlsx"]
exl = ["xlrd==1.2.0", "xlsxwriter"]
io = ["toml; python_version < '3.11'", "xlrd==1.2.0", "xlsxwriter"]
tml = ["toml"]
zip = [
"py7zr>=1.1.0; python_version >= '3.10'",
"zstandard>=0.25.0; python_version >= '3.9' and python_version < '3.14'"
]
[tool.poetry.group.dev.dependencies]
ipython = { version = "^9.12.0", python = "^3.12" }
# openpyxl = "3.0.10" # <- pyexcel-xlsx
py7zr = { version = "^1.1.0", python = "^3.10" }
# pyexcel = "^0.7.0"
# pyexcel-xlsx = "^0.6.0"
xlrd = "1.2.0"
xlsxwriter = "^3.2.0"
zstandard = { version = "^0.25.0", python = "^3.9" }
[[tool.poetry.source]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
# url = "https://mirrors.aliyun.com/pypi/simple/"
priority = "primary"
[tool.ruff]
line-length = 80
[tool.ruff.format]
quote-style = "single"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.ty.rules]
invalid-type-form = "ignore"
[build-system]
requires = ["poetry"]
build-backend = "poetry.masonry.api"