anydi 0.40.0__tar.gz → 0.41.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {anydi-0.40.0 → anydi-0.41.0}/PKG-INFO +1 -1
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/pytest_plugin.py +6 -2
- {anydi-0.40.0 → anydi-0.41.0}/pyproject.toml +3 -3
- {anydi-0.40.0 → anydi-0.41.0}/uv.lock +6 -5
- {anydi-0.40.0 → anydi-0.41.0}/.editorconfig +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/.github/workflows/ci.yml +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/.gitignore +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/.readthedocs.yaml +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/LICENSE +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/Makefile +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/README.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/_container.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/_context.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/_types.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/_utils.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/_utils.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/_container.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/_settings.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/_utils.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/apps.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/middleware.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/ninja/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/ninja/_operation.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/ninja/_signature.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/fastapi.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/faststream.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/pydantic_settings.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/starlette/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/starlette/middleware.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/anydi/py.typed +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/docs/examples/basic.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/django.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/fastapi.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/faststream.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/pydantic_settings.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/docs/index.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/docs/usage.md +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/mkdocs.yml +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/conftest.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/router.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/test_router.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/urls.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/conftest.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/container.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/scan/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/services.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/settings.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/test_views.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/urls.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/views.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/app.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/conftest.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/test_auto_register.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/test_ext.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/test_routes.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/faststream/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/faststream/test_ext.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/faststream/test_subscribers.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fixtures.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/app.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/conftest.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/test_routes.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/test_pydantic.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/ext/test_pytest_plugin.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/fixtures.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a1/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a1/handlers.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a2/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a2/a21/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a2/a21/handlers.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a3/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a3/handlers.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/b/__init__.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/b/handlers.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/test_container.py +0 -0
- {anydi-0.40.0 → anydi-0.41.0}/tests/test_utils.py +0 -0
|
@@ -6,7 +6,6 @@ from collections.abc import Iterator
|
|
|
6
6
|
from typing import Any, Callable, cast
|
|
7
7
|
|
|
8
8
|
import pytest
|
|
9
|
-
from _pytest.python import async_warn_and_skip
|
|
10
9
|
from anyio.pytest_plugin import extract_backend_and_options, get_runner
|
|
11
10
|
|
|
12
11
|
from anydi import Container
|
|
@@ -117,7 +116,12 @@ def _anydi_ainject(
|
|
|
117
116
|
|
|
118
117
|
# Skip if the anyio backend is not available
|
|
119
118
|
if "anyio_backend" not in request.fixturenames:
|
|
120
|
-
|
|
119
|
+
msg = (
|
|
120
|
+
"To run async test functions with `anyio`, "
|
|
121
|
+
"please configure the `anyio` pytest plugin.\n"
|
|
122
|
+
"See: https://anyio.readthedocs.io/en/stable/testing.html"
|
|
123
|
+
)
|
|
124
|
+
pytest.fail(msg, pytrace=False)
|
|
121
125
|
|
|
122
126
|
async def _awrapper() -> None:
|
|
123
127
|
# Setup the container
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "anydi"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.41.0"
|
|
4
4
|
description = "Dependency Injection library"
|
|
5
5
|
authors = [{ name = "Anton Ruhlov", email = "antonruhlov@gmail.com" }]
|
|
6
6
|
requires-python = "~=3.9"
|
|
@@ -52,7 +52,7 @@ anydi = "anydi.ext.pytest_plugin"
|
|
|
52
52
|
dev = [
|
|
53
53
|
"mypy[faster-cache]>=1.15.0,<2",
|
|
54
54
|
"ruff>=0.11.10,<1.0",
|
|
55
|
-
"pytest>=8.
|
|
55
|
+
"pytest>=8.4.0,<9",
|
|
56
56
|
"pytest-cov>=6.0.0,<7",
|
|
57
57
|
"starlette>=0.37.2",
|
|
58
58
|
"fastapi>=0.100.0",
|
|
@@ -146,7 +146,7 @@ omit = [
|
|
|
146
146
|
]
|
|
147
147
|
|
|
148
148
|
[tool.bumpversion]
|
|
149
|
-
current_version = "0.
|
|
149
|
+
current_version = "0.41.0"
|
|
150
150
|
parse = """(?x)
|
|
151
151
|
(?P<major>0|[1-9]\\d*)\\.
|
|
152
152
|
(?P<minor>0|[1-9]\\d*)\\.
|
|
@@ -13,7 +13,7 @@ wheels = [
|
|
|
13
13
|
|
|
14
14
|
[[package]]
|
|
15
15
|
name = "anydi"
|
|
16
|
-
version = "0.
|
|
16
|
+
version = "0.41.0"
|
|
17
17
|
source = { editable = "." }
|
|
18
18
|
dependencies = [
|
|
19
19
|
{ name = "anyio" },
|
|
@@ -64,7 +64,7 @@ dev = [
|
|
|
64
64
|
{ name = "mypy", extras = ["faster-cache"], specifier = ">=1.15.0,<2" },
|
|
65
65
|
{ name = "pydantic-settings", specifier = ">=2.4.0,<3" },
|
|
66
66
|
{ name = "pyright", specifier = ">=1.1.401" },
|
|
67
|
-
{ name = "pytest", specifier = ">=8.
|
|
67
|
+
{ name = "pytest", specifier = ">=8.4.0,<9" },
|
|
68
68
|
{ name = "pytest-cov", specifier = ">=6.0.0,<7" },
|
|
69
69
|
{ name = "pytest-django", specifier = ">=4.8.0,<5" },
|
|
70
70
|
{ name = "redis", specifier = ">=5.0.4,<6" },
|
|
@@ -1065,7 +1065,7 @@ wheels = [
|
|
|
1065
1065
|
|
|
1066
1066
|
[[package]]
|
|
1067
1067
|
name = "pytest"
|
|
1068
|
-
version = "8.
|
|
1068
|
+
version = "8.4.0"
|
|
1069
1069
|
source = { registry = "https://pypi.org/simple" }
|
|
1070
1070
|
dependencies = [
|
|
1071
1071
|
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
|
@@ -1073,11 +1073,12 @@ dependencies = [
|
|
|
1073
1073
|
{ name = "iniconfig" },
|
|
1074
1074
|
{ name = "packaging" },
|
|
1075
1075
|
{ name = "pluggy" },
|
|
1076
|
+
{ name = "pygments" },
|
|
1076
1077
|
{ name = "tomli", marker = "python_full_version < '3.11'" },
|
|
1077
1078
|
]
|
|
1078
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1079
|
+
sdist = { url = "https://files.pythonhosted.org/packages/fb/aa/405082ce2749be5398045152251ac69c0f3578c7077efc53431303af97ce/pytest-8.4.0.tar.gz", hash = "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6", size = 1515232, upload-time = "2025-06-02T17:36:30.03Z" }
|
|
1079
1080
|
wheels = [
|
|
1080
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1081
|
+
{ url = "https://files.pythonhosted.org/packages/2f/de/afa024cbe022b1b318a3d224125aa24939e99b4ff6f22e0ba639a2eaee47/pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e", size = 363797, upload-time = "2025-06-02T17:36:27.859Z" },
|
|
1081
1082
|
]
|
|
1082
1083
|
|
|
1083
1084
|
[[package]]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|