Browse Source

pipeline: test against pandas v0.25.* & v1.*

https://github.com/fphammerle/freesurfer-stats/blob/b475e9f103a22e19072bdfd305db40059311681d/.travis.yml
Fabian Peter Hammerle 3 years ago
parent
commit
e3a3803706
3 changed files with 9 additions and 5 deletions
  1. 6 0
      .travis.yml
  2. 1 0
      CHANGELOG.md
  3. 2 5
      setup.py

+ 6 - 0
.travis.yml

@@ -13,6 +13,8 @@ dist: xenial
 env:
 # https://pypi.org/project/pandas/#history
 - PANDAS_VERSION=
+- PANDAS_VERSION=1.*
+- PANDAS_VERSION=0.25.*
 - PANDAS_VERSION=0.24.*
 - PANDAS_VERSION=0.23.*
 - PANDAS_VERSION=0.22.*
@@ -21,6 +23,10 @@ env:
 # https://travis-ci.org/fphammerle/freesurfer-volume-reader/builds/525556257
 matrix:
   exclude:
+  # https://travis-ci.org/github/fphammerle/freesurfer-stats/jobs/683777317#L208
+  # https://github.com/pandas-dev/pandas/commit/18efcb27361478daa3118079ecb166c733691ecb#diff-2eeaed663bd0d25b7e608891384b7298R814
+  - python: 3.5
+    env: PANDAS_VERSION=1.*
   - python: 3.7
     env: PANDAS_VERSION=0.21.*
   - python: 3.7

+ 1 - 0
CHANGELOG.md

@@ -6,4 +6,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 ### Added
+- support `pandas` `v1.*`
 - package metadata: added `python3.8` classifier

+ 2 - 5
setup.py

@@ -47,11 +47,8 @@ setuptools.setup(
         ],
     },
     install_requires=[
-        # pandas.DataFrame.drop(columns=[...], ...)
-        'pandas>=0.21.0,<1',
-    ],
-    setup_requires=[
-        'setuptools_scm',
+        # >=0.21.0 pandas.DataFrame.drop(columns=[...], ...)
+        "pandas>=0.21.0,<2"
     ],
     tests_require=[
         'pylint>=2.3.0,<3',