Skip to content

Commit

Permalink
Update changelog and requirements for Cython 3.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Nov 6, 2024
1 parent 3bb8448 commit bde3ba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Supported versions of Python have been updated (drop support for Python 3.8, add
* PlotPy < 2.7.0: Python 3.8, 3.9, 3.10, 3.11 and 3.12
* PlotPy >= 2.7.0: Python 3.9, 3.10, 3.11, 3.12 and 3.13

Other dependencies have been updated:

* Updated versions to those available at the time of the release of the oldest supported Python version (3.9)
* Exception: Cython 3.0 is required for Python 3.13

💥 New features / Enhancements:

* Added `AnnotatedPolygon` annotation to items
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Coverage
Cython
Cython>=3.0
NumPy>=1.17
scikit-image>=0.18
Pillow
Expand Down
11 changes: 0 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import sys

import numpy
from Cython import __version__ as __cython_version__
from Cython.Compiler import Main
from setuptools import Distribution, Extension, setup

Expand Down Expand Up @@ -39,16 +38,6 @@ def compile_cython_extensions():

MACROS_CYTHON = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
CFLAGS_CYTHON = []
# -------------------------------------------------------------------------------------
# TODO: When dropping support for Cython < 3.0, we can remove the following lines.
# In the meantime, we hide the deprecation warnings when building the package.
if tuple(map(int, __cython_version__.split(".")[:2])) < (3, 0):
# hide deprecation warnings
MACROS_CYTHON = []
if not is_msvc():
CFLAGS_CYTHON = ["-Wno-cpp"]
# -------------------------------------------------------------------------------------

MACROS_CPP = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
CFLAGS_CPP = ["/EHsc", "/fp:fast"] if is_msvc() else ["-Wall"]
if platform.system() == "Darwin":
Expand Down

0 comments on commit bde3ba1

Please sign in to comment.