Skip to content

Commit

Permalink
#PSYNEU-140 - Update version after python check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartin committed Sep 23, 2024
1 parent c6d7430 commit 261fe62
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
Binary file removed package/dist/psyneulinkviewer-0.4.5.tar.gz
Binary file not shown.
Binary file added package/dist/psyneulinkviewer-0.4.6.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.5
Version: 0.4.6
Home-page: https://github.com/metacell/psyneulinkviewer
Author: metacell
Author-email: [email protected]
Expand Down
13 changes: 8 additions & 5 deletions package/psyneulinkviewer/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)

in_conda = 'CONDA_PREFIX' in os.environ

def check_os():
if os.name == 'nt':
sys.exit('Windows is not supported')
else:
logging.info("OS version supported")

def check_python():
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")
if in_conda:
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")

def check_graphviz():
logging.info(configuration.graphviz +" is not installed, installing")
Expand Down
2 changes: 1 addition & 1 deletion package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(self):

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

0 comments on commit 261fe62

Please sign in to comment.