Skip to content

Commit

Permalink
Merge pull request #290 from dimbleby/python-3.8-missed-things
Browse files Browse the repository at this point in the history
python >= 3.8 is required
  • Loading branch information
pappasam authored Oct 28, 2023
2 parents 820becb + 9b664a7 commit 55a8a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
7 changes: 1 addition & 6 deletions jedi_language_server/__init__.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 55a8a51

Please sign in to comment.