Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update Contributor Covenant to v2.0add-code-of-conduct-1 | Andrey Petrov | 2020-09-22 | 1 | -47/+99 |
| | |||||
* | Add Contributor Covenant Code of Conduct | Andrey Petrov | 2020-09-22 | 1 | -0/+76 |
| | |||||
* | Add Discord shield, reorder shields | Seth Michael Larson | 2020-09-22 | 1 | -4/+5 |
| | |||||
* | Add Open Collective to GitHub Funding | Seth Michael Larson | 2020-09-21 | 1 | -0/+1 |
| | |||||
* | Create v2.0 Roadmap and Open Collective Sponsors Section | Seth Michael Larson | 2020-09-21 | 5 | -8/+244 |
| | |||||
* | Consume connections better in socket-level tests (#1958) | hodbn | 2020-09-18 | 2 | -23/+89 |
| | | | Co-authored-by: Quentin Pradet <quentin.pradet@gmail.com> | ||||
* | Use LONG_TIMEOUT on test with disabled retries | Quentin Pradet | 2020-09-18 | 1 | -1/+1 |
| | |||||
* | Fix autodoc and intersphinx links in documentation (#1966) | Seth Michael Larson | 2020-09-18 | 11 | -88/+114 |
| | |||||
* | Move nox -s lint to GitHub Actions | Quentin Pradet | 2020-09-16 | 2 | -2/+15 |
| | |||||
* | Use Sphinx 3 and unpin Furo | Pradyun Gedam | 2020-09-15 | 1 | -2/+2 |
| | |||||
* | Include filepost.pyi and util/url.pyi (#1955) | Ezzeri Esa | 2020-09-15 | 4 | -0/+51 |
| | |||||
* | Get SSLTransport tests to 100% coverage | Jorge | 2020-09-13 | 1 | -14/+44 |
| | |||||
* | Migrate Windows CI to GitHub Actions | hodbn | 2020-09-13 | 5 | -305/+35 |
| | |||||
* | Mark master branch as 1.26.0.dev0 for RTD | Seth Michael Larson | 2020-09-11 | 1 | -1/+1 |
| | |||||
* | Swallow BrokenPipeError when writing request body | Rober Morales-Chaparro | 2020-09-11 | 4 | -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 Orsila | 2020-09-11 | 1 | -1/+1 |
| | |||||
* | Remove duplicate dict key and except block | hodbn | 2020-09-09 | 2 | -9/+1 |
| | |||||
* | Stricter RTD builds, move Sponsors to docs (#1954) | Seth Michael Larson | 2020-09-09 | 6 | -27/+44 |
| | |||||
* | Use LONG_TIMEOUT on another timeout-based test | Quentin Pradet | 2020-09-09 | 1 | -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 Actions | Quentin Pradet | 2020-09-09 | 1 | -7/+4 |
| | |||||
* | Switch to more reliable method to upload coverage | Quentin Pradet | 2020-09-09 | 1 | -3/+16 |
| | |||||
* | Rename _travis/ to ci/ | Quentin Pradet | 2020-09-09 | 9 | -7/+7 |
| | | | | Before using upload_coverage.sh in GitHub Actions | ||||
* | Use LONG_TIMEOUT for read with retries=0 | Quentin Pradet | 2020-09-08 | 1 | -2/+1 |
| | | | This is done in other tests, and avoids timing out on the initial read | ||||
* | Overhaul and re-theme documentation | Seth Michael Larson | 2020-09-08 | 34 | -597/+553 |
| | |||||
* | Skip two tests that are flaky on Windows | Quentin Pradet | 2020-09-08 | 2 | -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 Gates | 2020-09-06 | 1 | -1/+1 |
| | |||||
* | Upgrade pytest-freezegun to 0.4.2 | hodbn | 2020-09-06 | 1 | -1/+1 |
| | |||||
* | Include exceptions.pyi and fields.pyi | Ezzeri Esa | 2020-09-03 | 6 | -5/+95 |
| | |||||
* | Don't log defect warnings on multipart/* responses | Brian Price | 2020-09-03 | 3 | -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 branch | Seth Michael Larson | 2020-08-31 | 1 | -1/+1 |
| | |||||
* | Change 'sanity-friendly' to 'user-friendly' | Seth Michael Larson | 2020-08-31 | 3 | -4/+4 |
| | |||||
* | Wrap BaseSSLError into SSLError during response reads | Seth Michael Larson | 2020-08-31 | 2 | -3/+30 |
| | |||||
* | Coerce values to str in HTTPHeaderDict.__getitem__ | Hasan Ramezani | 2020-08-30 | 2 | -2/+10 |
| | |||||
* | Parse UTC for 'Retry-After' redirect handler | Seth Michael Larson | 2020-08-29 | 1 | -1/+1 |
| | |||||
* | Always assume UTC if no timezone in Retry-After | hodbn | 2020-08-26 | 5 | -0/+69 |
| | |||||
* | Blacken using black==20.8b1 | hodbn | 2020-08-26 | 12 | -29/+37 |
| | |||||
* | Install Mypy in Nox, add Ezzeri Esa to contributors | Ezzeri Esa | 2020-08-25 | 4 | -13/+15 |
| | |||||
* | Don't raise SNI warning on SecureTransport with server_hostname=None | hodbn | 2020-08-23 | 4 | -102/+132 |
| | |||||
* | Use tz-aware functions in Retry.parse_retry_after() | Seth Michael Larson | 2020-08-23 | 3 | -15/+10 |
| | |||||
* | Fix typo in doc | Michael Shields | 2020-08-21 | 1 | -1/+1 |
| | |||||
* | Include mypy in noxfile and add ssl_match_hostname stubs | Ezzeri Esa | 2020-08-21 | 4 | -4/+50 |
| | |||||
* | Add SSLTransport to support TLS in TLS connections | Jorge | 2020-08-19 | 2 | -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 Travis | Seth Michael Larson | 2020-08-14 | 1 | -0/+2 |
| | |||||
* | Document how to customize SNI and Host headers when connecting via IP | Stephen Rosen | 2020-08-10 | 2 | -0/+44 |
| | |||||
* | Test Python 3.9-dev on macOS on GitHub Actions | Hugo van Kemenade | 2020-08-10 | 1 | -7/+9 |
| | |||||
* | Test on Python 3.9-dev and nightly on Travis CI | Hugo van Kemenade | 2020-08-04 | 3 | -3/+5 |
| | |||||
* | Add v1.25.10 release to CHANGES on master | Seth Michael Larson | 2020-07-25 | 1 | -0/+19 |
| | |||||
* | Add hardcoded paths to macOS frameworks for Big Sur compatibility. (#1905) | Shea Craig | 2020-07-19 | 1 | -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 Larson | 2020-07-16 | 1 | -4/+5 |
| | |||||
* | Send "http/1.1" ALPN extension during TLS handshake | hodbn | 2020-07-16 | 11 | -3/+196 |
| |