Skip to content

Commit

Permalink
ci: fix unittest (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Jan 12, 2022
1 parent 152d761 commit 1b9479e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: publish

on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Build a source tarball
run: python setup.py sdist
- name: Build wheels
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_x86_64
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'cython'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: test

on:
push:
Expand All @@ -14,6 +14,7 @@ jobs:
pyver: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -25,4 +26,5 @@ jobs:
- name: Run unittest
run: |
tox -e ${{ matrix.pyver }}
version=${{ matrix.pyver }}
tox -e py${version/./}
46 changes: 31 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from glob import glob
from setuptools import setup, Extension

version = '0.3.4'
version = "0.3.4"


def readme():
with open('README.rst') as f:
with open("README.rst") as f:
return f.read()


Expand All @@ -18,22 +18,38 @@ def readme():
version=version,
description="Make C module compatible with gevent at runtime.",
long_description=readme(),
platforms=['Linux'],
platforms=["Linux"],
classifiers=[
'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux', 'Programming Language :: Cython', 'Programming Language :: C',
'Topic :: Software Development :: Libraries'
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Python :: 2.7",
"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 :: Implementation :: CPython",
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Libraries",
],
author="Zhongbo Tian",
author_email="tianzhongbo@douban.com",
url="https://github.com/douban/greenify",
download_url='https://github.com/douban/greenify/archive/%s.tar.gz' % version,
setup_requires=['Cython >= 0.18'],
install_requires=['gevent'],
ext_modules=[Extension(
'greenify',
sources,
include_dirs=include_dirs,
libraries=libraries,
)],
download_url="https://github.com/douban/greenify/archive/%s.tar.gz" % version,
setup_requires=["Cython >= 0.18"],
install_requires=["gevent"],
ext_modules=[
Extension(
"greenify",
sources,
include_dirs=include_dirs,
libraries=libraries,
)
],
)

0 comments on commit 1b9479e

Please sign in to comment.