Skip to content

[Feature Request]How can we custom the format of the dynamic version generated by pdm when we use scm? #208

Closed
@shenmishajing

Description

@shenmishajing

It's a common case to build and publish the package to PyPI at tagged commits and to TestPyPI on untagged commits. However, both PyPI and TestPyPI does not accept version string with a local version suffix. Therefore, it will be helpful to add a 'dev' suffix only when we are not exactly on a tag and use the local version '+dxxx' or '+gxxx' only when there is uncommited changes. So, how can we customize the formattion of the version string generated by pdm? If it's not supported now, can we support it in the future?

Metadata

Metadata

Assignees

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