Skip to content

Commit fa5fa95

Browse files
authored
Support 'Debian-Version' configuration in stdeb.cfg (#2)
This configuration value affects the resulting artifact names.
1 parent d147e89 commit fa5fa95

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

publish_python/artifact/stdeb.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def create_deb(*, config):
3535
for env_var in setup_env_vars.split(' '):
3636
key, value = env_var.split('=', 1)
3737
add_env[key] = value
38+
debinc = config_parser.get(pkg.name, 'Debian-Version', fallback='1')
3839

3940
print(
4041
'$', *cmd,
@@ -49,9 +50,9 @@ def create_deb(*, config):
4950

5051
return {
5152
f'deb_dist/{source_pkg_name}_{pkg.version}.orig.tar.gz',
52-
f'deb_dist/{source_pkg_name}_{pkg.version}-1.debian.tar.gz',
53-
f'deb_dist/{source_pkg_name}_{pkg.version}-1.dsc',
54-
f'deb_dist/{source_pkg_name}_{pkg.version}-1_all.deb'}
53+
f'deb_dist/{source_pkg_name}_{pkg.version}-{debinc}.debian.tar.gz',
54+
f'deb_dist/{source_pkg_name}_{pkg.version}-{debinc}.dsc',
55+
f'deb_dist/{source_pkg_name}_{pkg.version}-{debinc}_all.deb'}
5556

5657

5758
def clean_deb():

0 commit comments

Comments
 (0)