Skip to content

Commit 59a65d6

Browse files
committed
fix: move dev dependencies to optional-dependencies
pytest, pytest-cov, coverage, and setuptools were incorrectly listed as runtime dependencies, causing them to be installed with 'pip install json2xml'. Moved them to [project.optional-dependencies] under 'dev' group, so users get only defusedxml, urllib3, and xmltodict at runtime. Developers can install with 'pip install json2xml[dev]'. fixes #272
1 parent c7208c5 commit 59a65d6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ dependencies = [
3131
"defusedxml",
3232
"urllib3",
3333
"xmltodict>=0.12.0",
34-
"pytest",
35-
"pytest-cov",
36-
"coverage",
37-
"setuptools",
3834
]
3935

4036
[project.urls]
@@ -47,8 +43,11 @@ json2xml-py = "json2xml.cli:main"
4743
include = ["json2xml"]
4844

4945
[project.optional-dependencies]
50-
test = [
46+
dev = [
5147
"pytest>=8.4.1",
48+
"pytest-cov",
49+
"coverage",
50+
"setuptools",
5251
]
5352
fast = ["json2xml-rs>=0.1.0"]
5453

0 commit comments

Comments
 (0)