Repository navigation
ctc-segmentation 1.7.5
This release makes ctc-segmentation work with NumPy 2. Version 1.7.4 was built against the NumPy 1.x ABI and failed to import under NumPy 2 with ImportError: numpy.core.multiarray failed to import.
pip install --upgrade ctc-segmentationThere are no changes to the segmentation algorithm or the API.
Fixes
- The package now imports and runs under NumPy 2, and still works with NumPy 1.x at run time (#41, #42).
- The PyPI release now matches the repository again: it was built from this tag (#41).
- Fixed installing with NumPy 1.x and Cython ≥ 3.1 ('ndarray' is not a type identifier, #37).
- Removed the setuptools deprecation warnings during install (setup_requires, tests_require; seen in #36).
Changes
- The build now requires numpy>=2.0 and Cython>=3.0. The compiled extension is compatible with NumPy 1.x and 2.x.
- Python ≥ 3.9 is now required (previously ≥ 3.6).
- Run-time requirement: numpy>=1.19.
- Test dependencies are now an extra: pip install "ctc-segmentation[test]".
- CI tests Python 3.9–3.14 with NumPy 2, plus jobs with NumPy 1.x at run time.
- CI also tests the installed, compiled extension (instead of compiling the .pyx on the fly), also tests the package with twin/sdist/wheel.
- Introduced Dependabot to keep GitHub Actions versions up to date.
- Makefile improvements
Thanks to
- @kazunaritakeichi for replacing oldest-supported-numpy in #33.
- @DiaAzul (#41) and @sw005320 (#42) for the detailed reports.
- @albertz for helping debug #37.
Full changelog: 69bd9b5...v1.7.5