Skip to content

Commit

Permalink
#PSYNEU-140 - Check for python 3.7 to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartin committed Sep 20, 2024
1 parent 0224809 commit 8915a64
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
Binary file removed package/dist/psyneulinkviewer-0.4.0.tar.gz
Binary file not shown.
Binary file added package/dist/psyneulinkviewer-0.4.3.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package/psyneulinkviewer.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: psyneulinkviewer
Version: 0.4.0
Version: 0.4.3
Home-page: https://github.com/metacell/psyneulinkviewer
Author: metacell
Author-email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion package/psyneulinkviewer/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def shell_source(script):
def install_conda():
import wget
if platform.system() == 'Linux':
bash_file = wget.download(configuration.linux_conda_bash, out="tmp")
bash_file = wget.download(configuration.linux_conda_bash)
elif platform.system() == 'Darwin':
bash_file = wget.download(configuration.mac_conda_bash)

Expand Down
12 changes: 8 additions & 4 deletions package/psyneulinkviewer/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ def check_node_installation():
logging.error("Exiting, node must be installed to continue...")
sys.exit()
from packaging.version import Version
if Version(node_version) > Version(configuration.node_required_version):
logging.info("Node version exists and valid, %s", node_version)
else:
if node_version is None:
logging.error("Node version not up to date, update required")
install_node()
install_node()
else:
if Version(node_version) > Version(configuration.node_required_version):
logging.info("Node version exists and valid, %s", node_version)
else:
logging.error("Node version not up to date, update required")
install_node()
4 changes: 2 additions & 2 deletions package/psyneulinkviewer/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def check_os():
logging.info("OS version supported")

def check_python():
if not sys.version_info.major == 3 and not sys.version_info.minor == 7 :
logging.error('Python version not supported, 3.11 is required. %f' , sys.version_info)
if not (3, 7) <= sys.version_info < (3, 12):
logging.error('Python version not supported, python 3.7 to 3.11 is required. %f' , sys.version_info)
sys.exit('Python version not supported, 3.11 is required.')
else:
logging.info("Python version is supported")
Expand Down
2 changes: 1 addition & 1 deletion package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(self):

setup(
name="psyneulinkviewer",
version="0.4.0",
version="0.4.3",
url='https://github.com/metacell/psyneulinkviewer',
author='metacell',
author_email='[email protected]',
Expand Down

0 comments on commit 8915a64

Please sign in to comment.