sampleproject icon indicating copy to clipboard operation
sampleproject copied to clipboard

Should development dependencies be included in the optional section?

Open 4441564944 opened this issue 2 years ago • 0 comments

Some people may argue that development dependencies should be separated from optional dependencies e.g. in separate requirements.txt file. Poetry, or PDM, does it with a special section. What is an official recommendation?

Sample

[project.optional-dependencies]
dev = ["check-manifest"]
test = ["coverage"]

PDM

[tool.pdm.dev-dependencies]
test = ["pytest"]

Poetry

[tool.poetry.group.test.dependencies]
pytest = "^6.0.0"
pytest-mock = "*"

4441564944 avatar Nov 18 '23 22:11 4441564944