-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
150 lines (128 loc) · 3.85 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# This file is part of "austin-python" which is released under GPL.
#
# See file LICENCE or go to http://www.gnu.org/licenses/ for full license
# details.
#
# austin-python is a Python wrapper around Austin, the CPython frame stack
# sampler.
#
# Copyright (c) 2018-2020 Gabriele N. Tornetta <[email protected]>.
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[project]
name = "austin-python"
description = "Python wrapper for Austin, the CPython frame stack sampler."
authors = [
{name = "Gabriele N. Tornetta", email="[email protected]"},
]
license = "GPL-3.0-or-later"
readme = "README.md"
keywords = ["performance", "profiling", "testing", "development"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"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",
]
requires-python = ">=3.8"
dependencies = [
"protobuf~=3.12",
"psutil>=5.7.0",
"toml~=0.10",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/P403n1x87/austin-python"
documentation = "https://austin-python.readthedocs.io"
repository = "https://github.com/P403n1x87/austin-python"
issues = "https://github.com/P403n1x87/austin-python/issues"
[project.scripts]
austin-compress = "austin.format.compress:main"
austin-diff = "austin.tools.diff:main"
austin2pprof = "austin.format.pprof.__main__:main"
austin2speedscope = "austin.format.speedscope:main"
mojo2austin = "austin.format.mojo:main"
austinp-resolve = "austin.tools.resolve:main"
[tool.hatch.envs.tests]
template = "tests"
dependencies = [
"pytest>=5.4.2",
"pytest-asyncio",
"pytest-cov>=2.8.1",
]
[tool.hatch.envs.tests.scripts]
tests = "pytest --cov=austin --cov-report=term-missing --cov-report=xml {args}"
[[tool.hatch.envs.tests.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.checks]
python = "3.10"
template = "checks"
dependencies = [
"mypy~=0.770",
"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 --show-error-codes --install-types --non-interactive {args} austin/ test/"
linting = "flake8 {args} austin/ test/ "
[tool.hatch.envs.coverage]
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 = ["austin"]
[tool.coverage.run]
branch = true
source = ["austin"]
[tool.coverage.report]
show_missing = true
[tool.isort]
force_single_line = true
lines_after_imports = 2
profile = "black"
[tool.mypy]
ignore_missing_imports = true
exclude = [
"austin/tools/diff.py",
]
[[tool.mypy.overrides]]
module = [
"austin.format.pprof.profile_pb2",
"austin.format.pprof",
]
ignore_errors = true
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"