On Fri, Jul 12, 2024 at 11:29:51PM +0000, Stefano Rivera wrote:
> Hi Thomas (2024.07.12_12:53:54_+0000)
> > The way to deal with it, is simply something like this:
> > 
> > export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell dpkg-parsechangelog -SVersion
> > | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~git.*//' -e 's/~/.0/' -e
> > 's/+dfsg1//' -e 's/+ds1//' | head -n 1)
> > 
> > and then setuptools-scm knows what version to use without using the Git
> > history.
> > 
> > Probably pybuild does that automatically under the hood (I tend to not use
> > pybuild, and so I do the above ...).
> 
> It does.

Assuming your package Build-Depends: python3-setuptools-scm

   Julian

Reply via email to