-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
95 lines (80 loc) · 2.21 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
[project]
name = "lib-not-dr"
description = "A python lib created from Difficult Rocket development"
readme = "README.md"
authors = [
{name = "shenjackyuanjie", email = "[email protected]"}
]
requires-python = ">=3.8"
classifiers = [
"Intended Audience :: Developers",
# Python 3 支持版本.
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
# Python 实现.
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
# 系统支持.
"Operating System :: OS Independent",
]
license = { text = "MPL-2.0" }
dynamic = ["version"]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
#[tool.setuptools]
#packages = ["lib_not_dr", "lndl_nuitka"]
#[tool.setuptools.packages.find]
#namespaces = false
#include = [
# "lib_not_dr",
# "lndl_nuitka"
#]
#where = ["."]
#[tool.setuptools.package-dir]
#lib_not_dr = "lib_not_dr"
#lndl_nuitka = "lndl_nuitka"
[project.optional-dependencies]
nuitka = [
"tomli >= 2.0.1",
"nuitka", # any version
]
dev = ["twine"]
[tool.pdm.scripts]
pub = { call = "scripts.pub:main" }
pre_build = { call = "scripts.pub:clean_build" }
post_publish = { call = "scripts.pub:upload_gitea" }
[tool.setuptools.dynamic]
version = { attr = "lib_not_dr._version_"}
[project.urls]
Issues = "https://github.com/shenjackyuanjie/lib-not-dr/issues"
Homepage = "https://github.com/shenjackyuanjie/lib-not-dr"
Repository = "https://github.com/shenjackyuanjie/lib-not-dr"
Changelog = "https://github.com/shenjackyuanjie/lib-not-dr/blob/main/docs/change_logs"
[project.scripts]
lndl_nuitka = "lndl_nuitka:main"
[tool.ruff]
target-version = "py38"
line-length = 100
src = [
"src",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"W", # pycodestyle
]
ignore = ["I001"] # do not sort my imports
[tool.ruff.lint.isort]
force-single-line = false
force-wrap-aliases = false
combine-as-imports = false
[tool.lndl.nuitka.cli]
main = "test-only.py"
onefile = false
standalone = true