Skip to content

Commit de307d4

Browse files
Prepare release (#85)
* Prepare release * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 7d6617d commit de307d4

File tree

7 files changed

+25
-29
lines changed

7 files changed

+25
-29
lines changed

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
git diff --color --exit-code
2727
- name: Apply automatic fixes using pre-commit-ci-lite
2828
if: failure() && github.event_name == 'pull_request'
29-
uses: pre-commit-ci/lite-action@v1.0.1
29+
uses: pre-commit-ci/lite-action@v1.1.0

.github/workflows/ci.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,9 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
include:
16-
- python: '^3.12'
17-
os: ubuntu-latest
18-
- python: '3.12'
19-
os: macos-latest
20-
- python: '3.11'
21-
os: windows-latest
22-
- python: '3.10'
23-
os: ubuntu-latest
24-
- python: '3.9'
25-
os: macos-latest
26-
- python: '3.8'
27-
os: windows-latest
28-
- python: '3.8'
29-
os: ubuntu-latest
30-
versions: minimal
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
3118
runs-on: ${{matrix.os}}
3219
steps:
3320
- name: Download source
@@ -36,10 +23,6 @@ jobs:
3623
uses: actions/setup-python@v5
3724
with:
3825
python-version: ${{matrix.python}}
39-
- name: Pin to lowest versions
40-
if: matrix.versions == 'minimal'
41-
run: |
42-
sed -i -E 's/#min //; s/\b >=([0-9])/ ==\1/' pyproject.toml
4326
- name: Install Hatch
4427
run: |
4528
pip install hatch

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
## Unreleased
88

9+
### Changed
10+
11+
- Drop support for Python 3.8. (Pull #85)
12+
913
### Added
1014

1115
- Add support for `click.Command`-like, `click.Group`-like and `click.Context`-like objects without requiring them to be actual subclasses. (Pull #82)

mkdocs_click/_docs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55

66
import inspect
77
from contextlib import ExitStack, contextmanager
8-
from typing import Iterator, cast
8+
from typing import TYPE_CHECKING, cast
99

1010
import click
1111
from markdown.extensions.toc import slugify
1212

1313
from ._exceptions import MkDocsClickException
1414

15+
if TYPE_CHECKING:
16+
from collections.abc import Iterator
17+
1518

1619
def make_command_docs(
1720
prog_name: str,

mkdocs_click/_extension.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the Apache license (see LICENSE)
44
from __future__ import annotations
55

6-
from typing import Any, Iterator
6+
from typing import TYPE_CHECKING, Any
77

88
from markdown.extensions import Extension
99
from markdown.extensions.attr_list import AttrListExtension
@@ -14,6 +14,9 @@
1414
from ._loader import load_command
1515
from ._processing import replace_blocks
1616

17+
if TYPE_CHECKING:
18+
from collections.abc import Iterator
19+
1720

1821
def replace_command_docs(has_attr_list: bool = False, **options: Any) -> Iterator[str]:
1922
for option in ("module", "command"):

mkdocs_click/_processing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
from __future__ import annotations
55

66
import re
7-
from typing import Callable, Iterable, Iterator
7+
from typing import TYPE_CHECKING, Callable
8+
9+
if TYPE_CHECKING:
10+
from collections.abc import Iterable, Iterator
811

912

1013
def replace_blocks(

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ name = "mkdocs-click"
77
description = "An MkDocs extension to generate documentation for Click command line applications"
88
readme = "README.md"
99
license = "Apache-2.0"
10-
keywords = ["click", "datadog", "mkdocs", "mkdocs-plugin"]
10+
keywords = ["click", "mkdocs", "mkdocs-plugin"]
1111
authors = [
12-
{name = "Datadog", email = "[email protected]"},
12+
{ name = "Ofek Lev", email = "[email protected]" },
1313
]
1414
classifiers = [
1515
"Development Status :: 4 - Beta",
@@ -19,21 +19,21 @@ classifiers = [
1919
"License :: OSI Approved :: Apache Software License",
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
2627
"Topic :: Documentation",
2728
"Topic :: Software Development :: Documentation",
2829
"Topic :: Text Processing :: Markup :: Markdown",
2930
"Typing :: Typed",
3031
]
3132
dynamic = ["version"]
32-
requires-python = ">=3.8"
33+
requires-python = ">=3.9"
3334
dependencies = [
3435
"click >=8.1",
3536
"markdown >=3.3",
36-
#min "importlib_metadata >=4.3",
3737
]
3838

3939
[project.urls]

0 commit comments

Comments
 (0)