Skip to content

Commit dc5c4a5

Browse files
author
Ofek Lev
authored
Update package metadata (#53)
* Update package metadata * Update requirements.txt * Update requirements.txt * . * Update _docs.py
1 parent 8da2761 commit dc5c4a5

8 files changed

Lines changed: 62 additions & 62 deletions

File tree

.github/workflows/tests.yml

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

1515
strategy:
1616
matrix:
17-
python-version: ["3.7", "3.8", "3.9"]
17+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1818

1919
steps:
2020
- uses: "actions/checkout@v2"

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

mkdocs_click/_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _get_sub_commands(command: click.Command, ctx: click.Context) -> List[click.
7575
"""Return subcommands of a Click command."""
7676
subcommands = getattr(command, "commands", {})
7777
if subcommands:
78-
return subcommands.values()
78+
return subcommands.values() # type: ignore
7979

8080
if not isinstance(command, click.MultiCommand):
8181
return []

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
[build-system]
2+
requires = ["hatchling>=0.22.0"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "mkdocs-click"
7+
description = "An MkDocs extension to generate documentation for Click command line applications"
8+
readme = "README.md"
9+
license = "Apache-2.0"
10+
requires-python = ">=3.7"
11+
authors = [
12+
{ name = "Datadog", email = "packages@datadoghq.com" },
13+
]
14+
keywords = [
15+
"click",
16+
"datadog",
17+
"mkdocs",
18+
]
19+
classifiers = [
20+
"Development Status :: 4 - Beta",
21+
"Intended Audience :: Developers",
22+
"License :: OSI Approved :: Apache Software License",
23+
"Operating System :: OS Independent",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.7",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
]
30+
dependencies = [
31+
"click~=8.1",
32+
"markdown==3.*",
33+
]
34+
dynamic = ["version"]
35+
36+
[project.entry-points."markdown.extensions"]
37+
mkdocs-click = "mkdocs_click:MKClickExtension"
38+
39+
[project.urls]
40+
Homepage = "https://github.com/DataDog/mkdocs-click"
41+
Changelog = "https://github.com/DataDog/mkdocs-click/blob/master/CHANGELOG.md"
42+
43+
[tool.hatch.version]
44+
path = "mkdocs_click/__version__.py"
45+
46+
[tool.hatch.build.targets.sdist]
47+
include = [
48+
"/mkdocs_click",
49+
"/CHANGELOG.md",
50+
]
51+
152
[tool.black]
253
line-length = 120
354
target-version = ["py37"]

requirements.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
# Packaging
44
twine
5-
wheel
5+
build
66

77
# Linters
88
black==22.3.0
99
flake8==3.8.4
10-
mypy==0.790
10+
11+
# Type checking
12+
mypy==0.950
13+
types-Markdown
1114

1215
# Testing
1316
mock==4.0.2
14-
pytest==5.4.3
15-
pytest-cov==2.10.1
17+
pytest==7.1.2
18+
pytest-cov==3.0.0

scripts/build

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ BIN="venv/bin/"
44

55
set -x
66

7-
${BIN}python setup.py sdist bdist_wheel
7+
${BIN}python -m build
88
${BIN}twine check dist/*
9-
10-
rm -r build

setup.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

tests/test_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
],
2020
)
2121
def test_load_command(module: str, command: str, exc):
22-
with pytest.raises(exc) if exc is not None else nullcontext():
22+
with pytest.raises(exc) if exc is not None else nullcontext(): # type: ignore
2323
load_command(module, command)

0 commit comments

Comments
 (0)