Closed majortom731 closed 4 years ago
Hi! Glad you like it!
Well, insecure is what it is...The idea is taken from the curl commandline tool, where it is called "--insecure". But I can change it to "--skip-verify" if you like that better...
Github's travis CI reports a failed build because the py34 test env uses an incompatible libxml or something. Is that important?
Any idea how to solve (in a separate issue or PR) the problem of the lxml install in tox?
Hmm... I found out here that python 3.4 support was dropped in version 4.4.0 of lxml. So I tried to force tox to use the lxml version before 4.4.0 for the py34 env like this (in tox.ini):
[testenv:py34] deps = lxml<=4.3.5
Seems to work...
If you prefer the name allow_insecure_ssl
I'm not going to block. Go for it.
However, what you need to do is to add a mention of this on the README (in two places!)
Also, in the CHANGES.rst
can you add a new section with the headline called dev
. Then, when I make a release next I'll replace the word dev
with the next number.
dev
-----
* Write your change here...
Had to fiddle around with git a little, but now I think it's ready, all in 1 commit.
The tox.ini change is in #233
You don't need to squash your commits. I'll do that when I merge. But you'll now need to rebase so the tests don't fail.
Sorry, I'm still new to this. :) Now ok?
I'll make a new release for this See https://github.com/peterbe/premailer/pull/234
Added a new option and cmdline switch called 'allow_insecure_ssl' which, when enabled, will cause request.get() to be called with verify=False as additional parameter.