From 173f24113596a79b38ac0a6ae37c5f2c7533d247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Wed, 30 Aug 2023 15:42:06 -0400 Subject: [PATCH] ENH: Fix `pandas` version to 2.0.3 (#145) * ENH: Fix `pandas` version to 2.0.3 Fix `pandas` version to 2.0.3, which is the last version known to be working. Fixes: ``` Searching for pandas>=0.19 Reading https://pypi.org/simple/pandas/ Downloading https://files.pythonhosted.org/packages/a9/ec/ e531733ff7f955e58ac45089cf72d085e587a731778b9dac1b82878815e9/ pandas-2.1.0rc0.tar.gz#sha256=e6967a82ee26997ab5ef52907064ca21eed5e51089dc2131a252a26d67d88b36 Best match: pandas 2.1.0rc0 Processing pandas-2.1.0rc0.tar.gz error: Couldn't find a setup script in /tmp/easy_install-xxw2q3r_/pandas-2.1.0rc0.tar.gz Error: Process completed with exit code 1. ``` raised for example in: https://github.com/SlicerDMRI/whitematteranalysis/actions/runs/5965246190/job/16182228792#step:5:464 * ENH: Allow the test, package GHA workflow to run on pull requests Allow the test, package GHA workflow to run on pull requests. --- .github/workflows/test_package.yaml | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_package.yaml b/.github/workflows/test_package.yaml index c59da150..9713563b 100644 --- a/.github/workflows/test_package.yaml +++ b/.github/workflows/test_package.yaml @@ -1,6 +1,6 @@ name: test, package -on: [push] +on: [push, pull_request] jobs: build: diff --git a/setup.py b/setup.py index d9ea3fb4..ceb91ddb 100755 --- a/setup.py +++ b/setup.py @@ -90,7 +90,8 @@ def build_extensions(self): setup_requires = setup_requires, install_requires = setup_requires + ['setuptools==44.0.*', 'scipy==1.4.*', 'vtk==9.1.*', - 'joblib==1.1.*', 'statsmodels==0.10.*', 'xlrd', 'matplotlib==3.6.*', 'nibabel==3.0.*'], + 'joblib==1.1.*', 'statsmodels==0.10.*', 'xlrd', 'matplotlib==3.6.*', 'nibabel==3.0.*', + 'pandas==2.0.3'], cmdclass=LazyCommandClass(),