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.
Files changed (87) hide show
  1. {anydi-0.40.0 → anydi-0.41.0}/PKG-INFO +1 -1
  2. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/pytest_plugin.py +6 -2
  3. {anydi-0.40.0 → anydi-0.41.0}/pyproject.toml +3 -3
  4. {anydi-0.40.0 → anydi-0.41.0}/uv.lock +6 -5
  5. {anydi-0.40.0 → anydi-0.41.0}/.editorconfig +0 -0
  6. {anydi-0.40.0 → anydi-0.41.0}/.github/workflows/ci.yml +0 -0
  7. {anydi-0.40.0 → anydi-0.41.0}/.gitignore +0 -0
  8. {anydi-0.40.0 → anydi-0.41.0}/.readthedocs.yaml +0 -0
  9. {anydi-0.40.0 → anydi-0.41.0}/LICENSE +0 -0
  10. {anydi-0.40.0 → anydi-0.41.0}/Makefile +0 -0
  11. {anydi-0.40.0 → anydi-0.41.0}/README.md +0 -0
  12. {anydi-0.40.0 → anydi-0.41.0}/anydi/__init__.py +0 -0
  13. {anydi-0.40.0 → anydi-0.41.0}/anydi/_container.py +0 -0
  14. {anydi-0.40.0 → anydi-0.41.0}/anydi/_context.py +0 -0
  15. {anydi-0.40.0 → anydi-0.41.0}/anydi/_types.py +0 -0
  16. {anydi-0.40.0 → anydi-0.41.0}/anydi/_utils.py +0 -0
  17. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/__init__.py +0 -0
  18. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/_utils.py +0 -0
  19. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/__init__.py +0 -0
  20. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/_container.py +0 -0
  21. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/_settings.py +0 -0
  22. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/_utils.py +0 -0
  23. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/apps.py +0 -0
  24. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/middleware.py +0 -0
  25. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/ninja/__init__.py +0 -0
  26. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/ninja/_operation.py +0 -0
  27. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/django/ninja/_signature.py +0 -0
  28. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/fastapi.py +0 -0
  29. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/faststream.py +0 -0
  30. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/pydantic_settings.py +0 -0
  31. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/starlette/__init__.py +0 -0
  32. {anydi-0.40.0 → anydi-0.41.0}/anydi/ext/starlette/middleware.py +0 -0
  33. {anydi-0.40.0 → anydi-0.41.0}/anydi/py.typed +0 -0
  34. {anydi-0.40.0 → anydi-0.41.0}/docs/examples/basic.md +0 -0
  35. {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/django.md +0 -0
  36. {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/fastapi.md +0 -0
  37. {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/faststream.md +0 -0
  38. {anydi-0.40.0 → anydi-0.41.0}/docs/extensions/pydantic_settings.md +0 -0
  39. {anydi-0.40.0 → anydi-0.41.0}/docs/index.md +0 -0
  40. {anydi-0.40.0 → anydi-0.41.0}/docs/usage.md +0 -0
  41. {anydi-0.40.0 → anydi-0.41.0}/mkdocs.yml +0 -0
  42. {anydi-0.40.0 → anydi-0.41.0}/tests/__init__.py +0 -0
  43. {anydi-0.40.0 → anydi-0.41.0}/tests/conftest.py +0 -0
  44. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/__init__.py +0 -0
  45. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/__init__.py +0 -0
  46. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/__init__.py +0 -0
  47. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/router.py +0 -0
  48. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/test_router.py +0 -0
  49. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/api/urls.py +0 -0
  50. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/conftest.py +0 -0
  51. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/container.py +0 -0
  52. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/scan/__init__.py +0 -0
  53. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/services.py +0 -0
  54. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/settings.py +0 -0
  55. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/test_views.py +0 -0
  56. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/urls.py +0 -0
  57. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/django/views.py +0 -0
  58. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/__init__.py +0 -0
  59. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/app.py +0 -0
  60. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/conftest.py +0 -0
  61. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/test_auto_register.py +0 -0
  62. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/test_ext.py +0 -0
  63. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fastapi/test_routes.py +0 -0
  64. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/faststream/__init__.py +0 -0
  65. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/faststream/test_ext.py +0 -0
  66. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/faststream/test_subscribers.py +0 -0
  67. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/fixtures.py +0 -0
  68. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/__init__.py +0 -0
  69. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/app.py +0 -0
  70. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/conftest.py +0 -0
  71. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/starlette/test_routes.py +0 -0
  72. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/test_pydantic.py +0 -0
  73. {anydi-0.40.0 → anydi-0.41.0}/tests/ext/test_pytest_plugin.py +0 -0
  74. {anydi-0.40.0 → anydi-0.41.0}/tests/fixtures.py +0 -0
  75. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/__init__.py +0 -0
  76. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/__init__.py +0 -0
  77. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a1/__init__.py +0 -0
  78. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a1/handlers.py +0 -0
  79. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a2/__init__.py +0 -0
  80. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a2/a21/__init__.py +0 -0
  81. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a2/a21/handlers.py +0 -0
  82. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a3/__init__.py +0 -0
  83. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/a/a3/handlers.py +0 -0
  84. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/b/__init__.py +0 -0
  85. {anydi-0.40.0 → anydi-0.41.0}/tests/scan_app/b/handlers.py +0 -0
  86. {anydi-0.40.0 → anydi-0.41.0}/tests/test_container.py +0 -0
  87. {anydi-0.40.0 → anydi-0.41.0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: anydi
3
- Version: 0.40.0
3
+ Version: 0.41.0
4
4
  Summary: Dependency Injection library
5
5
  Project-URL: Repository, https://github.com/antonrh/anydi
6
6
  Author-email: Anton Ruhlov <antonruhlov@gmail.com>
@@ -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
- async_warn_and_skip(request.node.nodeid)
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.40.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.3.1,<9",
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.40.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.40.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.3.1,<9" },
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.3.4"
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/05/35/30e0d83068951d90a01852cb1cef56e5d8a09d20c7f511634cc2f7e0372a/pytest-8.3.4.tar.gz", hash = "sha256:965370d062bce11e73868e0335abac31b4d3de0e82f4007408d242b4f8610761", size = 1445919, upload-time = "2024-12-01T12:54:25.98Z" }
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/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl", hash = "sha256:50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6", size = 343083, upload-time = "2024-12-01T12:54:19.735Z" },
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