Skip to content

Get the version from pyproject.toml [tool.poetry] section #432

@qequ

Description

@qequ

Currently using towncrier with a project that uses poetry as package manager. The docs says that you can add towncrier's config to pyproject.toml, and poetry has metadata version like this

[tool.poetry]
...
version = "0.1.0"

if adding towncrier metadata to the toml like this

[tool.towncrier]
directory = "changes"
package_dir = "."
filename = "NEWS.rst"

it complains about lacking the version. Can't towncrier parse the toml looking for version instead of repeating version variables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions