forked from synodic/cppython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (91 loc) · 2.8 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (91 loc) · 2.8 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
[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.26.8",
"pydantic>=2.13.4",
"packaging>=26.2",
"requests>=2.34.2",
"types-requests>=2.33.0.20260518",
"scikit-build-core>=0.12.2",
"meson-python>=0.20.0",
]
[project.optional-dependencies]
pytest = ["pytest>=9.1.1", "pytest-mock>=3.15.1"]
git = ["dulwich>=1.2.8"]
cmake = ["cmake>=4.3.4"]
meson = ["meson>=1.11.1"]
conan = ["conan>=2.30.0"]
[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.pytest11]
cppython = "cppython.test.pytest.fixtures"
[dependency-groups]
lint = ["ruff>=0.15.20", "pyrefly>=1.1.1"]
test = [
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
"nanobind>=2.13.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.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"]