Skip to content

Commit

Permalink
upgrade cython (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexdene authored Oct 14, 2024
1 parent 9226ba2 commit 1130b33
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install 'Cython<3' 'tox<4'
pip install 'Cython' 'tox<4'
- name: Run unittest
run: |
Expand Down
2 changes: 1 addition & 1 deletion greenify.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cdef extern from "hook_greenify.h":

void* greenify_patch_lib(const char* library_filename, greenified_function_t fn)

cdef int wait_gevent(greenify_watcher* watchers, int nwatchers, int timeout_in_ms) with gil:
cdef int wait_gevent(greenify_watcher* watchers, int nwatchers, int timeout_in_ms) noexcept with gil:
cdef int fd, event
cdef float timeout_in_s
cdef int i
Expand Down
2 changes: 1 addition & 1 deletion req.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cython >= 0.18, < 3
cython
gevent
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from glob import glob
from setuptools import setup, Extension

version = "0.4.1"
version = "0.4.2"


def readme():
Expand Down Expand Up @@ -41,7 +41,7 @@ def readme():
author_email="[email protected]",
url="https://github.com/douban/greenify",
download_url="https://github.com/douban/greenify/archive/%s.tar.gz" % version,
setup_requires=["Cython >= 0.18, < 3"],
setup_requires=["Cython"],
install_requires=["gevent"],
ext_modules=[
Extension(
Expand Down

0 comments on commit 1130b33

Please sign in to comment.