-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (112 loc) · 3.04 KB
/
pyproject.toml
File metadata and controls
138 lines (112 loc) · 3.04 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[project]
description = "A Python management solution for C++ dependencies"
name = "cppython"
license = { text = "MIT" }
authors = [{ name = "Synodic Software", email = "contact@synodic.software" }]
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.14"
dependencies = [
"typer>=0.24.0",
"pydantic>=2.12.5",
"packaging>=26.0",
"requests>=2.32.5",
"types-requests>=2.32.4.20260107",
"scikit-build-core>=0.11.6",
"meson-python>=0.19.0",
]
[project.optional-dependencies]
pytest = [
"pytest>=9.0.2",
"pytest-mock>=3.15.1",
]
git = [
"dulwich>=1.1.0",
]
pdm = [
"pdm>=2.26.6",
]
cmake = [
"cmake>=4.2.1",
]
meson = ["meson>=1.10.1"]
conan = [
"conan>=2.25.2",
]
[project.urls]
homepage = "https://github.com/Synodic-Software/CPPython"
repository = "https://github.com/Synodic-Software/CPPython"
[project.entry-points."cppython.scm"]
git = "cppython.plugins.git.plugin:GitSCM"
[project.entry-points."cppython.generator"]
cmake = "cppython.plugins.cmake.plugin:CMakeGenerator"
meson = "cppython.plugins.meson.plugin:MesonGenerator"
[project.entry-points."cppython.provider"]
conan = "cppython.plugins.conan.plugin:ConanProvider"
vcpkg = "cppython.plugins.vcpkg.plugin:VcpkgProvider"
[project.entry-points.pdm]
cppython = "cppython.plugins.pdm.plugin:CPPythonPlugin"
[project.entry-points.pytest11]
cppython = "cppython.test.pytest.fixtures"
[dependency-groups]
lint = [
"ruff>=0.15.1",
"pyrefly>=0.53.0",
]
test = [
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"nanobind>=2.11.0",
]
docs = [
"zensical>=0.0.23",
]
[project.scripts]
cppython = "cppython.console.entry:app"
[tool.pytest.ini_options]
addopts = ["--color=yes"]
log_cli = true
testpaths = ["tests"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
ignore = ["D206", "D300", "D415", "E111", "E114", "E117"]
select = [
"D", # pydocstyle
"F", # Pyflakes
"I", # isort
"PL", # pylint
"UP", # pyupgrade
"E", # pycodestyle
"B", # flake8-bugbear
"SIM", # flake8-simplify
"PT", # flake8-pytest-style
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"cppython/console/entry.py" = ["PT"] # CLI commands, not pytest tests
[tool.ruff.format]
docstring-code-format = true
indent-style = "space"
quote-style = "single"
[tool.coverage.report]
skip_empty = true
[tool.pyrefly]
project-excludes = ["examples"]
[tool.pdm]
plugins = ["-e file:///${PROJECT_ROOT}"]
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
analyze = { shell = "ruff check cppython tests" }
format = { shell = "ruff format" }
lint = { composite = ["analyze", "format", "type-check"] }
test = { shell = "pytest --cov=cppython --verbose tests" }
type-check = { shell = "pyrefly check" }
generate = { shell = "zensical build --clean" }
dev = { shell = "zensical serve" }
[build-system]
build-backend = "pdm.backend"
requires = ["pdm.backend"]