aiohttp-zip-response 2.0.0__tar.gz → 2.0.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.
- {aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/PKG-INFO +1 -1
- {aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/aiohttp_zip_response/zip_response.py +9 -1
- {aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/pyproject.toml +3 -2
- {aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/LICENSE +0 -0
- {aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/README.md +0 -0
- {aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/aiohttp_zip_response/__init__.py +0 -0
- {aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/aiohttp_zip_response/py.typed +0 -0
{aiohttp_zip_response-2.0.0 → aiohttp_zip_response-2.0.1}/aiohttp_zip_response/zip_response.py
RENAMED
|
@@ -39,8 +39,16 @@ class ZipResponse(web.StreamResponse):
|
|
|
39
39
|
async def yield_member_files(self) -> AsyncGenerator[AsyncMemberFile, None]:
|
|
40
40
|
async for member_path in self.yield_member_paths():
|
|
41
41
|
lstat = member_path.lstat()
|
|
42
|
+
relative_member_path = member_path.relative_to(self._base_path)
|
|
43
|
+
|
|
44
|
+
member_name = (
|
|
45
|
+
f"{relative_member_path}/"
|
|
46
|
+
if member_path.is_dir()
|
|
47
|
+
else str(relative_member_path)
|
|
48
|
+
)
|
|
49
|
+
|
|
42
50
|
yield (
|
|
43
|
-
|
|
51
|
+
member_name,
|
|
44
52
|
datetime.fromtimestamp(lstat.st_mtime),
|
|
45
53
|
lstat.st_mode,
|
|
46
54
|
ZIP_32,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "aiohttp-zip-response"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.1"
|
|
4
4
|
description = "A AIOHTTP response class streaming a directory as ZIP archive"
|
|
5
5
|
authors = ["Jonathan Ehwald <github@ehwald.info>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -34,7 +34,8 @@ pytest = "^8.2.2"
|
|
|
34
34
|
pytest-cov = "^5.0.0"
|
|
35
35
|
pytest-asyncio = "^0.23.7"
|
|
36
36
|
pytest-aiohttp = "^1.0.5"
|
|
37
|
-
|
|
37
|
+
pytest-randomly = "^3.15.0"
|
|
38
|
+
ruff = "^0.5.1"
|
|
38
39
|
mypy = "^1.10.1"
|
|
39
40
|
|
|
40
41
|
[tool.ruff.lint]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|