Skip to content

Commit

Permalink
Merge pull request #73 from jxmorris12/update-6.0
Browse files Browse the repository at this point in the history
update to v6.0
  • Loading branch information
jxmorris12 committed Mar 11, 2024
2 parents 1ac7736 + d8a760e commit 534af31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
Expand Down
7 changes: 2 additions & 5 deletions language_tool_python/download_lt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
BASE_URL = os.environ.get('LTP_DOWNLOAD_HOST', 'https://www.languagetool.org/download/')
FILENAME = 'LanguageTool-{version}.zip'

LATEST_VERSION = '5.7'
LATEST_VERSION = '6.0'

JAVA_VERSION_REGEX = re.compile(
r'^(?:java|openjdk) version "(?P<major1>\d+)(|\.(?P<major2>\d+)\.[^"]+)"',
Expand Down Expand Up @@ -69,9 +69,6 @@ def confirm_java_compatibility():
""" Confirms Java major version >= 8. """
java_path = find_executable('java')
if not java_path:
# Just ignore this and assume an old version of Java. It might not be
# found because of a PATHEXT-related issue
# (https://bugs.python.org/issue2200).
raise ModuleNotFoundError('No java install detected. Please install java to use language-tool-python.')

output = subprocess.check_output([java_path, '-version'],
Expand Down Expand Up @@ -145,7 +142,7 @@ def download_lt():
version = LATEST_VERSION
filename = FILENAME.format(version=version)
language_tool_download_url = urljoin(BASE_URL, filename)
dirname = os.path.splitext(filename)[0]
dirname, _ = os.path.splitext(filename)
extract_path = os.path.join(download_folder, dirname)

if extract_path in old_path_list:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='language_tool_python',
version='2.7.1',
version='2.7.2',
description='Checks grammar using LanguageTool.',
long_description_content_type='text/markdown',
long_description=long_description,
Expand Down

0 comments on commit 534af31

Please sign in to comment.