Repository navigation
Releases
Releases · miketheman/pytest-socket
0.8.1
Immutable
release. Only release title and notes can be modified.
What's Changed
Fixes:
- Close the socket before raising on a blocked connect, fixing a file
descriptor leak #496 - Make
SocketConnectBlockedErrorpickleable so it survives multiprocessing
test runners such aspytest-xdistand Django's--parallel#501
Changes:
- Added mutation testing via
make mutmut#500 - Added CodSpeed performance benchmarks #486
- Dependency, CI, and development updates
Full commit log
- chore(ci): remove upload from release by @miketheman in #485
- Add CodSpeed performance benchmarks by @codspeed-hq[bot] in #486
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #487
- chore(deps-dev): bump pytest-codspeed from 5.0.2 to 5.0.3 by @dependabot[bot] in #489
- chore(deps-dev): bump starlette from 1.0.0 to 1.1.0 by @dependabot[bot] in #488
- chore(deps): bump CodSpeedHQ/action from 4.15.1 to 4.17.0 by @dependabot[bot] in #490
- chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #491
- chore(deps-dev): bump starlette from 1.1.0 to 1.2.1 by @dependabot[bot] in #492
- chore(deps-dev): bump starlette from 1.2.1 to 1.3.1 in the uv group across 1 directory by @dependabot[bot] in #495
- chore(deps): bump pytest from 9.0.3 to 9.1.0 by @dependabot[bot] in #498
- chore(deps): bump astral-sh/setup-uv from 8.1.0 to 8.2.0 by @dependabot[bot] in #494
- chore(deps): bump CodSpeedHQ/action from 4.17.0 to 4.17.5 by @dependabot[bot] in #497
- fix: close socket on raise by @miketheman in #499
- test: add remaining coverage by @miketheman in #500
- chore(deps): bump pytest from 9.1.0 to 9.1.1 by @dependabot[bot] in #505
- chore(deps): bump zizmorcore/zizmor-action from 0.5.6 to 0.5.7 by @dependabot[bot] in #503
- chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot[bot] in #504
- chore(deps): bump CodSpeedHQ/action from 4.17.5 to 4.17.6 by @dependabot[bot] in #502
- fix: make SocketConnectBlockedError pickleable by @miketheman in #501
- chore(deps): bump CodSpeedHQ/action from 4.17.6 to 4.18.1 by @dependabot[bot] in #506
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #507
- chore(deps): bump CodSpeedHQ/action from 4.18.1 to 4.18.2 by @dependabot[bot] in #508
- chore(deps): bump astral-sh/setup-uv from 8.2.0 to 8.3.1 by @dependabot[bot] in #509
- chore(deps): bump astral-sh/setup-uv from 8.3.1 to 8.3.2 by @dependabot[bot] in #510
- chore(deps): bump actions/stale from 10.3.0 to 10.4.0 by @dependabot[bot] in #511
- chore(deps): bump CodSpeedHQ/action from 4.18.2 to 4.18.5 by @dependabot[bot] in #512
- chore(deps-dev): bump mypy from 2.1.0 to 2.3.0 by @dependabot[bot] in #513
- chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 by @dependabot[bot] in #514
- chore(deps): bump astral-sh/setup-uv from 8.3.2 to 9.0.0 by @dependabot[bot] in #516
- chore(deps): bump pypa/gh-action-pypi-publish from 1.14.0 to 1.14.1 by @dependabot[bot] in #517
- chore(deps): bump zizmorcore/zizmor-action from 0.5.7 to 0.6.0 by @dependabot[bot] in #515
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #519
- chore(deps): bump actions/stale from 10.4.0 to 11.0.0 by @dependabot[bot] in #521
- chore(deps): bump zizmorcore/zizmor-action from 0.6.0 to 0.6.1 by @dependabot[bot] in #522
- chore(deps): bump CodSpeedHQ/action from 4.18.5 to 4.19.1 by @dependabot[bot] in #520
- chore(deps): bump pypa/gh-action-pypi-publish from 1.14.1 to 1.14.2 by @dependabot[bot] in #524
- chore(deps): bump CodSpeedHQ/action from 4.19.1 to 5.0.3 by @dependabot[bot] in #526
- chore(deps): bump zizmorcore/zizmor-action from 0.6.1 to 0.6.2 by @dependabot[bot] in #525
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #523
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #529
- chore(deps-dev): bump starlette from 1.3.1 to 1.6.0 by @dependabot[bot] in #530
- chore(deps-dev): update uv-build requirement from <0.12.0,>=0.7.20 to >=0.7.20,<0.13.0 by @dependabot[bot] in #527
- pytest-socket, 0.8.1 by @miketheman in #531
New Contributors
- @codspeed-hq[bot] made their first contribution in #486
Full Changelog: 0.8.0...0.8.1
0.8.0
Immutable
release. Only release title and notes can be modified.
What's Changed
Enhancements
- Block DNS resolution (
getaddrinfo,gethostbyname) when sockets are disabled #482 - Support CIDR network ranges in
allow_hosts#479 - Warn before raising on a blocked socket call #468
- Cache hostname resolutions during a test run #369
Changes
- Removed support for Python 3.8 and 3.9. Python 3.10 is now the minimum.
- Test against Python 3.13, 3.14, and free-threaded 3.13t/3.14t
- Replaced Poetry with uv #429
- Added type hints #465
- Swapped
pytest-httpbinfor a local test fixture #467 - Dependency, CI, and development updates
New Contributors
Full Changelog: 0.7.0...0.8.0
0.7.0
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #191
- chore(deps-dev): update starlette requirement from ^0.23.0 to ^0.24.0 by @dependabot in #192
- feat: force enable socket CLI flag by @mgaitan in #186
- chore(deps-dev): update starlette requirement from ^0.24.0 to ^0.25.0 by @dependabot in #193
- chore(deps): update actions/checkout action to v3.4.0 by @renovate in #198
- chore(deps): bump actions/stale from 7 to 8 by @dependabot in #200
- chore(deps): bump actions/checkout from 3.4.0 to 3.5.0 by @dependabot in #202
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #204
- chore(deps-dev): update starlette requirement from ^0.25.0 to ^0.26.1 by @dependabot in #197
- chore(deps): update actions/checkout action to v3.5.2 by @renovate in #207
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #213
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #214
- chore(deps): update dependency pytest-httpbin to v2 by @renovate in #215
- chore(deps): update dependency starlette to ^0.27.0 [security] by @renovate in #219
- chore(deps): update actions/checkout action to v3.5.3 by @renovate in #222
- chore(deps): update dependency starlette to ^0.28.0 by @renovate in #225
- chore(deps): update dependency httpx to ^0.24.0 by @renovate in #206
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #224
- test: remove deprecated asynctest by @miketheman in #226
- test: test against Python 3.11 by @miketheman in #175
- test: extract common function for reuse by @miketheman in #227
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #228
- test: update test remote with stable service by @miketheman in #231
- test: speed up with dependency caching by @miketheman in #232
- fix: only emit license and readme for sdist by @miketheman in #233
- test: don't fail silently by @miketheman in #234
- chore(allow_hosts): Use getaddrinfo instead of gethostbyname by @hasier in #209
- chore(deps): update dependency pytest to v7.4.0 by @renovate in #235
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #236
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #237
- chore(deps-dev): bump starlette from 0.28.0 to 0.29.0 by @dependabot in #239
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #240
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #241
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #242
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #243
- chore(deps): update actions/checkout action to v3.6.0 by @renovate in #244
- chore(deps): update dependency coverage to v7.3.0 by @renovate in #247
- chore(deps-dev): bump certifi from 2023.5.7 to 2023.7.22 by @dependabot in #249
- chore(deps): update dependency pytest to v7.4.1 by @renovate in #250
- chore(deps): update actions/checkout action to v4 by @renovate in #251
- chore(deps): update dependency pytest-randomly to v3.15.0 by @renovate in #248
- chore(deps): update dependency coverage to v7.3.1 by @renovate in #252
- chore(deps): update dependency pytest to v7.4.2 by @renovate in #253
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #254
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #256
- chore(deps): update actions/checkout action to v4.1.0 by @renovate in #257
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #258
- chore(deps): update minimum required pytest version by @miketheman in #269
- chore(deps): bump actions/checkout from 4.1.0 to 4.1.1 by @dependabot in #264
- chore(deps): update dependency coverage to v7.3.2 by @renovate in #271
- chore(deps): update dependency httpx to ^0.25.0 by @renovate in #255
- chore(deps-dev): bump pytest-randomly from 3.12.0 to 3.15.0 by @dependabot in #274
- chore(deps-dev): bump werkzeug from 2.2.3 to 2.3.8 by @dependabot in #276
- chore(deps): update actions/setup-python action to v5 by @renovate in #281
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #261
- chore(deps): bump actions/stale from 8 to 9 by @dependabot in #283
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #284
- chore(deps): bump github/codeql-action from 2 to 3 by @dependabot in #287
- chore(deps-dev): bump coverage from 7.3.2 to 7.3.3 by @dependabot in #289
- chore(deps-dev): bump starlette from 0.29.0 to 0.34.0 by @dependabot in #290
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #291
- fix(deps): update dependency pytest to v7.4.4 by @renovate in #296
- fix: allow ip hosts and hostnames by @magnasilvar in #275
- chore(deps): update dependency coverage to v7.4.0 by @renovate in #288
- chore(deps): update dependency httpx to ^0.26.0 by @renovate in #292
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #297
- chore(deps-dev): bump starlette from 0.34.0 to 0.35.1 by @dependabot in #300
- chore(deps-dev): bump jinja2 from 3.1.2 to 3.1.3 by @dependabot in #299
- chore(deps-dev): bump starlette from 0.35.1 to 0.36.1 by @dependabot in #301
- chore(dependencies): update custom httpbin pin by @miketheman in #302
New Contributors
- @mgaitan made their first contribution in #186
- @hasier made their first contribution in #209
- @magnasilvar made their first contribution in #275
Full Changelog: 0.6.0...0.7.0
0.6.0
What's Changed
- chore(deps): update dependency httpx to ^0.22.0 by @renovate in #113
- Add Change Log project URL by @scop in #115
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #116
- chore(deps): update dependency pytest to v7 by @renovate in #117
- chore(deps): update actions/setup-python action to v3 by @renovate in #119
- chore(deps): update actions/stale action to v5 by @renovate in #121
- chore(deps): update actions/checkout action to v3 by @renovate in #120
- Fix typo by @kianmeng in #122
- chore(deps): update dependency starlette to ^0.19.0 by @renovate in #123
- fix(deps): pin httpbin to a fixed version by @miketheman in #126
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #127
- chore: create dependabot configuration file by @miketheman in #128
- chore(deps): update github/codeql-action action to v2 by @renovate in #129
- chore(deps): update dependency starlette to ^0.20.0 by @renovate in #130
- chore(deps): update dependency httpx to ^0.23.0 by @renovate in #132
- chore(deps): update actions/setup-python action to v4 by @renovate in #133
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #134
- chore: update for modern python by @miketheman in #136
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #137
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #138
- test: add vulture to detect dead code by @miketheman in #139
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #140
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #141
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #142
- chore: remove trailing whitespace by @miketheman in #149
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #148
- chore(deps): bump actions/setup-java from 2 to 3 by @dependabot in #146
- chore(deps): bump actions/setup-node from 2 to 3 by @dependabot in #147
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #150
- test: update httpbin commit hash by @miketheman in #152
- chore(deps): update actions/stale action to v6 by @renovate in #153
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #151
- chore(deps): bump actions/checkout from 2 to 3.1.0 by @dependabot in #160
- chore(deps-dev): update starlette requirement from ^0.20.0 to ^0.21.0 by @dependabot in #158
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #157
- chore(deps): update actions/setup-python action to v4 by @renovate in #156
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #162
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #164
- chore(deps-dev): update starlette requirement from ^0.21.0 to ^0.22.0 by @dependabot in #166
- chore(deps): update dependency starlette to ^0.22.0 by @renovate in #165
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #167
- chore(deps): update dependency starlette to ^0.23.0 by @renovate in #169
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #170
- Upgrade CodeSee workflow to version 2 by @codesee-maps in #171
- chore(deps): update actions/checkout action to v3.2.0 by @renovate in #173
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #172
- chore(deps): update dependency coverage to v7 by @renovate in #174
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #176
- chore(deps): bump actions/stale from 6 to 7 by @dependabot in #178
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #179
- test: correct execution runner for coverage report by @miketheman in #181
- chore(deps): update actions/checkout action to v3.3.0 by @renovate in #182
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #183
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #187
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #188
- feat(allow_hosts): add support for hostname resolution by @cabarnes in #189
New Contributors
- @scop made their first contribution in #115
- @kianmeng made their first contribution in #122
- @dependabot made their first contribution in #146
- @codesee-maps made their first contribution in #171
- @cabarnes made their first contribution in #189
Full Changelog: 0.5.1...0.6.0
0.5.1
What's Changed
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #104
- fix: don't break on doctests by @andreoliwa, @orf in #109
- chore(deps): update dependency starlette to ^0.18.0 by @renovate in #110
- chore: update make target to handle installation by @miketheman in #111
- chore: add stale workflow by @miketheman in #112
New Contributors
- @pre-commit-ci made their first contribution in #104
- @andreoliwa made their first contribution in #109
Full Changelog: 0.5.0...0.5.1
0.5.0 (2021-12-23)
What's Changed
- docs: Fix syntax for setup.cfg by @llimllib in #77
- chore(dev): update development commands by @miketheman in #83
- Fix pytest-socket raises IndexError with httpx by @ollipa in #85
- test: move the reenable fixture to conftest by @miketheman in #86
- Switch to poetry-core by @fabaff in #74
- Handle
familypassed as keyword argument by @emontnemery in #75 - refactor: consolidate global options to config by @miketheman in #87
- chore: allow for a little complexity by @miketheman in #89
- chore: remove post-yield behaviors by @miketheman in #90
- test: replace pytest-flake8 with pre-commit by @miketheman in #91
- refactor/fix: move logic into setup phase and correct order by @miketheman in #88
- test: add test module for combinations by @miketheman in #92
- fix: test allow_hosts for unix sockets by @miketheman in #93
- chore: disable the renovate dashboard by @miketheman in #94
- chore: remove verbose flag from tests by @miketheman in #95
- test: move unix decorator to conftest by @miketheman in #96
- test: randomize test order by @miketheman in #97
- chore: update python versions by @miketheman in #98
- test: replace coverage command by @miketheman in #99
- chore: add isort to pre-commit by @miketheman in #100
- chore(deps): update dependency starlette to ^0.17.0 by @renovate in #101
- refactor: replace .format with f-strings by @miketheman in #102
- lint: apply black by @miketheman in #103
New Contributors
- @llimllib made their first contribution in #77
- @ollipa made their first contribution in #85
- @fabaff made their first contribution in #74
- @emontnemery made their first contribution in #75
Full Changelog: 0.4.1...0.5.0
0.4.1 (2021-08-29)
Include tests and configs in source distribution archive #69
What's Changed
New Contributors
Full Changelog: 0.4.0...0.4.1
0.4.0 (2021-03-30)
Enhancements:
- Enable Unix sockets selectively with --allow-unix-socket #54
- Test refactor, add CodeQL scanning
- Correctly subclass socket.socket #50
- Add testing against Python 3.9, Dropped testing against Python 3.5
- Doc updates
What's Changed
- chore(deps): update dependency pytest to v6 by @renovate in #44
- Create codeql-analysis.yml by @miketheman in #46
- chore(deps): update actions/setup-python action to v2 by @renovate in #48
- test: add testing on Python 3.9 by @miketheman in #52
- chore: remove support for python 3.5 by @miketheman in #53
- Avoid changing the type of
socket.socketto function. by @matthewwardrop in #50 - Sourcery Starbot ⭐ refactored miketheman/pytest-socket by @sourcery-ai-bot in #55
- Don't block unix sockets by @joetsoi in #54
- docs: add details on fixture scope by @miketheman in #61
- chore: replace rst with markdown by @miketheman in #62
- test: add testing for some async frameworks by @miketheman in #63
New Contributors
- @matthewwardrop made their first contribution in #50
- @sourcery-ai-bot made their first contribution in #55
- @joetsoi made their first contribution in #54
Full Changelog: 0.3.5...0.4.0
0.3.5 (2020-05-31)
Bugfix release.
- Fix bug in marker evaluation #42
- Refactor tests for clarity
NOTE
This is the final release that supports Python 3.5