Skip to content

Commit bde3ba1

Browse files
committed
Update changelog and requirements for Cython 3.0 support
1 parent 3bb8448 commit bde3ba1

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Supported versions of Python have been updated (drop support for Python 3.8, add
77
* PlotPy < 2.7.0: Python 3.8, 3.9, 3.10, 3.11 and 3.12
88
* PlotPy >= 2.7.0: Python 3.9, 3.10, 3.11, 3.12 and 3.13
99

10+
Other dependencies have been updated:
11+
12+
* Updated versions to those available at the time of the release of the oldest supported Python version (3.9)
13+
* Exception: Cython 3.0 is required for Python 3.13
14+
1015
💥 New features / Enhancements:
1116

1217
* Added `AnnotatedPolygon` annotation to items

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Coverage
2-
Cython
2+
Cython>=3.0
33
NumPy>=1.17
44
scikit-image>=0.18
55
Pillow

setup.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import sys
77

88
import numpy
9-
from Cython import __version__ as __cython_version__
109
from Cython.Compiler import Main
1110
from setuptools import Distribution, Extension, setup
1211

@@ -39,16 +38,6 @@ def compile_cython_extensions():
3938

4039
MACROS_CYTHON = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
4140
CFLAGS_CYTHON = []
42-
# -------------------------------------------------------------------------------------
43-
# TODO: When dropping support for Cython < 3.0, we can remove the following lines.
44-
# In the meantime, we hide the deprecation warnings when building the package.
45-
if tuple(map(int, __cython_version__.split(".")[:2])) < (3, 0):
46-
# hide deprecation warnings
47-
MACROS_CYTHON = []
48-
if not is_msvc():
49-
CFLAGS_CYTHON = ["-Wno-cpp"]
50-
# -------------------------------------------------------------------------------------
51-
5241
MACROS_CPP = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
5342
CFLAGS_CPP = ["/EHsc", "/fp:fast"] if is_msvc() else ["-Wall"]
5443
if platform.system() == "Darwin":

0 commit comments

Comments
 (0)