-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
125 lines (102 loc) · 2.67 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
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
124
125
# This file is part of "echion" which is released under MIT.
#
# Copyright (c) 2023 Gabriele N. Tornetta <[email protected]>.
[project]
name = "echion"
description = "In-process CPython frame stack sampler"
authors = [
{name = "Gabriele N. Tornetta", email="[email protected]"},
]
readme = "README.md"
keywords = ["performance", "profiling", "testing", "development"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.8"
dependencies = [
"hypno~=1.0",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/P403n1x87/echion"
repository = "https://github.com/P403n1x87/echion"
issues = "https://github.com/P403n1x87/echion/issues"
[project.scripts]
echion = "echion.__main__:main"
[tool.hatch.envs.tests]
template = "tests"
dependencies = [
"pytest>=5.4.2",
"pytest-cov>=2.8.1",
"austin-python~=1.7",
"bytecode",
]
[tool.hatch.envs.tests.scripts]
tests = "pytest --cov=echion --cov-report=term-missing --cov-report=xml {args}"
[[tool.hatch.envs.tests.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.checks]
detached = true
python = "3.10"
template = "checks"
dependencies = [
"mypy~=1.0",
"flake8~=5.0.4",
"flake8-annotations~=2.9.1",
"flake8-black",
"flake8-bugbear~=22.9.23",
"flake8-docstrings~=1.6.0",
"flake8-import-order~=0.18.1",
"flake8-isort~=5.0.0",
]
[tool.hatch.envs.checks.scripts]
typing = "mypy --install-types --non-interactive --show-error-codes {args} echion/ tests/"
linting = "flake8 {args} echion/ tests/ "
[tool.hatch.envs.coverage]
detached = true
python = "3.10"
template = "coverage"
dependencies = [
"coverage[toml]",
"codecov",
]
[tool.hatch.envs.coverage.scripts]
cov = "coverage xml --fail-under=50"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
]
[tool.hatch.build.targets.wheel]
packages = ["echion"]
[tool.coverage.run]
branch = true
source = ["echion"]
[tool.coverage.report]
show_missing = true
[tool.isort]
force_single_line = true
lines_after_imports = 2
profile = "black"
[tool.black]
line-length = 88
exclude = [
"echion/_version.py",
]
[tool.mypy]
ignore_missing_imports = true
[tool.setuptools_scm]
write_to = "echion/_version.py"
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"