-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
103 lines (86 loc) · 2.55 KB
/
pyproject.toml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tool.poetry]
name = "ruyi"
version = "0.24.0-alpha.20241203"
description = "Package manager for RuyiSDK"
keywords = ["ruyi", "ruyisdk"]
# license = { file = "LICENSE-Apache.txt" }
license = "Apache-2.0"
readme = "README.md"
authors = [
# { name = "WANG Xuerui", email = "wangxuerui@iscas.ac.cn" }
"WANG Xuerui <wangxuerui@iscas.ac.cn>",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Embedded Systems",
"Topic :: System :: Software Distribution",
"Typing :: Typed",
]
include = ["ruyi/py.typed"]
[tool.poetry.scripts]
ruyi = "ruyi.__main__:entrypoint"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
files = ["ruyi", "scripts", "tests"]
show_error_codes = true
strict = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
# https://github.com/eyeseast/python-frontmatter/issues/112
# https://github.com/python/mypy/issues/8545
# have to supply the typing info until upstream releases a new version with
# the py.typed marker included
mypy_path = "./stubs"
[tool.pyright]
include = ["ruyi", "scripts", "tests"]
exclude = ["**/__pycache__", "tmp"]
stubPath = "./stubs"
pythonPlatform = "Linux"
[tool.pylic]
safe_licenses = [
"Apache Software License",
"BSD License",
"GPLv2 with linking exception",
"MIT", # pyright spells "MIT License" differently
"MIT License",
"Mozilla Public License 2.0 (MPL 2.0)", # needs mention in license notices
"Python Software Foundation License",
]
[tool.poetry.dependencies]
python = ">=3.10"
arpy = "*"
jinja2 = "^3"
packaging = ">=21"
pygit2 = ">=1.6"
pyyaml = ">=5.4"
requests = "^2"
rich = ">=11.2.0"
semver = ">=2.10"
tomlkit = ">=0.9"
tomli = { version = ">=1.2", python = "<3.11" }
[tool.poetry.group.dev.dependencies]
mypy = "^1.9.0"
pyright = "^1.1.389"
pytest = "^8.2.2"
ruff = "^0.8.1"
typing-extensions = "^4.12.2"
types-cffi = "^1.16.0.20240106"
types-pygit2 = "^1.14.0.20240317"
types-PyYAML = "^6.0.12.20240311"
types-requests = "^2.31.0.20240311"
[tool.poetry.group.dist.dependencies]
certifi = "^2024.2"
nuitka = "^2.0"
[tool.poetry.group.release-worker.dependencies]
[tool.pytest.ini_options]
testpaths = ["tests"]