From 2932c43e6fc16c47970da20b1dbbab4903ea3e6b Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 22 Nov 2023 22:40:22 -0600 Subject: [PATCH] Support 'Debian-Version' configuration in stdeb.cfg This configuration value affects the resulting artifact names. --- publish_python/artifact/stdeb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/publish_python/artifact/stdeb.py b/publish_python/artifact/stdeb.py index 1f7605f..b79bdf1 100644 --- a/publish_python/artifact/stdeb.py +++ b/publish_python/artifact/stdeb.py @@ -35,6 +35,7 @@ def create_deb(*, config): for env_var in setup_env_vars.split(' '): key, value = env_var.split('=', 1) add_env[key] = value + debinc = config_parser.get(pkg.name, 'Debian-Version', fallback='1') print( '$', *cmd, @@ -49,9 +50,9 @@ def create_deb(*, config): return { f'deb_dist/{source_pkg_name}_{pkg.version}.orig.tar.gz', - f'deb_dist/{source_pkg_name}_{pkg.version}-1.debian.tar.gz', - f'deb_dist/{source_pkg_name}_{pkg.version}-1.dsc', - f'deb_dist/{source_pkg_name}_{pkg.version}-1_all.deb'} + f'deb_dist/{source_pkg_name}_{pkg.version}-{debinc}.debian.tar.gz', + f'deb_dist/{source_pkg_name}_{pkg.version}-{debinc}.dsc', + f'deb_dist/{source_pkg_name}_{pkg.version}-{debinc}_all.deb'} def clean_deb():