Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade cython #28

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading