On Thursday, 18 July 2024 11:10:01 CEST Mathias Behrle wrote:
> 
> I have no clue why this is working for you.
> 
> I removed the patch, tried your proposal and the build just fails because
> setuptools-scm writes again a dev version to src/csb43/_version.py:
> 
> https://salsa.debian.org/tryton-team/python-csb43/-/jobs/5988081
> dpkg-source: info: local changes detected, the modified files are:
>  source_dir/src/csb43/_version.py

For what it is worth, I also mention the generated file in debian/clean.

Another thing that the code I am packaging does is to dynamically look up 
version information in its documentation script:

from pkg_resources import get_distribution
release = get_distribution('moin').version

I have found that this doesn't tend to work when building the package, so I 
have a patch that manually defines this information instead. Maybe there is a 
better way of dealing with this, too.

Paul


Reply via email to