Skip to content

Commit cdd6532

Browse files
committed
BUILD: Upgrade to Cython 3
1 parent f1a7a2a commit cdd6532

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Cythonize C-extensions
3636
run: |
37-
python3 -m pip install --upgrade pip cython==0.29.*
37+
python3 -m pip install --upgrade pip cython==3.0.*
3838
cythonize polyagamma/*.pyx
3939
4040
- name: Build wheels
@@ -53,7 +53,7 @@ jobs:
5353
- name: Build source distribution
5454
if: ${{ matrix.os == 'ubuntu-20.04' }}
5555
run: |
56-
python3 -m pip install --upgrade pip cython==0.29.* build
56+
python3 -m pip install --upgrade pip cython==3.0.* build
5757
cythonize polyagamma/*.pyx
5858
python -m pip install build
5959
python -m build --sdist

polyagamma/_polyagamma.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# cython: language_level=3
21
# cython: boundscheck=False
32
# cython: wraparound=False
43
# cython: nonecheck=False

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cython==0.29.36
1+
cython==3.0.*
22
numpy==1.26.0
33
pre-commit==3.4.0
44
pytest==7.4.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"src/pgm_density.c",
1717
]
1818

19-
macros = [('NPY_NO_DEPRECATED_API', 0)]
19+
macros = [('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
2020
if os.getenv("BUILD_WITH_COVERAGE", None):
2121
macros.append(('CYTHON_TRACE_NOGIL', 1))
2222

0 commit comments

Comments
 (0)