blob: 5e3e84858a3c3251e4d64c017a5f9ffb994e0999 (
plain)
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
150
151
152
153
154
155
156
157
158
159
160
|
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=logfire
pkgname=python-$_name
pkgver=4.25.0
pkgrel=1
arch=('any')
url='https://github.com/pydantic/logfire'
license=('MIT')
depends=('python')
makedepends=('python-hatchling' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-httpx'
'python-aiohttp'
'python-redis'
'python-pymongo'
'python-fastapi'
'python-flask'
'python-django'
'python-dirty-equals'
'python-pytest'
'python-pytest-django'
'python-pydantic'
'python-requests'
'python-sqlalchemy'
'python-pandas'
'python-attrs'
'python-openai'
'python-opentelemetry-instrumentation-aiohttp-client'
'python-opentelemetry-instrumentation-aiohttp-server'
'python-opentelemetry-instrumentation-asgi'
'python-opentelemetry-instrumentation-wsgi'
'python-opentelemetry-instrumentation-fastapi'
'python-opentelemetry-instrumentation-starlette'
'python-opentelemetry-instrumentation-flask'
'python-opentelemetry-instrumentation-django'
'python-opentelemetry-instrumentation-httpx'
'python-opentelemetry-instrumentation-requests'
'python-opentelemetry-instrumentation-sqlalchemy'
'python-opentelemetry-instrumentation-system-metrics'
'python-opentelemetry-instrumentation-asyncpg'
'python-opentelemetry-instrumentation-psycopg'
'python-opentelemetry-instrumentation-psycopg2'
'python-opentelemetry-instrumentation-redis'
'python-opentelemetry-instrumentation-pymongo'
'python-opentelemetry-instrumentation-celery'
'python-opentelemetry-instrumentation-mysql'
'python-opentelemetry-instrumentation-sqlite3'
'python-opentelemetry-instrumentation-aws-lambda'
'python-requests-mock'
'python-inline-snapshot'
'python-structlog'
'python-loguru'
'python-psycopg'
'python-psycopg2'
'python-asyncpg'
'python-pymysql'
'python-cryptography'
'python-cloudpickle'
'python-anthropic'
'python-sqlmodel'
'python-celery'
'python-mysql-connector'
'python-pyarrow'
'python-numpy'
'python-pytest-recording'
'python-vcrpy'
'uvicorn'
'python-setuptools'
'python-aiosqlite'
'python-boto3'
'python-botocore'
'python-greenlet'
'python-pytest-xdist'
'python-openai-agents'
'python-websockets'
'python-pydantic-ai-slim'
# 'python-pydantic-evals'
'python-langchain'
'python-langchain-openai'
'python-langgraph'
'python-opentelemetry-instrumentation-google-genai'
'python-google-genai'
# 'python-openinference-instrumentation-litellm'
'litellm'
# 'python-openinference-instrumentation-dspy'
'python-dspy'
# 'python-surrealdb'
'python-pytest-examples'
'python-pytest-timeout'
'python-pytest-asyncio')
source=("$_name0::git+$url.git#tag=v$pkgver")
sha256sums=('7f209a311c55bfb7d952cf1efb124663870467b734eddb3708886b264735164b')
prepare(){
cd "$srcdir"/$_name0
sed -i "s/'gzip, deflate, zstd',/IsAnyStr(regex='^gzip, deflate(?:, br|, zstd|, br, zstd)?$'),/g" tests/otel_integrations/test_httpx.py
}
build() {
cd "$srcdir"/$_name0
python -m build --wheel --no-isolation $_name1
python -m build --wheel --no-isolation
}
check() {
local pytest_options=(
-vv
--disable-warnings
-p 'no:benchmark'
-n auto
--dist=loadgroup
# Test for Logfire developers
--deselect tests/aaa_query_client/test_query_client.py
# Remove tests that need Docker
--ignore tests/otel_integrations/test_celery.py
--ignore tests/otel_integrations/test_mysql.py
--ignore tests/otel_integrations/test_redis.py
)
cd "$srcdir"/$_name0
python -m venv --system-site-packages test-env
ln -sf /usr/bin/ruff test-env/bin/ruff
test-env/bin/python -m installer $_name1/dist/*.whl
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest "${pytest_options[@]}" tests
}
package() {
pkgdesc='The best Python observability tool!'
depends+=('python-opentelemetry-sdk' 'python-opentelemetry-exporter-otlp-proto-http' 'python-opentelemetry-instrumentation' 'python-rich' 'python-protobuf' 'python-typing_extensions' 'python-executing')
optdepends=('python-opentelemetry-instrumentation-system-metrics: system-metrics'
'python-opentelemetry-instrumentation-asgi: asgi'
'python-opentelemetry-instrumentation-wsgi: wsgi'
'python-opentelemetry-instrumentation-aiohttp-client: aiohttp'
'python-opentelemetry-instrumentation-aiohttp-client: aiohttp-client'
'python-opentelemetry-instrumentation-aiohttp-server: aiohttp-server'
'python-opentelemetry-instrumentation-celery: celery'
'python-opentelemetry-instrumentation-django: django' 'python-opentelemetry-instrumentation-asgi: django'
'python-opentelemetry-instrumentation-fastapi: fastapi'
'python-opentelemetry-instrumentation-flask: flask'
'python-opentelemetry-instrumentation-httpx: httpx'
'python-opentelemetry-instrumentation-starlette: starlette'
'python-opentelemetry-instrumentation-sqlalchemy: sqlalchemy'
'python-opentelemetry-instrumentation-asyncpg: asyncpg'
'python-opentelemetry-instrumentation-psycopg: psycopg'
'python-opentelemetry-instrumentation-psycopg2: psycopg2'
'python-opentelemetry-instrumentation-pymongo: pymongo'
'python-opentelemetry-instrumentation-redis: redis'
'python-opentelemetry-instrumentation-requests: requests'
'python-opentelemetry-instrumentation-mysql: mysql'
'python-opentelemetry-instrumentation-sqlite3: sqlite3'
'python-opentelemetry-instrumentation-aws-lambda: aws-lambda'
'python-opentelemetry-instrumentation-google-genai: google-genai'
'python-openinference-instrumentation-litellm: litellm'
'python-openinference-instrumentation-dspy: dspy'
'python-httpx: datasets' 'python-pydantic: datasets' 'pydantic-evals: datasets'
'python-pydantic: variables')
url='https://github.com/pydantic/logfire'
cd "$srcdir"/$_name0
python -m installer --destdir="$pkgdir" dist/*.whl
}
|