Overhaul dependency and environment handling in pyproject.toml
Marco Ricci

Marco Ricci commited on 2024-06-08 19:06:56
Zeige 1 geänderte Dateien mit 17 Einfügungen und 2 Löschungen.

... ...
@@ -16,15 +16,22 @@ authors = [
16 16
 classifiers = [
17 17
   "Development Status :: 4 - Beta",
18 18
   "Environment :: Console",
19
+  "License :: OSI-Approved :: MIT License",
19 20
   "Programming Language :: Python :: 3",
20
-  "Programming Language :: Python :: 3 :: Only",
21 21
   "Programming Language :: Python :: 3.11",
22 22
   "Programming Language :: Python :: 3.12",
23 23
   "Programming Language :: Python :: Implementation :: CPython",
24 24
   "Programming Language :: Python :: Implementation :: PyPy",
25 25
 ]
26 26
 dependencies = [
27
-  "click",
27
+  "click>=8.1",
28
+]
29
+
30
+[project.optional-dependencies]
31
+dev = [
32
+  "mkdocs",
33
+  "mkdocstrings[python]",
34
+  "pytest",
28 35
 ]
29 36
 
30 37
 [project.urls]
... ...
@@ -50,6 +57,14 @@ xfail_strict = true
50 57
 [tool.hatch.version]
51 58
 path = "src/derivepassphrase/__about__.py"
52 59
 
60
+[tool.hatch.env]
61
+requires = [
62
+  "hatch-mkdocs",
63
+]
64
+
65
+[tool.hatch.env.collectors.mkdocs.docs]
66
+path = "mkdocs.yml"
67
+
53 68
 [tool.hatch.envs.types]
54 69
 extra-dependencies = [
55 70
   "mypy>=1.0.0",
56 71