Skip to content

Commit

Permalink
BUILD: Upgrade to Cython 3
Browse files Browse the repository at this point in the history
  • Loading branch information
zoj613 committed Nov 16, 2023
1 parent c6061ad commit bcb062f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion polyagamma/_polyagamma.pyx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# cython: language_level=3
# cython: boundscheck=False
# cython: wraparound=False
# cython: nonecheck=False
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cython==0.29.36
cython==3.0.*
numpy==1.26.0
pre-commit==3.4.0
pytest==7.4.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit bcb062f

Please sign in to comment.