Skip to content

Commit

Permalink
Configuring to support Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaloras committed May 14, 2023
1 parent e539437 commit efc1f76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bashhub/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import platform

__version__ = '2.3.1'
__version__ = '2.4.0-dev'

version_str = 'Bashhub {0} (python {1})'.format(__version__, platform.python_version())
3 changes: 2 additions & 1 deletion install-bashhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi

PYTHON_VERSION_COMMAND='
import sys
if (3, 5, 0) < sys.version_info < (3, 11, 0):
if (3, 5, 0) < sys.version_info < (3, 12, 0):
sys.exit(0)
elif (2, 7, 8) < sys.version_info < (3,0):
sys.exit(0)
Expand All @@ -49,6 +49,7 @@ else:
PYTHON_VERSION_ARRAY=(
"/usr/bin/python3"
"python3"
"python3.11"
"python3.10"
"python3.9"
"python3.8"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from setuptools import setup, find_packages
import install_bashhub
import sys
from bashhub.version import __version__ as version

exec (open('bashhub/version.py').read())

tests_require = ['pytest>=3.3.1']

setup(name='bashhub',
version='__version__',
version=version,
description='Bashhub.com python client',
url='https://github.com/rcaloras/bashhub-client',
author='Ryan Caloras',
Expand Down

0 comments on commit efc1f76

Please sign in to comment.