-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (56 loc) · 1.71 KB
/
pyproject.toml
File metadata and controls
68 lines (56 loc) · 1.71 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
#
# References:
# * https://github.com/tueda/test-poetry-scikit-build
# * https://setuptools.pypa.io/en/latest/userguide/quickstart.html
#
[project]
name = "opentrep"
version = "0.7.18"
description = "Simple Python wrapper for OpenTREP"
readme = "README.md"
requires-python = ">=3.11,<3.14"
authors = [
{name = "Denis Arnaud", email = "denis.arnaud_pypi@m4x.org"},
]
license = "MIT"
urls = {repository = "https://github.com/trep/opentrep"}
dynamic = ["dependencies"]
[build-system]
requires = ["poetry-core", "setuptools", "wheel", "scikit-build", "cmake", "ninja", "protobuf"]
build-backend = "setuptools.build_meta"
#build-backend = "poetry.core.masonry.api"
[project.scripts]
trep = "pyopentrep:main"
[tool.setuptools.packages]
find = {}
[tool.skbuild.setup]
cmake_args = ["-DINSTALL_DOC:BOOL=OFF", "-DRUN_GCOV:BOOL=OFF", "-DLIB_SUFFIX="]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.poetry]
include = [
# Source files for C extensions must be included in the source distribution.
{ path = "CMakeLists.txt", format = "sdist" },
{ path = "opentrep/**/*.cpp", format = "sdist" },
# C extensions must be included in the wheel distribution.
{ path = "opentrep/**/*.pyd", format = "wheel" },
{ path = "opentrep/**/*.so", format = "wheel" },
]
exclude = ["opentrep/**/*.cpp", "opentrep/**/*.pyd", "opentrep/**/*.so"]
[tool.mypy]
pretty = true
show_error_codes = true
strict = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = [
"--cov-report=html",
"--cov-report=term",
"--cov=opentrep",
"--doctest-modules",
"--ignore=_skbuild",
"--ignore=build.py",
]
[tool.taskipy.tasks]
build_ext.cmd = "python build.py"
build_ext.help = "builds C extensions"