diff --git a/Makefile b/Makefile index aa2d9af..845a20c 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ require: ## Check that prerequisites are installed. printf "\033[1m\033[31mERROR\033[0m: python3 not installed\n" >&2 ; \ exit 1; \ fi - @if ! python3 -c "import sys; sys.exit(sys.version_info < (3,6))"; then \ - printf "\033[1m\033[31mERROR\033[0m: python 3.6+ required\n" >&2 ; \ + @if ! python3 -c "import sys; sys.exit(sys.version_info < (3,8))"; then \ + printf "\033[1m\033[31mERROR\033[0m: python 3.8+ required\n" >&2 ; \ exit 1; \ fi @if ! command -v poetry > /dev/null; then \ diff --git a/jedi_language_server/__init__.py b/jedi_language_server/__init__.py index 3ae571c..ba6eaf9 100644 --- a/jedi_language_server/__init__.py +++ b/jedi_language_server/__init__.py @@ -1,9 +1,4 @@ """Jedi Language Server.""" -import sys - -if sys.version_info < (3, 8): - from importlib_metadata import version -else: - from importlib.metadata import version +from importlib.metadata import version __version__ = version("jedi-language-server")