Skip to content

Commit ca8653e

Browse files
committed
Drop support for click < 8
click 8.0 was released nearly 5 years ago [1]. We do not need to worry about older versions going forward. [1] https://pypi.org/project/click/8.0.0/ Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 59e906e commit ca8653e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
click>=6.0
1+
click>=8.0
22
requests>=2.0
33
tabulate>=0.8
44
arrow>=0.10

tests/test_patch.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import unittest
22
from unittest import mock
33

4-
import click
54
from click.testing import CliRunner as CLIRunner
6-
from packaging import version
75

86
from git_pw import patch
97

@@ -263,10 +261,7 @@ def test_update_with_invalid_state(
263261
result = runner.invoke(patch.update_cmd, ['123', '--state', 'bar'])
264262

265263
assert result.exit_code == 2, result
266-
if version.parse(click.__version__) >= version.Version('7.1'):
267-
assert "Invalid value for '--state'" in result.output, result
268-
else:
269-
assert 'Invalid value for "--state"' in result.output, result
264+
assert "Invalid value for '--state'" in result.output, result
270265

271266
@mock.patch('git_pw.api.index')
272267
def test_update_with_delegate(

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 4.6
3-
envlist = pep8,mypy,clean,py{39,310,311,312,313},report
3+
envlist = pep8,mypy,clean,py3,report
44

55
[testenv]
66
deps =

0 commit comments

Comments
 (0)