Skip to content

Commit c71f29f

Browse files
chore(opentelemetry): unpin opentelemetry-sdk from project's dev dependencies
1 parent a428114 commit c71f29f

File tree

2 files changed

+35
-28
lines changed

2 files changed

+35
-28
lines changed

pyproject.toml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[project]
2-
authors = [
3-
{ name = "The Litestar Project", email = "hello@litestar.dev" },
4-
]
2+
authors = [{ name = "The Litestar Project", email = "hello@litestar.dev" }]
53
description = "Litestar - A production-ready, highly performant, extensible ASGI API Framework"
64
keywords = ["api", "rest", "asgi", "litestar", "starlite"]
75
license = { text = "MIT" }
@@ -52,13 +50,10 @@ dependencies = [
5250
annotated-types = ["annotated-types"]
5351
attrs = ["attrs"]
5452
brotli = ["brotli"]
55-
zstd = [
56-
"zstandard>=0.24.0",
57-
]
53+
zstd = ["zstandard>=0.24.0"]
5854
cli = ["jsbeautifier", "uvicorn[standard]"]
5955
cryptography = ["cryptography"]
60-
full = [
61-
"""litestar[annotated-types, \
56+
full = ["""litestar[annotated-types, \
6257
attrs, \
6358
brotli, \
6459
cli, \
@@ -78,8 +73,7 @@ full = [
7873
valkey, \
7974
htmx, \
8075
yaml, \
81-
zstd]""",
82-
]
76+
zstd]"""]
8377
htmx = ["litestar-htmx>=0.4.0"]
8478
jinja = ["jinja2>=3.1.2"]
8579
jwt = ["cryptography", "pyjwt>=2.9.0"]
@@ -90,13 +84,11 @@ piccolo = ["piccolo", "litestar-piccolo"]
9084
polyfactory = ["polyfactory>=2.6.3"]
9185
prometheus = ["prometheus-client"]
9286
pydantic = ["pydantic>=2", "email-validator", "pydantic-extra-types"]
93-
redis = ["redis[hiredis]>=4.4.4,<5.3"] # 5.3.0 introduced some issues with the channels plugin; need to investigate
87+
redis = [
88+
"redis[hiredis]>=4.4.4,<5.3",
89+
] # 5.3.0 introduced some issues with the channels plugin; need to investigate
9490
sqlalchemy = ["advanced-alchemy>=1.1.0"]
95-
standard = [
96-
"jinja2",
97-
"jsbeautifier",
98-
"uvicorn[standard]",
99-
]
91+
standard = ["jinja2", "jsbeautifier", "uvicorn[standard]"]
10092
valkey = ["valkey[libvalkey]>=6.0.2"]
10193
yaml = ["pyyaml"]
10294

@@ -141,18 +133,18 @@ dev = [
141133
"aiosqlite",
142134
"asyncpg>=0.29.0",
143135
"psycopg[pool,binary]>=3.1.10,<3.2; python_version < \"3.13\"",
144-
"psycopg[pool]<3.2.4; python_version >= \"3.13\"", # Bug in 3.2.4: https://github.com/psycopg/psycopg/issues/1128
136+
"psycopg[pool]<3.2.4; python_version >= \"3.13\"", # Bug in 3.2.4: https://github.com/psycopg/psycopg/issues/1128
145137
"psycopg2-binary",
146138
"psutil>=5.9.8",
147139
"hypercorn>=0.16.0",
148140
"daphne>=4.0.0",
149-
"opentelemetry-sdk<1.40.0",
141+
"opentelemetry-sdk",
150142
"httpx-sse",
151143
"structlog",
152144
]
153145

154146
docs = [
155-
"sphinx>=7.1.2,<9", # docs need some fixing for 9
147+
"sphinx>=7.1.2,<9", # docs need some fixing for 9
156148
"sphinx-autobuild>=2021.3.14",
157149
"sphinx-copybutton>=0.5.2",
158150
"sphinx-toolbox>=3.5.0",
@@ -165,7 +157,7 @@ docs = [
165157
"litestar-sphinx-theme @ git+https://github.com/litestar-org/litestar-sphinx-theme.git@v3",
166158
"asyncpg",
167159
"psycopg[pool,binary]>=3.1.10,<3.2; python_version < \"3.13\"",
168-
"psycopg[pool]<3.2; python_version >= \"3.13\"", # Bug in 3.2.4: https://github.com/psycopg/psycopg/issues/1128
160+
"psycopg[pool]<3.2; python_version >= \"3.13\"", # Bug in 3.2.4: https://github.com/psycopg/psycopg/issues/1128
169161
]
170162
linting = [
171163
"ruff>=0.11.5",
@@ -200,13 +192,21 @@ requires = ["hatchling"]
200192

201193
[tool.coverage.run]
202194
concurrency = ["multiprocessing", "thread"]
203-
omit = ["*/tests/*", "*/litestar/plugins/sqlalchemy.py", "*/litestar/_kwargs/types.py"]
195+
omit = [
196+
"*/tests/*",
197+
"*/litestar/plugins/sqlalchemy.py",
198+
"*/litestar/_kwargs/types.py",
199+
]
204200
parallel = true
205201
plugins = ["covdefaults"]
206202
source = ["litestar"]
207203

208204
[tool.coverage.report]
209-
exclude_lines = ['except ImportError\b', 'if VERSION.startswith("1"):', 'if pydantic.VERSION.startswith("1"):']
205+
exclude_lines = [
206+
'except ImportError\b',
207+
'if VERSION.startswith("1"):',
208+
'if pydantic.VERSION.startswith("1"):',
209+
]
210210
fail_under = 50
211211

212212
[tool.pytest.ini_options]
@@ -232,7 +232,7 @@ filterwarnings = [
232232
"ignore: datetime.datetime.utcnow:DeprecationWarning:time_machine",
233233
"ignore:Use of deprecated default '__check_model__':DeprecationWarning:polyfactory:",
234234
"ignore:Registering routes.*:litestar.exceptions.base_exceptions.LitestarWarning",
235-
"ignore::pytest.PytestUnraisableExceptionWarning:", # ignore temporarily until the underlying issue can be fixed, which requires the new async-aware test client
235+
"ignore::pytest.PytestUnraisableExceptionWarning:", # ignore temporarily until the underlying issue can be fixed, which requires the new async-aware test client
236236
]
237237
markers = [
238238
"sqlalchemy_integration: SQLAlchemy integration tests",
@@ -294,7 +294,7 @@ module = [
294294
"importlib_resources",
295295
"exceptiongroup",
296296
"zstandard",
297-
"zstandard.*"
297+
"zstandard.*",
298298
]
299299

300300
[[tool.mypy.overrides]]
@@ -313,7 +313,11 @@ warn_unused_ignores = false
313313

314314
[[tool.mypy.overrides]]
315315
disable_error_code = "arg-type"
316-
module = ["litestar.openapi.spec.base", "litestar._asgi.routin_trie.traversal", "litestar.plugins.pydantic.plugins.int"]
316+
module = [
317+
"litestar.openapi.spec.base",
318+
"litestar._asgi.routin_trie.traversal",
319+
"litestar.plugins.pydantic.plugins.int",
320+
]
317321
warn_unused_ignores = false
318322

319323
[tool.pydantic-mypy]
@@ -365,7 +369,10 @@ exclude-classes = """
365369
strict-imports = false
366370

367371
[tool.ruff]
368-
include = ["{litestar,tests,docs,test_apps,tools}/**/*.{py,pyi}", "pyproject.toml"]
372+
include = [
373+
"{litestar,tests,docs,test_apps,tools}/**/*.{py,pyi}",
374+
"pyproject.toml",
375+
]
369376

370377
lint.ignore = [
371378
"A003", # flake8-builtins - class attribute {name} is shadowing a python builtin
@@ -392,7 +399,7 @@ lint.ignore = [
392399
"PLW1641", # Object does not implement `__hash__` method
393400
"SIM103", # 'Return the condition directly': This is a bit overzealous
394401
"UP007", # Use `X | Y` for type annotations
395-
"RET504" # Unnecessary assignment before `return` statement
402+
"RET504", # Unnecessary assignment before `return` statement
396403
]
397404
lint.select = [
398405
"A", # flake8-builtins

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)