lang/python port module. I've not yet come up with a port that
would not need this and one can always set MODPY_TESTDEP to "no"
to prevent the module from touching TEST_DEPENDS.
Idea from afresh1 who pointed out the cpan module already does this.
aja "I support this move."
OK sthen@
lang/python/python.port.mk revision 1.102 and 1.103 added
MODPY_TEST_LOCALE and MODPY_PYTEST respectively, nicely wrapping up the
usual pytest dance.
This removes hand-rolled do-tests from all 70 ports by setting
MODPY_PYTEST=Yes and MODPY_TEST_LOCALE as well as HOME=${WRKDIR} to TESTENV
as needed.
From Kurt Mosiejczuk <kurt at cranky dot work>, thanks!
OK sthen
This fixes CVE-2018-18074: "before 2.20.0 sends an HTTP Authorization header to
an http URI upon receiving a same-hostname https-to-http redirect, which makes
it easier for remote attackers to discover credentials by sniffing the
network."
Based on a diff from Edward Lopez-Acosta
It was moved from PYPI to GH when it was updated to 2.10.0 because the PYPI tgz
didn't include the tests (fixed in 2667c77 upstream)
Pointed out by Cyril Roelandt
ok shadchin@ (maintainer)
Requests is an ISC Licensed HTTP library, written in Python, for human
beings.
Requests allow you to send HEAD, GET, POST, PUT, PATCH, and DELETE HTTP
requests. You can add headers, form data, multipart files, and
parameters with simple Python dictionaries, and access the response data
in the same way. It's powered by urllib2, but it does all the hard work
and crazy hacks for you.
fixed regress tests and ok rpointel@