Skip to content

Test with pythonoptimize - #8108

Merged
stefanv merged 3 commits into
scikit-image:mainfrom
blink1073:test-with-pythonoptimize
Apr 24, 2026
Merged

stefanv merged 3 commits into
scikit-image:mainfrom
blink1073:test-with-pythonoptimize

Conversation

@blink1073

@blink1073 blink1073 commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Continuation of #8092. Fixes merge conflicts and remaining failures.

SKIPPED [1] tests/skimage/measure/test_regionprops.py:1412: docstrings unavailable with PYTHONOPTIMIZE=2.

Checklist

Release note

For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.

...

@greptile-apps

greptile-apps Bot commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "Merge remote-tracking branch 'upstream/m..." | Re-trigger Greptile

@lagru
lagru self-requested a review April 21, 2026 19:33
@blink1073

Copy link
Copy Markdown
Contributor Author

@lagru I did the rebase

@stefanv
stefanv merged commit 3db3cfc into scikit-image:main Apr 24, 2026
22 checks passed
@stefanv stefanv added this to the 0.27 milestone Apr 24, 2026
@stefanv

stefanv commented Apr 24, 2026

Copy link
Copy Markdown
Member

Thanks, Steven!

matthew-brett added a commit that referenced this pull request Apr 27, 2026
* origin/main:
  Port tests for `features.canny` to skimage2 (#8126)
  Replace NumPy global RNG use in tests with local seeded RNGs (#8084)
  Disable tests using matplotlib on pyodide (#8082)
  Test with pythonoptimize (#8108)
  Add skimage2 porting decorator (#8114)
  Drop 3.13t builds from cibuildwheel configuration (#8127)
  Restore wording of AI policy (#8123)
blink1073 added a commit that referenced this pull request May 6, 2026
## Description

Continuation of #7756

Speed up test runs by using ccache and building once per Python version
on Linux.

### Before

<img width="1121" height="430" alt="image"
src="https://github.com/user-attachments/assets/5e438998-a637-4791-997a-af27d82e41ae"
/>

### After

<img width="1106" height="554" alt="image"
src="https://github.com/user-attachments/assets/8059402e-7871-46d5-bf0f-c16f77f9e40f"
/>

### Observations
- PYTHONOPTIMIZE is separately being handled in
#8108. We should block
on that fix (merged)
- Centralizing the build for MacOS does not make much sense, because
each variant is used once. Technically we could reuse the build for
Python 3.11 on Windows that doesn't seem worth the effort either.
- We can consider using ccache with
[pyodide](https://github.com/pyodide/pyodide-recipes/pull/20/changes),
MacOS (brew), and Windows
(https://github.com/hendrikmuhs/ccache-action), but that should also be
a different PR since this one is already invasive.

<!--
- Reference relevant issues or related pull requests with their URL /
#<number>.
- Use `pre-commit` to check and format code.
-->

## Checklist

<!-- Before pull requests can be merged, they should provide: -->

- A descriptive but concise pull request title
- [Docstrings for all
functions](https://github.com/numpy/numpydoc/blob/main/doc/example.py)
- [Unit
tests](https://scikit-image.org/docs/dev/development/contribute.html#testing)
- A gallery example in `./doc/examples` for new features
- [Contribution
guide](https://scikit-image.org/docs/dev/development/contribute.html) is
followed

## Release note

For maintainers and optionally contributors, please refer to the
[instructions](https://scikit-image.org/docs/stable/development/contribute.html#documenting-changes)
on how to document this PR for the release notes.

```release-note
...
```
@blink1073
blink1073 deleted the test-with-pythonoptimize branch August 18, 2026 10:38
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