diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62561b9..3673c6e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish +name: publish on: push: @@ -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' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3778b8b..e50c5ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Test +name: test on: push: @@ -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: @@ -25,4 +26,5 @@ jobs: - name: Run unittest run: | - tox -e ${{ matrix.pyver }} + version=${{ matrix.pyver }} + tox -e py${version/./} diff --git a/setup.py b/setup.py index 630573e..945d20b 100644 --- a/setup.py +++ b/setup.py @@ -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() @@ -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, + ) + ], )