On 4/24/25 12:31 PM, Antonio Valentino wrote:
Regarding the last one I'm not sure what do you mean.
Currently we have
"""
include /usr/share/dpkg/pkg-info.mk
export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM:+ds=)
"""
the `:*ds=` should do the trick, and indeed the dist-info seems to be
correctly generated (eodag-3.3.1.dist-info).
It works as long as the repacksuffix is +ds, when you need to repack it
again and use +ds2 the SETUPTOOLS_SCM_PRETEND_VERSION value becomes
3.3.1+ds2 which is not what you want.
Is there a more robust way to do it?
Also strip zero or more characters after +ds.
Do you have a link?
e.g.: https://salsa.debian.org/debian-gis-team/spatialite/-/blob/master/
debian/rules?ref_type=heads#L15