Skip to content

Commit

Permalink
fix unittest (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexdene authored Sep 18, 2023
1 parent d426667 commit 9226ba2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Build wheels
uses: RalfG/[email protected]_x86_64
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
build-requirements: 'cython'
- name: Clean linux_x86_64.whl
run: rm dist/*-linux_x86_64.whl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pyver: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10"]
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install Cython tox
pip install 'Cython<3' 'tox<4'
- name: Run unittest
run: |
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
cython >= 0.18, < 3
gevent
6 changes: 3 additions & 3 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.0"
version = "0.4.1"


def readme():
Expand All @@ -25,11 +25,11 @@ def readme():
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
Expand All @@ -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"],
setup_requires=["Cython >= 0.18, < 3"],
install_requires=["gevent"],
ext_modules=[
Extension(
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27, py35, py36, py37, py38, py39, py310
envlist = py37, py38, py39, py310, py311

[testenv]
passenv = CC LD
Expand Down

0 comments on commit 9226ba2

Please sign in to comment.