From 7015168ec85d6dcac765194ab156ff3645a24b5d Mon Sep 17 00:00:00 2001 From: James Kent Date: Mon, 28 Apr 2025 12:22:48 -0500 Subject: [PATCH 1/3] debug python 3.9 --- .github/workflows/testing.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9080614..8f90cc6 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -62,6 +62,17 @@ jobs: - name: "Install PyMARE" shell: bash {0} run: pip install -e .[tests,stan] + - name: "Debug info for Python 3.9" + if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest' }} + run: | + python -c "import numpy; print(f'Numpy version: {numpy.__version__}')" + python -c "import sys; print(f'Python path: {sys.path}')" + pip freeze + pip check + - name: Setup tmate session for Python 3.9 debugging + if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest' }} + uses: mxschmitt/action-tmate@v3 + timeout-minutes: 45 - name: "Run tests" shell: bash {0} run: python -m pytest --pyargs pymare --cov=pymare From dda63c8b150874025deb6b3135164754b683766b Mon Sep 17 00:00:00 2001 From: James Kent Date: Mon, 28 Apr 2025 12:32:21 -0500 Subject: [PATCH 2/3] Revert "debug python 3.9" This reverts commit 7015168ec85d6dcac765194ab156ff3645a24b5d. --- .github/workflows/testing.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 8f90cc6..9080614 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -62,17 +62,6 @@ jobs: - name: "Install PyMARE" shell: bash {0} run: pip install -e .[tests,stan] - - name: "Debug info for Python 3.9" - if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest' }} - run: | - python -c "import numpy; print(f'Numpy version: {numpy.__version__}')" - python -c "import sys; print(f'Python path: {sys.path}')" - pip freeze - pip check - - name: Setup tmate session for Python 3.9 debugging - if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest' }} - uses: mxschmitt/action-tmate@v3 - timeout-minutes: 45 - name: "Run tests" shell: bash {0} run: python -m pytest --pyargs pymare --cov=pymare From 544c7b9443bcc7a09eb086991f45130d274b5280 Mon Sep 17 00:00:00 2001 From: James Kent Date: Mon, 28 Apr 2025 12:32:43 -0500 Subject: [PATCH 3/3] change version of scipy, depending --- setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 0df3a1d..1a24d12 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,7 +27,8 @@ install_requires = numpy>=1.8.0,<2.0; python_version == "3.9" and extra == 'stan' numpy>=1.8.0; python_version != "3.9" or extra != 'stan' pandas - scipy + scipy<1.13; python_version == "3.9" and extra == 'stan' + scipy; python_version != "3.9" or extra != 'stan' sympy wrapt packages = find: