pywget 2.0.4__tar.gz → 2.0.5__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.
- {pywget-2.0.4/pywget.egg-info → pywget-2.0.5}/PKG-INFO +1 -1
- {pywget-2.0.4 → pywget-2.0.5}/pyproject.toml +1 -1
- {pywget-2.0.4 → pywget-2.0.5/pywget.egg-info}/PKG-INFO +1 -1
- {pywget-2.0.4 → pywget-2.0.5}/tests/test_server.py +5 -1
- {pywget-2.0.4 → pywget-2.0.5}/LICENSE +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/README.md +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/__init__.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/__main__.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/__version__.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/cli.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/client.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/clipboard.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/config.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/core.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/errors.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/jobs.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/progress.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/py.typed +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/server.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/utils.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/webui.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget/wget.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/SOURCES.txt +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/dependency_links.txt +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/entry_points.txt +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/requires.txt +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/top_level.txt +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/setup.cfg +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/tests/test_download.py +0 -0
- {pywget-2.0.4 → pywget-2.0.5}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pywget
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.5
|
|
4
4
|
Summary: Robust, resumable, multi-connection wget alternative - CLI and Python library, zero dependencies
|
|
5
5
|
Author-email: Hadi Cahyadi <cumulus13@gmail.com>
|
|
6
6
|
Maintainer-email: cumulus13 <cumulus13@gmail.com>
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "pywget"
|
|
9
|
-
version = "2.0.
|
|
9
|
+
version = "2.0.5"
|
|
10
10
|
description = "Robust, resumable, multi-connection wget alternative - CLI and Python library, zero dependencies"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
requires-python = ">=3.8"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pywget
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.5
|
|
4
4
|
Summary: Robust, resumable, multi-connection wget alternative - CLI and Python library, zero dependencies
|
|
5
5
|
Author-email: Hadi Cahyadi <cumulus13@gmail.com>
|
|
6
6
|
Maintainer-email: cumulus13 <cumulus13@gmail.com>
|
|
@@ -228,8 +228,12 @@ def test_agent_waits_for_offline_upstream(tmp_path, server):
|
|
|
228
228
|
with ServerHandle(agent_cfg) as agent:
|
|
229
229
|
ac = client_for(agent, "a" * 40)
|
|
230
230
|
job = ac.submit({"url": server + "/small.txt"})[0]
|
|
231
|
-
|
|
231
|
+
# Windows needs ~2s per refused connection attempt, so poll instead of a fixed sleep
|
|
232
|
+
deadline = time.time() + 20
|
|
232
233
|
current = ac.get(job["id"])
|
|
234
|
+
while time.time() < deadline and "upstream unavailable" not in (current["error"] or ""):
|
|
235
|
+
time.sleep(0.2)
|
|
236
|
+
current = ac.get(job["id"])
|
|
233
237
|
assert current["status"] == "running" and "upstream unavailable" in (current["error"] or "")
|
|
234
238
|
ac.action(job["id"], "cancel")
|
|
235
239
|
assert wait_for(ac, job["id"], {"cancelled"})["status"] == "cancelled"
|
|
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
|