diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 1a86ab9..1809a36 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index ac4a016..f632e85 100644 --- a/setup.py +++ b/setup.py @@ -43,8 +43,6 @@ def get_compiler_flags(): def compile_cython_extensions(): """Compile Cython extensions""" - import Cython - raise RuntimeError(f"Cython version: {Cython.__version__}") for fname in os.listdir(SRCPATH): if osp.splitext(fname)[1] == ".pyx": Main.compile(osp.join(SRCPATH, fname), language_level=2) @@ -57,8 +55,7 @@ def compile_cython_extensions(): # ------------------------------------------------------------------------------------- # TODO: When dropping support for Cython < 3.0, we can remove the following line # and uncomment the next one. -# In the meantime, we should not be worried about the deprecation warnings when -# building the package. +# In the meantime, we hide the deprecation warnings when building the package. DEFINE_MACROS_CYTHON = [] CFLAGS_CYTHON = ["-Wno-cpp"] # DEFINE_MACROS_CYTHON = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]