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.
Files changed (30) hide show
  1. {pywget-2.0.4/pywget.egg-info → pywget-2.0.5}/PKG-INFO +1 -1
  2. {pywget-2.0.4 → pywget-2.0.5}/pyproject.toml +1 -1
  3. {pywget-2.0.4 → pywget-2.0.5/pywget.egg-info}/PKG-INFO +1 -1
  4. {pywget-2.0.4 → pywget-2.0.5}/tests/test_server.py +5 -1
  5. {pywget-2.0.4 → pywget-2.0.5}/LICENSE +0 -0
  6. {pywget-2.0.4 → pywget-2.0.5}/README.md +0 -0
  7. {pywget-2.0.4 → pywget-2.0.5}/pywget/__init__.py +0 -0
  8. {pywget-2.0.4 → pywget-2.0.5}/pywget/__main__.py +0 -0
  9. {pywget-2.0.4 → pywget-2.0.5}/pywget/__version__.py +0 -0
  10. {pywget-2.0.4 → pywget-2.0.5}/pywget/cli.py +0 -0
  11. {pywget-2.0.4 → pywget-2.0.5}/pywget/client.py +0 -0
  12. {pywget-2.0.4 → pywget-2.0.5}/pywget/clipboard.py +0 -0
  13. {pywget-2.0.4 → pywget-2.0.5}/pywget/config.py +0 -0
  14. {pywget-2.0.4 → pywget-2.0.5}/pywget/core.py +0 -0
  15. {pywget-2.0.4 → pywget-2.0.5}/pywget/errors.py +0 -0
  16. {pywget-2.0.4 → pywget-2.0.5}/pywget/jobs.py +0 -0
  17. {pywget-2.0.4 → pywget-2.0.5}/pywget/progress.py +0 -0
  18. {pywget-2.0.4 → pywget-2.0.5}/pywget/py.typed +0 -0
  19. {pywget-2.0.4 → pywget-2.0.5}/pywget/server.py +0 -0
  20. {pywget-2.0.4 → pywget-2.0.5}/pywget/utils.py +0 -0
  21. {pywget-2.0.4 → pywget-2.0.5}/pywget/webui.py +0 -0
  22. {pywget-2.0.4 → pywget-2.0.5}/pywget/wget.py +0 -0
  23. {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/SOURCES.txt +0 -0
  24. {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/dependency_links.txt +0 -0
  25. {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/entry_points.txt +0 -0
  26. {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/requires.txt +0 -0
  27. {pywget-2.0.4 → pywget-2.0.5}/pywget.egg-info/top_level.txt +0 -0
  28. {pywget-2.0.4 → pywget-2.0.5}/setup.cfg +0 -0
  29. {pywget-2.0.4 → pywget-2.0.5}/tests/test_download.py +0 -0
  30. {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.4
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.4"
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.4
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
- time.sleep(1.5)
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