-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (46 loc) · 1.33 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (46 loc) · 1.33 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
[build-system]
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"
[project]
name = "gitxtend"
version = "0.1.0"
description = "gitoxide-backed git repository tending, exposed to Python via PyO3"
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [{ name = "Shawn Hartsock" }]
requires-python = ">=3.11"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Rust",
"Programming Language :: Python :: 3",
]
[project.urls]
Repository = "https://github.com/hartsock/gitxtend"
[project.optional-dependencies]
dev = [
"pytest>=8,<9",
"pytest-cov>=6,<7",
"pytest-mock>=3,<4",
]
[tool.maturin]
# Compiled module imported as `import gitxtend`. Type stubs in python/gitxtend.
# `extension-module` is a crate feature that layers on `python` (which pulls
# pyo3); see Cargo.toml [features]. A plain `cargo test` enables neither, so the
# pure-Rust core stays interpreter-free.
features = ["extension-module"]
python-source = "python"
module-name = "gitxtend._gitxtend"
[tool.pytest.ini_options]
addopts = [
"--strict-markers",
]
markers = [
"integration: tests that exercise the compiled extension and real git CLI",
]
testpaths = ["python/tests"]
[tool.coverage.run]
branch = true
source = ["gitxtend"]
omit = ["python/tests/*"]
[tool.coverage.report]
fail_under = 80