Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
python: ['3.11', '3.12', '3.13', '3.14', '3.15']
steps:
- name: Checkout source code
uses: actions/checkout@v7
Expand Down
11 changes: 4 additions & 7 deletions click_man/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

from .man import ManPage

CLICK_VERSION = tuple(int(x) for x in click.__version__.split('.')[:2])


def get_short_help_str(command, limit=45):
"""
Expand Down Expand Up @@ -98,11 +96,10 @@ def write_man_pages(

commands = getattr(cli, 'commands', {})
for name, command in commands.items():
if CLICK_VERSION >= (7, 0):
# Since Click 7.0, we have been able to mark commands as hidden
if command.hidden:
# Do not write a man page for a hidden command
continue
# Since Click 7.0, we have been able to mark commands as hidden
if command.hidden:
# Do not write a man page for a hidden command
continue

write_man_pages(
name,
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ maintainers = [
]
description = "Generate man pages for click based CLI applications"
readme = {file = "README.md", content-type="text/markdown"}
requires-python = ">=3.9"
requires-python = ">=3.11"
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -25,10 +25,16 @@ classifiers = [
"Topic :: Documentation",
]
dependencies = [
"click",
"click>=8.0.0",
]
dynamic = ["version"]

[dependency-groups]
tests = [
"pytest",
"pytest-cov",
]

[project.scripts]
click-man = "click_man.shell:cli"

Expand Down
3 changes: 0 additions & 3 deletions requirements-dev.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
# and then run "tox" from this directory.

[tox]
minversion = 4.4
envlist = lint,py{39,310,311,312,313}
minversion = 4.22.0
envlist = lint,py{311,312,313,314,315}

[testenv]
description =
Run unit tests.
deps =
pytest
pytest-cov
dependency_groups =
tests
commands =
pytest -Wall --cov=click_man --cov-report term-missing {posargs}

Expand Down
Loading