-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (67 loc) · 2.24 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
[tool.poetry]
name = "cssfinder-backend-rust-dev"
version = "0.1.1"
description = "Development environment for Rust based implementation of CSSFinder backend. Use Maturin to build."
authors = ["Krzysztof Wisniewski <[email protected]>"]
repository = "https://github.com/argmaster/cssfinder_backend_rust"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.group.dev.dependencies]
maturin = "^0.14.15"
click = "^8.1.3"
tomlkit = "^0.11.6"
poethepoet = "^0.18.1"
pre-commit = "^3.2.0"
ruff = "^0.0.257"
black = "^23.1.0"
ptpython = "^3.0.23"
mypy = "^1.1.1"
pytest = "^7.2.2"
typing-extensions = "^4.5.0"
ipykernel = "^6.22.0"
pytest-cov = "^4.0.0"
numpy = "^1.23.2"
cssfinder-backend-numpy = "^0.3.0"
[tool.poe.tasks]
release = { script = "scripts.release:main" }
install-hooks = [
{ cmd = "poetry install --sync --no-ansi" },
{ cmd = "poetry run pre-commit install --install-hooks --overwrite" },
]
run-hooks = [
{ cmd = "poetry install --sync --no-ansi" },
{ cmd = "pre-commit run --all-files -v" },
]
build = { cmd = "maturin build --release --out dist" }
version = { script = "scripts.version:main" }
[project]
name = "cssfinder_backend_rust"
version = "0.1.1"
requires-python = ">=3.8"
authors = [
{ name = "Krzysztof Wisniewski", email = "[email protected]" },
]
description = "Implementation of CSSFinder backend using Rust."
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
readme = "README.md"
license = { file = "LICENSE.md" }
[project.urls]
repository = "https://github.com/argmaster/cssfinder_backend_rust"
[build-system]
requires = ["maturin>=0.14,<0.15"]
build-backend = "maturin"
[tool.maturin]
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
features = ["pyo3/extension-module"]
[tool.pytest.ini_options] # ANCHOR: tool.pytest
minversion = "7.2.0"
norecursedirs = ["external", "data", ".venv", ".env", "env", "venv"]
python_files = ["test_*.py", "*_test.py"]
testpaths = ["test"]
addopts = """ -ra --strict-markers --doctest-modules --log-level=DEBUG --cov-report=term-missing:skip-covered"""
filterwarnings = []