Skip to content

Pin minimum pytest to 9 - #8174

Merged
matthew-brett merged 2 commits into
scikit-image:mainfrom
stefanv:minimum-pytest-9.3
May 19, 2026
Merged

matthew-brett merged 2 commits into
scikit-image:mainfrom
stefanv:minimum-pytest-9.3

Conversation

@stefanv

@stefanv stefanv commented May 19, 2026

Copy link
Copy Markdown
Member

Fixes these errors, that appear when running pytest with doctestplus in CI:

ModuleNotFoundError: No module named 'tests.dependency_checks'; 'tests' is not a package

Reproducing command:

pytest --doctest-plus tests/skimage/transform src/skimage/transform

Fixes these errors, that appear when running pytest with doctestplus
in CI:

  ModuleNotFoundError: No module named 'tests.dependency_checks'; 'tests' is not a package

Reproducing command:

  pytest --doctest-plus tests/skimage/transform src/skimage/transform
@greptile-apps

greptile-apps Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "Pin minimum pytest to 9.3" | Re-trigger Greptile

@matthew-brett matthew-brett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@stefanv stefanv changed the title Pin minimum pytest to 9.3 Pin minimum pytest to 9 May 19, 2026
@greptile-apps

greptile-apps Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "Fix pytest version" | Re-trigger Greptile

Comment thread pyproject.toml
'numpydoc>=1.7',
'pooch>=1.6.0; sys_platform != "emscripten"',
'pytest>=8.3',
'pytest>=9',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 The PR title says "Pin minimum pytest to 9.3", but the constraint here is >=9, which would allow pytest 9.0, 9.1, and 9.2. If the ModuleNotFoundError fix was introduced in pytest 9.3 specifically, users installing any 9.x release before 9.3 would still hit the CI failure. Please confirm the exact minimum version and align the constraint accordingly.

Suggested change
'pytest>=9',
'pytest>=9.3',

Comment thread environment.yml
- numpydoc>=1.7
- pooch>=1.6.0
- pytest>=8.3
- pytest>=9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Same mismatch as in pyproject.toml — if pytest 9.3 is the true minimum needed to avoid the ModuleNotFoundError, this should be pytest>=9.3 to keep all three requirement files consistent.

Suggested change
- pytest>=9
- pytest>=9.3

Comment thread requirements/test.txt
numpydoc>=1.7
pooch>=1.6.0; sys_platform != "emscripten"
pytest>=8.3
pytest>=9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Same mismatch — should be pytest>=9.3 if that is the actual fix boundary, to stay consistent with the PR title and avoid installing a broken 9.x release.

Suggested change
pytest>=9
pytest>=9.3

@matthew-brett
matthew-brett merged commit 71a3880 into scikit-image:main May 19, 2026
27 checks passed
@stefanv stefanv added this to the 0.27 milestone May 19, 2026
matthew-brett added a commit that referenced this pull request May 19, 2026
* origin/main:
  Pin minimum pytest to 9 (#8174)
  docs: make source install instructions more discoverable and add build requirements to top level requirements file (#8165)
  Drop `--maxfail=5` from local pytest config (#8170)
matthew-brett added a commit to matthew-brett/scikit-image that referenced this pull request May 19, 2026
* origin/main:
  Pin minimum pytest to 9 (scikit-image#8174)
  docs: make source install instructions more discoverable and add build requirements to top level requirements file (scikit-image#8165)
  Drop `--maxfail=5` from local pytest config (scikit-image#8170)
matthew-brett added a commit to matthew-brett/scikit-image that referenced this pull request May 21, 2026
* origin/main: (254 commits)
  Refactor, document migration utilities (scikit-image#8184)
  ci: improve handling of pr labels (scikit-image#8169)
  Doctest migration in PRs & on all platforms (scikit-image#8141)
  Update SKIP 4 (import hierarchy, backporting, testing) (scikit-image#8097)
  One page per function / class in HTML docs for skimage2 (scikit-image#8154)
  Pin minimum pytest to 9 (scikit-image#8174)
  docs: make source install instructions more discoverable and add build requirements to top level requirements file (scikit-image#8165)
  Drop `--maxfail=5` from local pytest config (scikit-image#8170)
  Use standard C99 static inline instead of `__inline` (scikit-image#8159)
  Fix structural_similarity win_size / gaussian_weights conflict (scikit-image#8162)
  Unwrap seed refactor (scikit-image#8142)
  ci: Remove llvm build and add ccache support on windows (scikit-image#8164)
  Document warn_external in contributing guide (scikit-image#8163)
  CI: Fix emscripten dependencies and clean up wheel test commands (scikit-image#8147)
  Test only changed subpackages (scikit-image#8103)
  Fix nightlies: update deprecated scipy call, fix underdetermined test
  Fix minkowski distanced invocation for SciPy >= 1.18 (scikit-image#8157)
  Port `structural_similarly` to ski2 (scikit-image#8104)
  make spin build requirement a lower bound (scikit-image#8158)
  Drop Python 3.11 Support (scikit-image#8153)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants