Skip to content

Commit

Permalink
Drop support for click 7.x, Sphinx < 5.x
Browse files Browse the repository at this point in the history
click 8.0 and Sphinx 4.0 were both released approximately 3 years ago.
Anything older is too old to care about now.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed May 15, 2024
1 parent f0bf6e9 commit f4ffef0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
7 changes: 7 additions & 0 deletions releasenotes/notes/drop-click-7-cbdaccc6a64029d0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
upgrade:
- |
click 7.x is no longer supported. The minimum click version now supported
is 8.0.0.
- |
sphinx < 4.0.0 is no longer supported.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx>=2.0
click>=7.0
sphinx>=4.0
click>=8.0
docutils
3 changes: 0 additions & 3 deletions tests/test_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@ def foobar(bar):
'\n'.join(output),
)

@unittest.skipIf(
CLICK_VERSION < (8, 0), 'Click < 8.0.0 does not support this feature'
)
def test_show_default(self):
"""Validate formatting of show_default via context_settings."""

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 2.0
envlist = py{38,39}-click{7,8,8-async},py{310,311,312}-click{8,8-async},style,docs
envlist = py{38,39,310,311,312}-click{8,8-async},style,docs

[testenv]
setenv =
Expand All @@ -12,7 +12,6 @@ deps =
pytest-cov
coverage
defusedxml
click7: click>=7.0,<8.0
click8: click>=8.0,<9.0
click8-async: asyncclick>=8.0,<9.0
defusedxml
Expand All @@ -27,6 +26,7 @@ commands =
coverage {posargs:html}

[testenv:style]
skip_install = true
deps =
pre-commit
commands =
Expand Down

0 comments on commit f4ffef0

Please sign in to comment.