-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (77 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (77 loc) · 2.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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rotel"
dynamic = ["version"]
description = "Lightweight OpenTelemetry collector"
readme = "README.md"
requires-python = ">=3.10"
keywords = []
license = "Apache-2.0"
authors = [
{ name = "Ray Jenkins", email = "ray@streamfold.com" },
{ name = "Mike Heffner", email = "mike@streamfold.com" },
]
classifiers = [
# Python versions
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
# Application status
"Development Status :: 3 - Alpha",
]
dependencies = ["typing-extensions"]
[project.optional-dependencies]
dev = ["pkginfo>=1.12.0", "pytest>=7.0", "twine>=6.1.0"]
[project.urls]
Homepage = "https://github.com/streamfold/pyrotel"
Issues = "https://github.com/streamfold/pyrotel/issues"
Source = "https://github.com/streamfold/pyrotel"
[tool.rotel]
# bump this to upgrade the rotel version
version = "v0.0.1-alpha24"
[tool.hatch.version]
path = "src/rotel/__about__.py"
[tool.hatch.build]
sources = ["src"]
exclude = ["scripts", "tests", "conftest.py"]
[tool.hatch.build.targets.wheel]
artifacts = ["src/rotel/rotel-agent"]
[tool.hatch.envs.default]
installer = "uv"
dependencies = [
"pytest",
"pytest-cov",
"pytest-mock",
"opentelemetry-api",
"opentelemetry-sdk",
"opentelemetry-exporter-otlp-proto-http",
"opentelemetry-exporter-otlp-proto-grpc",
"tomli ; python_version < '3.11'",
]
[tool.hatch.envs.build]
installer = "uv"
[tool.hatch.envs.build.scripts]
all = "python scripts/build_all.py"
me = "_ROTEL_AGENT_PATH=\"{args}\" hatch build -t wheel"
for = "_ROTEL_AGENT_ARCH=\"{args}\" hatch build -t wheel"
[tool.hatch.build.targets.wheel.hooks.custom]
path = "scripts/build_hook.py"
[tool.pytest.ini_options]
pythonpath = ["src"]
[[tool.hatch.envs.test.matrix]]
python = ["310", "311", "312", "313"]
[tool.hatch.envs.lint]
detached = true
dependencies = ["isort", "ruff"]
[tool.hatch.envs.lint.scripts]
check = ["isort --check .", "ruff check ."]
fmt = ["isort .", "ruff check --fix ."]
[tool.isort]
profile = "black"
lines_after_imports = 2
[tool.ruff.lint.extend-per-file-ignores]
"tests/test_*.py" = ["F811"] # ruff does not like pytest fixtures