setuptools_scm icon indicating copy to clipboard operation
setuptools_scm copied to clipboard

support distribution metadata substitution in write_to path

Open RonnyPfannschmidt opened this issue 4 years ago • 3 comments
trafficstars

unfortunately current packaging practices make it necessary to have the package name yet again in the src folder

practically this means people have to spell the package name in the write_to parameter

they should be able to do something like

[tool.setuptools_scm]
write_to = "src/{toplevel}/_version.py"

Originally suggested by @smarie in https://github.com/pypa/setuptools_scm/issues/582#issuecomment-862207084

ideally in future src will directly map to the toplevel of a package

RonnyPfannschmidt avatar Jun 16 '21 09:06 RonnyPfannschmidt

So efficient as always. Thanks @RonnyPfannschmidt !

smarie avatar Jun 16 '21 09:06 smarie