From d7c58b7252d0014701174d728066c8d4efc966c8 Mon Sep 17 00:00:00 2001 From: "J. Derek Tucker" Date: Tue, 3 Sep 2024 15:53:54 -0600 Subject: [PATCH] fix for 3.12 --- .github/workflows/python-package.yml | 3 ++- pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ba99c0f..b1cbffe 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -50,7 +50,8 @@ jobs: - if: runner.os == 'Linux' name: Test with pytest run: | - python setup.py pytest --addopts "test --cov fdasrsf" + pip install -e . + pytest --cov - if: runner.os == 'Windows' name: Build run: | diff --git a/pyproject.toml b/pyproject.toml index ec476aa..d29fc00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,12 +77,12 @@ select = "*-win_amd64" environment = { PKG_CONFIG_PATH = "c:/opt/64/lib/pkgconfig" } [build-system] -requires = ["setuptools<72.0.0", "wheel", "cffi>=1.0.0", "Cython", "findblas", "numpy"] # PEP 518 - what is required to build +requires = ["setuptools<=73.0.1", "wheel", "cffi>=1.0.0", "Cython", "findblas", "numpy"] # PEP 518 - what is required to build build-backend = "setuptools.build_meta" [tool.pytest.ini_options] minversion = "6.0" -addopts = "-ra -q" +addopts = "--import-mode=importlib" testpaths = [ "tests", ]