Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
bc33028
Prepare release version 8.3.0
pytestbot Jul 20, 2024
19d225d
Merge pull request #12635 from pytest-dev/release-8.3.0
bluetech Jul 20, 2024
664325b
doc/changelog: update 8.3.0 notes
nicoddemus Jul 20, 2024
bd0a042
Merge pull request #12636 from pytest-dev/update-release-notes
bluetech Jul 20, 2024
de98446
Prepare release version 8.3.1
pytestbot Jul 20, 2024
ca3070b
Merge pull request #12637 from pytest-dev/release-8.3.1
bluetech Jul 20, 2024
31337ab
Merge pull request #12640 from pytest-dev/update-user
bluetech Jul 21, 2024
ae6034a
Merge pull request #12641 from pytest-dev/patchback/backports/8.3.x/c…
bluetech Jul 21, 2024
238bad2
Merge pull request #12656 from RonnyPfannschmidt/fix-12652-detect-con…
RonnyPfannschmidt Jul 24, 2024
78fe8b6
Merge pull request #12657 from pytest-dev/patchback/backports/8.3.x/6…
RonnyPfannschmidt Jul 24, 2024
bbcec9c
Prepare release version 8.3.2
pytestbot Jul 24, 2024
c77a96d
Merge pull request #12675 from nicoddemus/pin-towncrier
nicoddemus Aug 1, 2024
918ce70
Merge pull request #12676 from pytest-dev/patchback/backports/8.3.x/f…
webknjaz Aug 1, 2024
7b62fef
Merge pull request #12660 from pytest-dev/release-8.3.2
RonnyPfannschmidt Aug 1, 2024
32f9951
Merge pull request #12679 from RFCArrow/tmp_path_retention_policy-exa…
patchback[bot] Aug 3, 2024
dcff37a
Obey verbosity level when printing 'msg' part of assertions (#12662) …
patchback[bot] Aug 5, 2024
de6824f
Add merge/squash guidelines to CONTRIBUTING.rst (#12672) (#12692)
patchback[bot] Aug 6, 2024
ae7959a
Add Pierre to official contacts (#12694) (#12695)
patchback[bot] Aug 6, 2024
74caad9
docs: Revise `cache_dir` option section (#12701) (#12703)
patchback[bot] Aug 9, 2024
8fb7fae
Fix `errisinstance` typing (#12700) (#12704)
patchback[bot] Aug 9, 2024
6d59143
docs: clarify `pytest_deselected`/`pytest_collection_modifyitems` usa…
patchback[bot] Aug 22, 2024
2d5618e
Replaced `typing.Self` with `typing_extensions.Self` (#12744)
Avasam Aug 29, 2024
cafc729
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 22, 2024
c185df6
[pre-commit.ci] pre-commit autoupdate (#12669)
pre-commit-ci[bot] Jul 30, 2024
3b82956
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 5, 2024
0765c55
Replace types-pkg-resources by types-setuptools
nicoddemus Aug 7, 2024
d2bb828
[pre-commit.ci] pre-commit autoupdate (#12712)
pre-commit-ci[bot] Aug 14, 2024
87bc32f
[pre-commit.ci] pre-commit autoupdate (#12725)
pre-commit-ci[bot] Aug 20, 2024
eaf553d
[pre-commit.ci] pre-commit autoupdate (#12741)
pre-commit-ci[bot] Aug 27, 2024
6af50c0
Adapt code after updating to mypy 1.11
nicoddemus Jul 23, 2024
e22c188
Merge pull request #12746 from pytest-dev/patchback/backports/8.3.x/c…
nicoddemus Aug 29, 2024
be9e36e
Use oldest supported Python in mypy pre-commit checks (#12747) (#12750)
patchback[bot] Aug 29, 2024
bf379f4
Fix assertion rewriting with importlib mode (#12716) (#12755)
patchback[bot] Aug 30, 2024
2dfea27
Merge pull request #12761 from pytest-dev/dependabot/github_actions/p…
webknjaz Sep 2, 2024
ae08146
Merge pull request #12768 from pytest-dev/patchback/backports/8.3.x/c…
webknjaz Sep 3, 2024
4873394
doc: Remove past training (#12772) (#12773)
patchback[bot] Sep 3, 2024
01cfcc9
Fix typos and introduce codespell pre-commit hook (#12769) (#12774)
patchback[bot] Sep 3, 2024
bc913d1
Streamline checks for verbose option (#12706) (#12778)
patchback[bot] Sep 5, 2024
e5d32c7
Merge pull request #12784 from svenevs/fix/docs-example-parametrize-m…
webknjaz Sep 7, 2024
300d13d
Merge pull request #12785 from pytest-dev/patchback/backports/8.3.x/5…
webknjaz Sep 7, 2024
0f10b6b
Fix issue with slashes being turned into backslashes on Windows (#127…
patchback[bot] Sep 8, 2024
a9910a4
Do not discover properties when iterating fixtures (#12781) (#12788)
patchback[bot] Sep 8, 2024
0dabdcf
Include co-authors in release announcement (#12795) (#12797)
patchback[bot] Sep 9, 2024
972f307
Prepare release version 8.3.3
pytestbot Sep 9, 2024
d0f136f
build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 (…
dependabot[bot] Sep 9, 2024
03d8fb7
Merge pull request #12798 from pytest-dev/release-8.3.3
nicoddemus Sep 10, 2024
0cfca08
Added Databricks fixture plugin for PyTest (#12826) (#12827)
patchback[bot] Sep 19, 2024
dd259f6
Merge pull request #12829 from Dreamsorcerer/patch-1
webknjaz Sep 21, 2024
6178e44
Merge pull request #12830 from pytest-dev/patchback/backports/8.3.x/d…
webknjaz Sep 21, 2024
72c9c35
Docs: improve "How to capture stdout/stderr output" (#12840) (#12841)
patchback[bot] Sep 25, 2024
3d3ec57
Fix KeyError with importlib mode (directories with same name) (#12752…
patchback[bot] Sep 26, 2024
40741c4
Preserve source positions for assertion rewriting (#12867)
patchback[bot] Oct 9, 2024
09da0de
Docs: improve/cleanup reference from/to recwarn (#12866) (#12870)
patchback[bot] Oct 10, 2024
d450afe
[pre-commit] Use --python-version for mypy instead of forcing a pytho…
patchback[bot] Oct 10, 2024
5b6a8d6
Merge pull request #12872 from Pierre-Sassoulas/fix-pre-commit-python…
webknjaz Oct 10, 2024
1eb6007
Merge pull request #12873 from pytest-dev/patchback/backports/8.3.x/f…
webknjaz Oct 10, 2024
6fe6382
Improve pytest.Config.getoption docstring (#12886)
nicoddemus Oct 13, 2024
fb56f3d
Merge pull request #12889 from pytest-dev/patchback/backports/8.3.x/d…
webknjaz Oct 13, 2024
52135b0
Merge pull request #12885 from The-Compiler/pdb-py311 (#12887)
patchback[bot] Oct 13, 2024
6502816
Merge pull request #12913 from jakkdl/dontfailonbadpath
bluetech Oct 25, 2024
c875841
Merge pull request #12917 from pytest-dev/patchback/backports/8.3.x/d…
bluetech Oct 25, 2024
7aeb72b
Improve docs on basetemp and retention (#12912) (#12928)
patchback[bot] Oct 31, 2024
be6bc81
Issue #12966 Clarify filterwarnings docs on precedence when using mul…
patchback[bot] Nov 16, 2024
16cb87b
pytest.fail: fix ANSI escape codes for colored output (#12959) (#12990)
patchback[bot] Nov 25, 2024
b541721
docs: Fix wrong statement about sys.modules with importlib import mod…
patchback[bot] Nov 25, 2024
1b474e2
approx: use exact comparison for bool (#13013)
patchback[bot] Dec 1, 2024
98dff36
Prepare release version 8.3.4
pytestbot Dec 1, 2024
53f8b4e
Update pypa/gh-action-pypi-publish to v1.12.2
nicoddemus Dec 1, 2024
4707416
Merge pull request #13018 from pytest-dev/release-8.3.4
nicoddemus Dec 1, 2024
ade10c1
Merge pull request #13019 from nicoddemus/release-template (#13020)
patchback[bot] Dec 1, 2024
179b690
fix `AttributeError` crash when using `--import-mode=importlib` (#13…
patchback[bot] Dec 7, 2024
4e7af35
Fix `ImportError` crash when using `--import-mode=importlib` (#13053)…
patchback[bot] Dec 12, 2024
544bf20
Merge pull request #13064 from pytest-dev/dependabot/github_actions/p…
webknjaz Dec 16, 2024
64e0f23
Merge pull request #13066 from pytest-dev/patchback/backports/8.3.x/d…
webknjaz Dec 16, 2024
e4d842a
[8.3.x] ci: fix failing jobs due to pluggy requiring Python>=3.9
bluetech Dec 16, 2024
ebd23c1
Merge pull request #13068 from bluetech/eightthree-fix-ci-pluggy
nicoddemus Dec 16, 2024
c2abd05
ci: harden github actions according to "zizmor" recommendations (#130…
patchback[bot] Dec 16, 2024
763a1aa
Merge pull request #13069 from bluetech/zizmor-pre-commit
webknjaz Dec 16, 2024
a7d2fc3
Merge pull request #13070 from pytest-dev/patchback/backports/8.3.x/7…
webknjaz Dec 16, 2024
ad4081f
Merge pull request #13113 from The-Compiler/fix-pygments-whitespace
The-Compiler Jan 8, 2025
2c93423
Merge pull request #13116 from pytest-dev/patchback/backports/8.3.x/b…
The-Compiler Jan 8, 2025
f1c6bab
Fix crash when directory is removed during collection (#13086) (#13117)
patchback[bot] Jan 8, 2025
02519fd
Update links to microblogging pages (#13123) (#13127)
patchback[bot] Jan 12, 2025
ef06e43
Fix example in pytest_collection_modifyitems (#13152) (#13154)
patchback[bot] Jan 21, 2025
4dbec99
Fix sequences being shortened even with `-vv` verbosity. (#13163)
nicoddemus Jan 26, 2025
8728b1a
Update pythonpath.rst (#13181) (#13182)
patchback[bot] Feb 3, 2025
78cf1f6
ci: Bump build-and-inspect-python-package (#13188)
The-Compiler Feb 3, 2025
eb6496b
doc: Change training to remote only (#13196) (#13197)
patchback[bot] Feb 5, 2025
2ebba00
Merge pull request #13199 from jakkdl/tox_docs_no_fetch (#13200)
patchback[bot] Feb 7, 2025
edbfff7
doc: Clarify capturing .readouterr() return value (#13222) (#13225)
patchback[bot] Feb 15, 2025
b75cfb1
Add readline workaround for libedit (#13176)
The-Compiler Feb 3, 2025
3419674
Merge pull request #13187 from pytest-dev/patchback/backports/8.3.x/b…
webknjaz Feb 28, 2025
e5c2efe
Merge pull request #13256 from webknjaz/maintenance/towncrier-bump (#…
patchback[bot] Mar 1, 2025
2fa3f83
Add more resources and studies to flaky tests page in docs (#13250) (…
patchback[bot] Mar 1, 2025
e217726
Added dedicated page about using types with pytest #12842 (#12963) (#…
patchback[bot] Mar 1, 2025
b55ab2a
Prepare release version 8.3.5
pytestbot Mar 2, 2025
5c4e5f0
Custom susbtest serialization
jdave-zip Jan 16, 2026
de96143
remove dynamic versioning
jdave-zip Jan 21, 2026
d746e66
fix scm version
jdave-zip Jan 21, 2026
3e6b89c
fix scm version issue
jdave-zip Jan 21, 2026
d5e1981
fix scm version issue
jdave-zip Jan 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
persist-credentials: false

- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@v2.6.0
uses: hynek/build-and-inspect-python-package@v2.12.0
with:
attest-build-provenance-github: 'true'

Expand All @@ -46,6 +46,8 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true

- name: Download Package
uses: actions/download-artifact@v4
Expand All @@ -54,14 +56,18 @@ jobs:
path: dist

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.9.0
uses: pypa/gh-action-pypi-publish@v1.12.3
with:
attestations: true

- name: Push tag
env:
VERSION: ${{ github.event.inputs.version }}
run: |
git config user.name "pytest bot"
git config user.email "pytestbot@gmail.com"
git tag --annotate --message=v${{ github.event.inputs.version }} ${{ github.event.inputs.version }} ${{ github.sha }}
git push origin ${{ github.event.inputs.version }}
git tag --annotate --message=v"$VERSION" "$VERSION" ${{ github.sha }}
git push origin "$VERSION"

release-notes:

Expand Down Expand Up @@ -96,9 +102,11 @@ jobs:
pip install --upgrade tox

- name: Generate release notes
env:
VERSION: ${{ github.event.inputs.version }}
run: |
sudo apt-get install pandoc
tox -e generate-gh-release-notes -- ${{ github.event.inputs.version }} scripts/latest-release-notes.md
tox -e generate-gh-release-notes -- "$VERSION" scripts/latest-release-notes.md

- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/prepare-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -43,10 +44,16 @@ jobs:

- name: Prepare release PR (minor/patch release)
if: github.event.inputs.major == 'no'
env:
BRANCH: ${{ github.event.inputs.branch }}
PRERELEASE: ${{ github.event.inputs.prerelease }}
run: |
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --prerelease='${{ github.event.inputs.prerelease }}'
tox -e prepare-release-pr -- "$BRANCH" ${{ github.token }} --prerelease="$PRERELEASE"

- name: Prepare release PR (major release)
if: github.event.inputs.major == 'yes'
env:
BRANCH: ${{ github.event.inputs.branch }}
PRERELEASE: ${{ github.event.inputs.prerelease }}
run: |
tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --major --prerelease='${{ github.event.inputs.prerelease }}'
tox -e prepare-release-pr -- "$BRANCH" ${{ github.token }} --major --prerelease="$PRERELEASE"
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
fetch-depth: 0
persist-credentials: false
- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@v2.6.0
uses: hynek/build-and-inspect-python-package@v2.12.0

build:
needs: [package]
Expand All @@ -55,15 +55,15 @@ jobs:
matrix:
name: [
"windows-py38",
"windows-py38-pluggy",
"windows-py39-pluggy",
"windows-py39",
"windows-py310",
"windows-py311",
"windows-py312",
"windows-py313",

"ubuntu-py38",
"ubuntu-py38-pluggy",
"ubuntu-py39-pluggy",
"ubuntu-py38-freeze",
"ubuntu-py39",
"ubuntu-py310",
Expand All @@ -88,10 +88,10 @@ jobs:
os: windows-latest
tox_env: "py38-unittestextras"
use_coverage: true
- name: "windows-py38-pluggy"
python: "3.8"
- name: "windows-py39-pluggy"
python: "3.9"
os: windows-latest
tox_env: "py38-pluggymain-pylib-xdist"
tox_env: "py39-pluggymain-pylib-xdist"
- name: "windows-py39"
python: "3.9"
os: windows-latest
Expand All @@ -118,10 +118,10 @@ jobs:
os: ubuntu-latest
tox_env: "py38-lsof-numpy-pexpect"
use_coverage: true
- name: "ubuntu-py38-pluggy"
python: "3.8"
- name: "ubuntu-py39-pluggy"
python: "3.9"
os: ubuntu-latest
tox_env: "py38-pluggymain-pylib-xdist"
tox_env: "py39-pluggymain-pylib-xdist"
- name: "ubuntu-py38-freeze"
python: "3.8"
os: ubuntu-latest
Expand All @@ -147,7 +147,7 @@ jobs:
- name: "ubuntu-py313"
python: "3.13-dev"
os: ubuntu-latest
tox_env: "py313"
tox_env: "py313-pexpect"
use_coverage: true
- name: "ubuntu-pypy3"
python: "pypy-3.9"
Expand Down Expand Up @@ -192,9 +192,9 @@ jobs:
contains(
fromJSON(
'[
"windows-py38-pluggy",
"windows-py39-pluggy",
"windows-py313",
"ubuntu-py38-pluggy",
"ubuntu-py39-pluggy",
"ubuntu-py38-freeze",
"ubuntu-py313",
"macos-py38",
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-plugin-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip

- name: requests-cache
uses: actions/cache@v4
with:
Expand All @@ -41,7 +43,6 @@ jobs:
python -m pip install --upgrade pip
pip install packaging requests tabulate[widechars] tqdm requests-cache platformdirs


- name: Update Plugin List
run: python scripts/update-plugin-list.py

Expand All @@ -61,8 +62,9 @@ jobs:
- name: Instruct the maintainers to trigger CI by undrafting the PR
env:
GITHUB_TOKEN: ${{ github.token }}
PULL_REQUEST_NUMBER: ${{ steps.pr.outputs.pull-request-number }}
run: >-
gh pr comment
--body 'Please mark the PR as ready for review to trigger PR checks.'
--repo '${{ github.repository }}'
'${{ steps.pr.outputs.pull-request-number }}'
"$PULL_REQUEST_NUMBER"
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ include/
*~
.hypothesis/

# autogenerated
src/_pytest/_version.py
# setuptools
.eggs/

Expand Down
22 changes: 16 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.2"
rev: "v0.6.2"
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -11,40 +11,50 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v0.9.2
hooks:
- id: zizmor
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [black==24.1.1]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: ["--toml=pyproject.toml"]
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.2
hooks:
- id: mypy
files: ^(src/|testing/|scripts/)
args: []
additional_dependencies:
- iniconfig>=1.1.0
- attrs>=19.2.0
- pluggy>=1.5.0
- packaging
- tomli
- types-pkg_resources
- types-setuptools
- types-tabulate
# for mypy running on python>=3.11 since exceptiongroup is only a dependency
# on <3.11
- exceptiongroup>=1.0.0rc8
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.4"
rev: "2.2.1"
hooks:
- id: pyproject-fmt
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
additional_dependencies: ["tox>=4.9"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
stages: [manual]
Expand Down
9 changes: 9 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Chris NeJame
Chris Rose
Chris Wheeler
Christian Boelsen
Christian Clauss
Christian Fetzer
Christian Neumüller
Christian Theunert
Expand Down Expand Up @@ -115,6 +116,7 @@ Dave Hunt
David Díaz-Barquero
David Mohr
David Paul Röthlisberger
David Peled
David Szotten
David Vierra
Daw-Ran Liou
Expand Down Expand Up @@ -158,6 +160,7 @@ Feng Ma
Florian Bruhin
Florian Dahlitz
Floris Bruynooghe
Frank Hoffmann
Fraser Stark
Gabriel Landau
Gabriel Reis
Expand Down Expand Up @@ -242,6 +245,7 @@ Kristoffer Nordström
Kyle Altendorf
Lawrence Mitchell
Lee Kamentsky
Leonardus Chen
Lev Maximov
Levon Saldamli
Lewis Cowles
Expand All @@ -251,6 +255,7 @@ lovetheguitar
Lukas Bednar
Luke Murphy
Maciek Fijalkowski
Maggie Chung
Maho
Maik Figura
Mandeep Bhutani
Expand Down Expand Up @@ -299,6 +304,7 @@ mrbean-bremen
Nathan Goldbaum
Nathaniel Compton
Nathaniel Waisbrot
Nauman Ahmed
Ned Batchelder
Neil Martin
Neven Mundar
Expand Down Expand Up @@ -348,9 +354,11 @@ Ran Benita
Raphael Castaneda
Raphael Pierzina
Rafal Semik
Reza Mousavi
Raquel Alegre
Ravi Chandra
Reagan Lee
Rob Arrow
Robert Holt
Roberto Aldera
Roberto Polli
Expand Down Expand Up @@ -411,6 +419,7 @@ Ted Xiao
Terje Runde
Thomas Grainger
Thomas Hisch
Tianyu Dongfang
Tim Hoffmann
Tim Strazny
TJ Bruno
Expand Down
Loading
Loading