Dynamic Version in PDM.md

How to set dynamic version in PDM.

Change the pyproject.toml

1
2
3
4
[project]
...
- version = "0.1.0" remove this line
+ dynamic = ["version"]

Add new configuration:

1
2
3
[tool.pdm.version]
source = "file"
path = "mypackage/__init__.py"
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计