Thomas Grainger
f075c8b0b4
close aiohttp session on errors
2023-12-15 11:39:16 +00:00
Thomas Grainger
3919cb2573
remember to close the VCRHTTPSConnection
2023-12-15 11:08:49 +00:00
Thomas Grainger
bddec2e62a
use socketserver.ThreadingTCPServer as a contextmanager
2023-12-15 11:08:31 +00:00
Thomas Grainger
fa789e975b
fix a KeyError
2023-12-15 11:07:56 +00:00
Thomas Grainger
556fd0166c
enable filterwarnings=error
2023-12-15 11:07:40 +00:00
Thomas Grainger
17c78bff9e
Merge branch 'master' of github.com:kevin1024/vcrpy into fix-resource-warning-2
2023-12-15 10:48:27 +00:00
Sebastian Pipping
713cb36d35
Merge pull request #800 from kevin1024/pre-commit-ci
...
Start using pre-commit in CI
2023-12-12 20:28:19 +01:00
Sebastian Pipping
b0cb8765d5
pre-commit: Add --show-source to ruff
...
Suggested by Jair Henrique.
2023-12-12 20:01:09 +01:00
Sebastian Pipping
97ad51fe6c
pre-commit: Enable trailing-whitespace
2023-12-12 20:01:09 +01:00
Sebastian Pipping
1dd9cbde8b
pre-commit: Mass-apply trailing-whitespace
2023-12-12 20:01:09 +01:00
Sebastian Pipping
962284072b
pre-commit: Enable end-of-file-fixer
2023-12-12 19:01:50 +01:00
Sebastian Pipping
e9102b2bb4
pre-commit: Mass-apply end-of-file-fixer
2023-12-12 19:01:50 +01:00
Sebastian Pipping
957c8bd7a3
pre-commit: Protect against accidental merge conflict markers
2023-12-12 19:01:50 +01:00
Sebastian Pipping
2d5f8a499e
lint.yml: Drop as superseded by pre-commit.yml
2023-12-12 19:01:50 +01:00
Sebastian Pipping
e5555a5d5b
pre-commit: Make CI keep keep the config up to date via pull requests
2023-12-12 19:01:50 +01:00
Sebastian Pipping
a542567e4a
pre-commit: Integrate with GitHub Actions CI
2023-12-12 19:01:50 +01:00
Sebastian Pipping
3168e7813e
pre-commit: Enable Ruff and Ruff Black-style formatting
2023-12-12 19:00:57 +01:00
Jair Henrique
88cf01aa14
Fix format code
2023-12-12 14:24:22 -03:00
Parker Hancock
85ae012d9c
fix linting
2023-12-12 14:24:22 -03:00
Parker Hancock
db1e9e7180
make cassettes human readable
2023-12-12 14:24:22 -03:00
Jair Henrique
dbf7a3337b
Show ruff diff errors
2023-12-12 13:58:25 -03:00
dependabot[bot]
dd97b02b72
build(deps): bump sphinx-rtd-theme from 1.3.0 to 2.0.0
...
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme ) from 1.3.0 to 2.0.0.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst )
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/1.3.0...2.0.0 )
---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-11 11:27:04 -03:00
dependabot[bot]
e8346ad30e
build(deps): bump actions/setup-python from 4 to 5
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-11 10:42:13 -03:00
Sebastian Pipping
6a31904333
Merge pull request #789 from kevin1024/fix-imports-to-assertions-py
...
tests: Fix imports to `tests/assertions.py` (fixes #773 )
2023-12-11 00:58:01 +01:00
Jair Henrique
796dc8de7e
Move lint from tox to gh action
2023-12-10 20:48:01 -03:00
Sebastian Pipping
ecb5d84f0f
tests: Fix imports to tests/assertions.py
2023-12-11 00:36:46 +01:00
Jair Henrique
cebdd45849
Use ruff to check code format intead of black
2023-12-10 20:12:09 -03:00
Sebastian Pipping
8a8d46f130
Merge pull request #775 from kevin1024/python-3-12
...
Finish up on Python 3.12 support
2023-12-10 23:49:46 +01:00
Sebastian Pipping
954a100dfd
Finish up on Python 3.12 support
2023-12-10 23:33:30 +01:00
Sebastian Pipping
604c0be571
Merge pull request #787 from kevin1024/fix-pypy-3-10
...
Fix CI / Block urllib3 >=2 for PyPy (alternative to #786 )
2023-12-10 23:32:23 +01:00
Sebastian Pipping
0e57182207
setup.py: Block urllib3 >=2 for PyPy (including 3.10)
...
It kept failing CI
2023-12-08 23:05:09 +01:00
Rob Brackett
c062c9f54c
Remove spaces at end-of-line in changelog
...
This matches the project's `.editorconfig` rules.
2023-12-08 16:59:39 -03:00
Rob Brackett
2abf1188a9
Fix list formatting in v5.1.0 changelog
...
The list of changes was not indented enough, and so didn't actually get formatted as a list when rendering HTML, which left it pretty unreadable. This also adds a blank line between the last 4.x version and 5.0.0 to match the extra blank lines between other major versions.
2023-12-08 16:59:39 -03:00
dependabot[bot]
2b2935a1e7
build(deps): bump sphinx-rtd-theme from 1.2.2 to 1.3.0
...
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme ) from 1.2.2 to 1.3.0.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst )
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/1.2.2...1.3.0 )
---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-08 16:39:02 -03:00
dependabot[bot]
a8545c89a5
build(deps): bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-08 16:38:47 -03:00
Parker Hancock
5532c0b4cf
more attempts to make the linters happy
2023-12-08 16:38:33 -03:00
Parker Hancock
f4467a8d6c
make linters happy
2023-12-08 16:38:33 -03:00
Parker Hancock
f5fc7aac22
fix tests
2023-12-08 16:38:33 -03:00
Parker Hancock
e8e9a4af9f
remove unnecssary comment
2023-12-08 16:38:33 -03:00
Parker Hancock
7bf8f65815
fixes for httpx
2023-12-08 16:38:33 -03:00
Michał Górny
defad28771
Disable C extension in aiohttp to fix Python 3.12 install
...
Disable the C extension in aiohttp that's incompatible with Python 3.12
as of 3.8.5, in order to make it possible to install it (in pure Python
version) for testing.
2023-08-09 10:09:12 -03:00
Michał Górny
69621c67fb
Copy debuglevel and _http_vsn attrs into response classes
...
Copy the `debuglevel` and `_http_vsn` attributes from base connection
class into response classes, in order to fix compatibility with
Python 3.12. For reasons I don't comprehend, these end up being called
on the class rather than instance, so regular proxying logic does not
work.
Fixes #707
2023-08-09 10:09:12 -03:00
Michał Górny
469a10b980
Enable testing on pypy-3.9 & 3.10
2023-08-09 10:09:12 -03:00
Michał Górny
d90cea0260
Enable testing on Python 3.12
2023-08-09 10:09:12 -03:00
Harmon
c9da7a102f
Configure Read the Docs to install the library
2023-08-07 08:34:45 -03:00
Mohammad Razavi
f4144359f6
Fix ResourceWarning unclosed socket
...
This PR fixes issue #710 by properly closing the underlying socket. It
first uses `pool._put_conn` to keep the connection in the pool, and
later removes and closes it when the context manager exits.
I was unsure about the exact purpose of the `ConnectonRemove` class,
so I made minimal changes to minimize the risk of breaking the code
and there may be better solutions for fixing this issue.
For example, the `urllib3.connectionpool.HTTPConnectionPool` will
utilize a weakref to terminate pool connections. By appending our
connection to it, it will also take care of closing our connection. So
another solution could be to modify the `__exit__` in
`patch.ConnectionRemover` method and add our connection to the pool:
```py
class ConnectionRemover:
...
def __exit__(self, *args):
for pool, connections in self._connection_pool_to_connections.items():
for connection in connections:
if isinstance(connection, self._connection_class):
pool._put_conn(connection)
```
2023-08-07 08:42:58 +02:00
Jair Henrique
69de388649
Drop simplejson support
2023-08-01 08:53:31 -03:00
Jair Henrique
6446d00e27
Drop boto 2 support
2023-07-31 08:49:23 -03:00
Kevin McCarthy
d6bded1820
bump version to v5.1.0
v5.1.0
2023-07-30 17:11:15 -10:00
Sebastian Pipping
e7c00a4bf9
Merge pull request #739 from kevin1024/issue-734-fix-body-matcher-for-chunked-requests
...
Fix body matcher for chunked requests (fixes #734 )
2023-07-23 23:22:34 +02:00