Skip to content

Commit 534af31

Browse files
authored
Merge pull request jxmorris12#73 from jxmorris12/update-6.0
update to v6.0
2 parents 1ac7736 + d8a760e commit 534af31

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-20.04
1616
strategy:
1717
matrix:
1818
python-version: [3.6, 3.7, 3.8]

language_tool_python/download_lt.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
BASE_URL = os.environ.get('LTP_DOWNLOAD_HOST', 'https://www.languagetool.org/download/')
2929
FILENAME = 'LanguageTool-{version}.zip'
3030

31-
LATEST_VERSION = '5.7'
31+
LATEST_VERSION = '6.0'
3232

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

7774
output = subprocess.check_output([java_path, '-version'],
@@ -145,7 +142,7 @@ def download_lt():
145142
version = LATEST_VERSION
146143
filename = FILENAME.format(version=version)
147144
language_tool_download_url = urljoin(BASE_URL, filename)
148-
dirname = os.path.splitext(filename)[0]
145+
dirname, _ = os.path.splitext(filename)
149146
extract_path = os.path.join(download_folder, dirname)
150147

151148
if extract_path in old_path_list:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='language_tool_python',
10-
version='2.7.1',
10+
version='2.7.2',
1111
description='Checks grammar using LanguageTool.',
1212
long_description_content_type='text/markdown',
1313
long_description=long_description,

0 commit comments

Comments
 (0)