Skip to content

Should development dependencies be included in the optional section? #201

@4441564944

Description

@4441564944

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 = "*"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions