Skip to content

Request: read version from .git_archival.txt #194

@whitequark

Description

@whitequark

When you generate an archive from a release using git archive (or download it from GitHub), there is no .git and tags are not available. However, it is possible to get git archive to put the necessary information into a file with substitutions defined, .git_archival.txt, as used in setuptools_scm.

Would it be possible to implement the same mechanism in pdm-backend? This is the only item holding off my migration from setuptools build backend at the moment.

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