diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7d59ce..5a98caa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: - name: Cythonize C-extensions run: | - python3 -m pip install --upgrade pip cython==0.29.* + python3 -m pip install --upgrade pip cython==3.0.* cythonize polyagamma/*.pyx - name: Build wheels @@ -53,7 +53,7 @@ jobs: - name: Build source distribution if: ${{ matrix.os == 'ubuntu-20.04' }} run: | - python3 -m pip install --upgrade pip cython==0.29.* build + python3 -m pip install --upgrade pip cython==3.0.* build cythonize polyagamma/*.pyx python -m pip install build python -m build --sdist diff --git a/polyagamma/_polyagamma.pyx b/polyagamma/_polyagamma.pyx index 4b2a6f1..e266205 100644 --- a/polyagamma/_polyagamma.pyx +++ b/polyagamma/_polyagamma.pyx @@ -1,4 +1,3 @@ -# cython: language_level=3 # cython: boundscheck=False # cython: wraparound=False # cython: nonecheck=False diff --git a/requirements-dev.txt b/requirements-dev.txt index 54975ce..3ec7f7c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -cython==0.29.36 +cython==3.0.* numpy==1.26.0 pre-commit==3.4.0 pytest==7.4.0 diff --git a/setup.py b/setup.py index fc1068e..a80c1ef 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ "src/pgm_density.c", ] -macros = [('NPY_NO_DEPRECATED_API', 0)] +macros = [('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')] if os.getenv("BUILD_WITH_COVERAGE", None): macros.append(('CYTHON_TRACE_NOGIL', 1))