From 832095c864faa00d9ddbf488094a113d15dbb7fc Mon Sep 17 00:00:00 2001 From: chidiugonna Date: Tue, 9 Jan 2024 21:11:19 -0700 Subject: [PATCH] Make python 3.9 the minimal version --- deployment/README.md | 24 ++++++++++++------------ pyproject.toml | 24 ++++++++++++------------ src/panpipelines/version.py | 4 ++-- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/deployment/README.md b/deployment/README.md index 29dffbe..4b0ad73 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -7,7 +7,7 @@ The most convenient approach to deploying these pipelines in the U of A's HPC Cl ``` -module load python/3.8/3.8.2 +module load python/3.11/3.11.4 pip install --user virtualenv ``` @@ -21,7 +21,7 @@ virtualenv -p python3 ./panvenv Activate environment and Install the latest version of PAN pipelines using `pip` ``` -module load python/3.8/3.8.2 +module load python/3.11/3.11.4 source /xdisk/ryant/[USERNAME]/venvs/panvenv/bin/activate pip install -U panpipelines ``` @@ -89,14 +89,14 @@ Most problems can be avoided by creating a clean new python environment using `c --- # General HPC Deployment ## Prepare Virtual Environment -It is advisable to create a virtual python environment to run the PAN pipelines An example using a `conda` virtual environment is shown below however `virtualenv` as demonstrated above could also be used. It is recommended to use a python version of `3.8.2` or greater. +It is advisable to create a virtual python environment to run the PAN pipelines An example using a `conda` virtual environment is shown below however `virtualenv` as demonstrated above could also be used. It is recommended to use a python version of `3.9` or greater. ``` -conda create -n pandev python=3.8.2 +conda create -n pandev python=3.11.4 ``` if you would like to create your virtual environment in a specific folder location then use the `-p` prefix parameter instead of the `-n` name parameter as follows: ``` -conda create -p /path/to/pandev python=3.8.2 +conda create -p /path/to/pandev python=3.11.4 ``` With `conda` the python environment can be instantiated as follows depending on if the environment was created with the `-n` or the `p` parameter: @@ -126,16 +126,16 @@ With this option you will need to manually install the required python packages ``` pip install nipype==1.8.6 -pip install numpy==1.24.4 -pip install nibabel==5.1.0 +pip install numpy==1.26.3 +pip install nibabel==5.2.0 pip install nilearn==0.10.2 -pip install pandas==2.0.3 -pip install xnat==0.5.2 -pip install pydicom==2.4.3 +pip install pandas==2.1.4 +pip install xnat==0.5.3 +pip install pydicom==2.4.4 pip install templateflow==23.1.0 pip install nitransforms==23.0.1 -pip install pybids==0.16.3 -pip install scipy==1.10.1 +pip install pybids==0.16.4 +pip install scipy==1.11.4 ``` diff --git a/pyproject.toml b/pyproject.toml index fc1b8ec..f900335 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ authors = [ description = "MRI Processing Pipelines for PAN Healthy Minds for Life Study" license = { file = "LICENSE" } readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", @@ -24,17 +24,17 @@ classifiers = [ ] dependencies = [ - "nipype>=1.8.6", - "numpy>=1.24.4", - "nibabel>=5.1.0", - "nilearn>=0.10.2", - "pandas>=2.0.3", - "xnat>=0.5.2", - "pydicom>=2.4.3", - "templateflow>=23.1.0", - "nitransforms>=23.0.1", - "pybids>=0.16.3", - "scipy>=1.10.1" + "nipype==1.8.6", + "numpy==1.26.3", + "nibabel==5.2.0", + "nilearn==0.10.2", + "pandas==2.1.4", + "xnat==0.5.3", + "pydicom==2.4.4", + "templateflow==23.1.0", + "nitransforms==23.0.1", + "pybids==0.16.4", + "scipy==1.11.4" ] [project.urls] diff --git a/src/panpipelines/version.py b/src/panpipelines/version.py index c7d4eac..9230a2e 100644 --- a/src/panpipelines/version.py +++ b/src/panpipelines/version.py @@ -12,5 +12,5 @@ __version_tuple__: VERSION_TUPLE version_tuple: VERSION_TUPLE -__version__ = version = '0.9.0' -__version_tuple__ = version_tuple = (0, 9, 0) +__version__ = version = '0.9.1' +__version_tuple__ = version_tuple = (0, 9, 1)