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
123 lines (99 loc) · 2.62 KB
/
pyproject.toml
File metadata and controls
123 lines (99 loc) · 2.62 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
[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.13"
dependencies = [
"typer>=0.16.0",
"pydantic>=2.11.7",
"packaging>=25.0",
"requests>=2.32.4",
"types-requests>=2.32.4.20250611",
]
[project.optional-dependencies]
pytest = [
"pytest>=8.4.1",
"pytest-mock>=3.14.1",
]
git = [
"dulwich>=0.23.2",
]
pdm = [
"pdm>=2.25.4",
]
cmake = [
"cmake>=4.0.3",
]
conan = [
"conan>=2.18.1",
"libcst>=1.8.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"
[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.12.4",
"pyrefly>=0.24.2",
]
test = [
"pytest>=8.4.1",
"pytest-cov>=6.2.1",
"pytest-mock>=3.14.1",
]
[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.format]
docstring-code-format = true
indent-style = "space"
quote-style = "single"
[tool.coverage.report]
skip_empty = true
[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" }
[build-system]
build-backend = "pdm.backend"
requires = ["pdm.backend"]