From 4030377f1a187bf77ea505143b309a1e3b3702df Mon Sep 17 00:00:00 2001 From: huangzhengjie Date: Mon, 11 Dec 2023 12:09:07 +0800 Subject: [PATCH] support py38-py310 --- .github/workflows/manully_test_PYPI.yml | 4 ++-- requirements.txt | 4 ++-- setup.py | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/manully_test_PYPI.yml b/.github/workflows/manully_test_PYPI.yml index c3f934bd..bee729b2 100644 --- a/.github/workflows/manully_test_PYPI.yml +++ b/.github/workflows/manully_test_PYPI.yml @@ -11,7 +11,7 @@ jobs: matrix: os: [ 'ubuntu-latest', 'macos-latest' ] arch: [ 'x86_64' ] - cibw_python: [ 'cp36*', 'cp37*', 'cp38*' ] + cibw_python: [ 'cp38*', 'cp39*', 'cp310*' ] manylinux: [ 'manylinux2014', 'manylinux1' ] steps: - uses: actions/checkout@v2 @@ -36,7 +36,7 @@ jobs: CIBW_BUILD: ${{ matrix.cibw_python }} CIBW_ARCHS: ${{ matrix.arch }} CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }} - CIBW_BEFORE_BUILD: "pip install -r requirements.txt cython>=0.29.21 numpy==1.19.0" + CIBW_BEFORE_BUILD: "pip install -r requirements.txt" CIBW_SKIP: "*-musllinux_*" CIBW_BEFORE_ALL_LINUX: > yum -y update && diff --git a/requirements.txt b/requirements.txt index d22cd253..165f8c71 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -numpy>=1.16.4 -cython>=0.25.2 +numpy==1.23.5 +cython==3.0.6 diff --git a/setup.py b/setup.py index 938e7536..921955cf 100755 --- a/setup.py +++ b/setup.py @@ -136,7 +136,8 @@ def get_package_data(path): package_data=package_data, setup_requires=[ 'setuptools>=18.0', - 'numpy>=1.16.4', + 'numpy==1.23.5', + 'cython==3.0.6', ], install_requires=requirements, cmdclass={'build_ext': CustomBuildExt},