Skip to content

Commit

Permalink
Merge pull request #157 from jhlegarreta/RelaxRequiredPackageVersions
Browse files Browse the repository at this point in the history
ENH: Relax the Python package version requirements
  • Loading branch information
ljod authored Oct 19, 2023
2 parents 5b1f894 + 6aeb445 commit b4a25ff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
requires: ['minimal', 'latest']

steps:
- name: Check out repository
Expand All @@ -24,6 +25,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Set min. dependencies
if: matrix.requires == 'minimal'
run: |
python -c "req = open('requirements.txt').read().replace(' >= ', ' == ') ; open('requirements.txt', 'w').write(req)"
python -c "req = open('setup.py').read().replace(' >= ', ' == ') ; open('setup.py', 'w').write(req)"
# - name: Cache pip
# uses: actions/cache@v2
# id: cache
Expand Down
26 changes: 13 additions & 13 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
joblib==1.1.*
matplotlib==3.6.*
nibabel==3.0.*
numpy==1.20.*;python_version=="3.8"
numpy==1.21.*;python_version=="3.9"
pandas==2.0.3
joblib>=1.1.0
matplotlib>=3.6.0,<3.8
nibabel>=3.0.0
numpy>=1.20.0,<1.21.0;python_version=="3.8"
numpy>=1.21.0;python_version=="3.9"
pandas<2.1.0
pytest
pytest_console_scripts
setuptools==44.0.*
scipy==1.4.*;python_version=="3.8"
scipy==1.5.*;python_version=="3.9"
statsmodels==0.10.*;python_version=="3.8"
statsmodels==0.13.*;python_version=="3.9"
vtk==9.1.*;python_version>="3.8" and python_version<="3.9"
vtk==9.2.*;python_version>="3.10"
scipy>=1.4.0,<1.11.0;python_version=="3.8"
scipy>=1.5.0;python_version=="3.9"
setuptools>=44.0.0
statsmodels>=0.10.0,<0.13.0;python_version=="3.8"
statsmodels>=0.13.0;python_version=="3.9"
vtk>=9.1.0,<9.2.0;python_version>="3.8" and python_version<="3.9"
vtk>=9.2.0;python_version>="3.10"
xlrd

0 comments on commit b4a25ff

Please sign in to comment.