summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update Contributor Covenant to v2.0add-code-of-conduct-1Andrey Petrov2020-09-221-47/+99
|
* Add Contributor Covenant Code of ConductAndrey Petrov2020-09-221-0/+76
|
* Add Discord shield, reorder shieldsSeth Michael Larson2020-09-221-4/+5
|
* Add Open Collective to GitHub FundingSeth Michael Larson2020-09-211-0/+1
|
* Create v2.0 Roadmap and Open Collective Sponsors SectionSeth Michael Larson2020-09-215-8/+244
|
* Consume connections better in socket-level tests (#1958)hodbn2020-09-182-23/+89
| | | Co-authored-by: Quentin Pradet <quentin.pradet@gmail.com>
* Use LONG_TIMEOUT on test with disabled retriesQuentin Pradet2020-09-181-1/+1
|
* Fix autodoc and intersphinx links in documentation (#1966)Seth Michael Larson2020-09-1811-88/+114
|
* Move nox -s lint to GitHub ActionsQuentin Pradet2020-09-162-2/+15
|
* Use Sphinx 3 and unpin FuroPradyun Gedam2020-09-151-2/+2
|
* Include filepost.pyi and util/url.pyi (#1955)Ezzeri Esa2020-09-154-0/+51
|
* Get SSLTransport tests to 100% coverageJorge2020-09-131-14/+44
|
* Migrate Windows CI to GitHub Actionshodbn2020-09-135-305/+35
|
* Mark master branch as 1.26.0.dev0 for RTDSeth Michael Larson2020-09-111-1/+1
|
* Swallow BrokenPipeError when writing request bodyRober Morales-Chaparro2020-09-114-5/+78
| | | | | | | | | | | | | In the case the server legitimately closes a connection but we are still sending data (e.g. sending a POST request), the old code prevents the response to be retrieved. With this change, we avoid a broken pipe in the request write process to be able to capture the HTTP response. Co-authored-by: Rober Morales-Chaparro <rober.morales@gmail.com> Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com> Co-authored-by: hodbn <hodbn@users.noreply.github.com> Co-authored-by: Quentin Pradet <quentin.pradet@gmail.com>
* Document disabling certificate verification via cert_reqs='CERT_NONE'Heikki Orsila2020-09-111-1/+1
|
* Remove duplicate dict key and except blockhodbn2020-09-092-9/+1
|
* Stricter RTD builds, move Sponsors to docs (#1954)Seth Michael Larson2020-09-096-27/+44
|
* Use LONG_TIMEOUT on another timeout-based testQuentin Pradet2020-09-091-1/+1
| | | | | While we do have a retry here, it's needed to make two queries, and cannot be wasted on a timeout due to continuous integration being slow.
* Use ci/upload_coverage.sh in GitHub ActionsQuentin Pradet2020-09-091-7/+4
|
* Switch to more reliable method to upload coverageQuentin Pradet2020-09-091-3/+16
|
* Rename _travis/ to ci/Quentin Pradet2020-09-099-7/+7
| | | | Before using upload_coverage.sh in GitHub Actions
* Use LONG_TIMEOUT for read with retries=0Quentin Pradet2020-09-081-2/+1
| | | This is done in other tests, and avoids timing out on the initial read
* Overhaul and re-theme documentationSeth Michael Larson2020-09-0834-597/+553
|
* Skip two tests that are flaky on WindowsQuentin Pradet2020-09-082-0/+16
| | | | | | These tests tend to throw WinError 10053, 10054 and 10061 on Windows, which breaks the continuous integration most of the time. Since we're not testing anything Windows-specific here, it's okay to not run those tests on Windows.
* Fix typo: 'succesfully' -> 'successfully'Tim Gates2020-09-061-1/+1
|
* Upgrade pytest-freezegun to 0.4.2hodbn2020-09-061-1/+1
|
* Include exceptions.pyi and fields.pyiEzzeri Esa2020-09-036-5/+95
|
* Don't log defect warnings on multipart/* responsesBrian Price2020-09-033-0/+71
| | | httplib expects the response body to be available to the HTTP header parser but that's not the case for `parse_headers()` so the following defects are always added to multipart/* responses. We simply ignore these defects at this stage as they are a known issue.
* Remove 'Defensive' from non-timeout SSLError branchSeth Michael Larson2020-08-311-1/+1
|
* Change 'sanity-friendly' to 'user-friendly'Seth Michael Larson2020-08-313-4/+4
|
* Wrap BaseSSLError into SSLError during response readsSeth Michael Larson2020-08-312-3/+30
|
* Coerce values to str in HTTPHeaderDict.__getitem__Hasan Ramezani2020-08-302-2/+10
|
* Parse UTC for 'Retry-After' redirect handlerSeth Michael Larson2020-08-291-1/+1
|
* Always assume UTC if no timezone in Retry-Afterhodbn2020-08-265-0/+69
|
* Blacken using black==20.8b1hodbn2020-08-2612-29/+37
|
* Install Mypy in Nox, add Ezzeri Esa to contributorsEzzeri Esa2020-08-254-13/+15
|
* Don't raise SNI warning on SecureTransport with server_hostname=Nonehodbn2020-08-234-102/+132
|
* Use tz-aware functions in Retry.parse_retry_after()Seth Michael Larson2020-08-233-15/+10
|
* Fix typo in docMichael Shields2020-08-211-1/+1
|
* Include mypy in noxfile and add ssl_match_hostname stubsEzzeri Esa2020-08-214-4/+50
|
* Add SSLTransport to support TLS in TLS connectionsJorge2020-08-192-0/+667
| | | | | | | | | | | | | TLS within TLS is not supported easily within the ssl library. The SSLSocket actually takes over the existing socket (https://github.com/python/cpython/blob/master/Lib/ssl.py#L999-L1006) instead of wrapping it entirely. The only way to support to TLS within TLS is with the wrap_bio methods. This commit introduces SSLTransport which wraps a socket in TLS using the provided SSL context. Rather than taking over the socket it uses the wrap_bio methods to perform TLS on top of that socket. Signed-off-by: Jorge Lopez Silva <jalopezsilva@gmail.com>
* Allow Python nightly build to fail on TravisSeth Michael Larson2020-08-141-0/+2
|
* Document how to customize SNI and Host headers when connecting via IPStephen Rosen2020-08-102-0/+44
|
* Test Python 3.9-dev on macOS on GitHub ActionsHugo van Kemenade2020-08-101-7/+9
|
* Test on Python 3.9-dev and nightly on Travis CIHugo van Kemenade2020-08-043-3/+5
|
* Add v1.25.10 release to CHANGES on masterSeth Michael Larson2020-07-251-0/+19
|
* Add hardcoded paths to macOS frameworks for Big Sur compatibility. (#1905)Shea Craig2020-07-191-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add hardcoded paths to macOS frameworks for Big Sur compatibility. ctypes.util.find_library is checking for the presence of the framework files, which will fail due to macOS Big Sur's "dynamic linker cache". Since these files really can't be anywhere else, we just hardcode the path and load them. See: https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11-beta-release-notes (relevent excerpt provided below) This update takes the approach of leaving the existing behavior as is for macOS 10.8 (lowest supported version) through 10.15. Allegedly Apple is going to number Big Sur as macOS 11, although right now the beta returns a version of "10.16", so this code handles both as being greater than or equal to "10.16". | New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286) * Raise an OSError if not on macOS and trying to import securetransport * Just use hardcoded paths for Security and CoreFoundation libs. This should never be anything but these paths. Instead of checking for `os.path.isfile` with `ctypes.util.find_library`, we just try to load with `ctypes.CDLL` and catch the `OSError` if it fails, add context, and reraise. * Updated to preserve pre-10.16 behavior. * Bail early on non-macOS. * Restore find_library import, OSError -> ImportError * ImportError * OSError * Delete test_securetransport_big_sur.py Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
* Collapse request chunked data and framing into one send() call (#1906)Seth Michael Larson2020-07-161-4/+5
|
* Send "http/1.1" ALPN extension during TLS handshakehodbn2020-07-1611-3/+196
|