asgi-tools 3.2.0__tar.gz → 3.2.1__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 (44) hide show
  1. {asgi_tools-3.2.0/asgi_tools.egg-info → asgi_tools-3.2.1}/PKG-INFO +1 -1
  2. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/tests.py +2 -3
  3. {asgi_tools-3.2.0 → asgi_tools-3.2.1/asgi_tools.egg-info}/PKG-INFO +1 -1
  4. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/pyproject.toml +2 -2
  5. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_client.py +1 -2
  6. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_compat.py +1 -3
  7. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/LICENSE +0 -0
  8. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/MANIFEST.in +0 -0
  9. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/README.md +0 -0
  10. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/__init__.py +0 -0
  11. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/_compat.py +0 -0
  12. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/app.py +0 -0
  13. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/constants.py +0 -0
  14. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/errors.py +0 -0
  15. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/forms.py +0 -0
  16. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/forms.pyx +0 -0
  17. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/logs.py +0 -0
  18. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/middleware.py +0 -0
  19. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/multipart.pxd +0 -0
  20. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/multipart.py +0 -0
  21. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/multipart.pyx +0 -0
  22. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/py.typed +0 -0
  23. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/request.py +0 -0
  24. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/response.py +0 -0
  25. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/router.py +0 -0
  26. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/types.py +0 -0
  27. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/utils.py +0 -0
  28. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools/view.py +0 -0
  29. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools.egg-info/SOURCES.txt +0 -0
  30. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools.egg-info/dependency_links.txt +0 -0
  31. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools.egg-info/requires.txt +0 -0
  32. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/asgi_tools.egg-info/top_level.txt +0 -0
  33. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/setup.cfg +0 -0
  34. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/setup.py +0 -0
  35. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_app.py +0 -0
  36. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_benchmarks.py +0 -0
  37. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_compatibility.py +0 -0
  38. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_examples.py +0 -0
  39. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_formdata.py +0 -0
  40. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_middlewares.py +0 -0
  41. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_request.py +0 -0
  42. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_responses.py +0 -0
  43. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_types.py +0 -0
  44. {asgi_tools-3.2.0 → asgi_tools-3.2.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asgi-tools
3
- Version: 3.2.0
3
+ Version: 3.2.1
4
4
  Summary: ASGI Toolkit to build web applications
5
5
  Author-email: Kirill Klenov <horneds@gmail.com>
6
6
  License: MIT License
@@ -4,7 +4,6 @@
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- import asyncio
8
7
  import binascii
9
8
  import io
10
9
  import mimetypes
@@ -395,7 +394,7 @@ async def manage_lifespan(app, timeout: float = 3e-2):
395
394
  async with aio_spawn(safe_spawn) as task:
396
395
  await pipe.send_to_app({"type": "lifespan.startup"})
397
396
 
398
- with suppress(TimeoutError, asyncio.TimeoutError): # python 310
397
+ with suppress(TimeoutError):
399
398
  async with aio_timeout(timeout):
400
399
  msg = await pipe.receive_from_client()
401
400
  if msg["type"] == "lifespan.startup.failed":
@@ -404,6 +403,6 @@ async def manage_lifespan(app, timeout: float = 3e-2):
404
403
  yield
405
404
 
406
405
  await pipe.send_to_app({"type": "lifespan.shutdown"})
407
- with suppress(TimeoutError, asyncio.TimeoutError): # python 310
406
+ with suppress(TimeoutError):
408
407
  async with aio_timeout(timeout):
409
408
  await pipe.receive_from_client()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asgi-tools
3
- Version: 3.2.0
3
+ Version: 3.2.1
4
4
  Summary: ASGI Toolkit to build web applications
5
5
  Author-email: Kirill Klenov <horneds@gmail.com>
6
6
  License: MIT License
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel", "Cython"]
3
3
 
4
4
  [project]
5
5
  name = "asgi-tools"
6
- version = "3.2.0"
6
+ version = "3.2.1"
7
7
  description = "ASGI Toolkit to build web applications"
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.11,<4"
@@ -141,7 +141,7 @@ required-imports = ["from __future__ import annotations"]
141
141
  # min-severity = "warn"
142
142
 
143
143
  [tool.bumpversion]
144
- current_version = "3.2.0"
144
+ current_version = "3.2.1"
145
145
  commit = false
146
146
  tag = false
147
147
  message = "build: Bump version: {current_version} → {new_version}"
@@ -4,7 +4,6 @@
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- import asyncio
8
7
  import io
9
8
  from pathlib import Path
10
9
 
@@ -277,7 +276,7 @@ async def test_timeouts(app, client):
277
276
  assert res.status_code == 200
278
277
  assert await res.text() == "OK"
279
278
 
280
- with pytest.raises((TimeoutError, asyncio.TimeoutError)): # python 310
279
+ with pytest.raises(TimeoutError):
281
280
  await client.get("/sleep/10", timeout=0.1)
282
281
 
283
282
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- import asyncio
6
5
  from multiprocessing import Value
7
6
 
8
7
  import pytest
@@ -27,7 +26,7 @@ async def test_aio_timeout_disabled():
27
26
 
28
27
 
29
28
  async def test_aio_timeout():
30
- with pytest.raises((TimeoutError, asyncio.TimeoutError)): # python 310
29
+ with pytest.raises(TimeoutError):
31
30
  async with aio_timeout(1e-2):
32
31
  await aio_sleep(1)
33
32
 
@@ -50,7 +49,6 @@ async def test_aio_wait_first_completed():
50
49
 
51
50
 
52
51
  def test_compat_json():
53
-
54
52
  data = json_dumps({"test": 42})
55
53
  assert data
56
54
  assert isinstance(data, bytes)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes