Skip to content

Commit 8f8b8e9

Browse files
feat(doc): move doc requirements to PEP621 in pyproject.toml
Signed-off-by: Hamza Hasan <hamzahasan4633@gmail.com>
1 parent ab4cebb commit 8f8b8e9

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

doc/requirements.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
Sphinx==8.2.3
2-
sphinx_markdown_tables
3-
myst_parser==4.0.1
4-
sbom2doc
5-
pillow>=10.3.0 # not directly required, pinned by Snyk to avoid a vulnerability
6-
requests>=2.32.2 # not directly required, pinned by Snyk to avoid a vulnerability
7-
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability
8-
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
1+
# Documentation dependencies are now managed in pyproject.toml
2+
# Install using: pip install .[docs]
3+
# This file is kept for backwards compatibility only.
4+
-e .[docs]

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ dependencies = [
5656

5757
[project.optional-dependencies]
5858
PDF = ["reportlab"]
59+
docs = [
60+
"Sphinx>=7.1.2,<8.0.0",
61+
"sphinx_markdown_tables",
62+
"myst_parser==4.0.1",
63+
"sbom2doc",
64+
"pillow>=10.3.0",
65+
"requests>=2.32.2",
66+
"urllib3>=2.2.2",
67+
"zipp>=3.19.1",
68+
]
5969
dev = [
6070
"bandit==1.8.6",
6171
"black==25.11.0",

0 commit comments

Comments
 (0)