Open benoit74 opened 4 months ago
I tried to work on this feature by first adding support for Python 3.12 but I fail to get the tests running with it.
First problem is in test_capture_http_proxy.py
:
werkzeug
dependency must be pinned to 2.0.3
for working with httpbin==0.5.0
setup(cls)
should be replaced by setup_class(cls)
requests
complains that proxies set are not a valid URL (we should probably add the "http://" prefix manually)httpbin
/ werkzeug
version does not helpI don't know how to fix this situation
Tessa @tw4l is working on getting rid of the httpbin version dependency in PR 153 https://github.com/webrecorder/warcio/pull/153 -- and she's setting up Github Actions so we'll have CI again. Once that's done you'll easily be able to finish this one.
Oh great, thank you! I'm glad I stopped before investing too much time in this ^^
I'm struggling with the same HTTPS proxy issue as you document above, but hopefully will work it out soon!
Good luck! (I have my own share of struggling, I know what this is ^^)
Turns out pinning urllib3 to an older version for now resolves it! PR to switch to GitHub Actions CI is now open :) https://github.com/webrecorder/warcio/pull/164
Since Python 3.12, we have the following DeprecationWarning:
Pretty easy to fix in 3.12, but maybe not that easy in reality since you probably wanna maintain 2.7+ and 3.4+ support. I suggest to not use what the DeprecationWarning suggests but
datetime.datetime.now(tzinfo = datetime.tzinfo.UTC)
which should be OK (to be checked).