From b8e31eb1aaced67652efd80a133cf5a868b3f68c Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Fri, 3 Jul 2020 08:20:51 +0200 Subject: [PATCH] Add support for "homepage" stanza --- stdeb/command/common.py | 1 + stdeb/util.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/stdeb/command/common.py b/stdeb/command/common.py index 22f83929..06b7ef9b 100644 --- a/stdeb/command/common.py +++ b/stdeb/command/common.py @@ -212,6 +212,7 @@ def get_debinfo(self): has_ext_modules = self.distribution.has_ext_modules(), description = description, long_description = long_description, + homepage = self.distribution.get_url(), patch_file = self.patch_file, patch_level = self.patch_level, debian_version = self.debian_version, diff --git a/stdeb/util.py b/stdeb/util.py index 974e388f..cfc99617 100644 --- a/stdeb/util.py +++ b/stdeb/util.py @@ -694,6 +694,7 @@ def __init__(self, has_ext_modules=NotGiven, description=NotGiven, long_description=NotGiven, + homepage=NotGiven, patch_file=None, patch_level=None, setup_requires=None, @@ -928,6 +929,9 @@ def __init__(self, self.source_stanza_extras += ('X-Python3-Version: '+ ', '.join(x_python3_version)+'\n') + if homepage not in ('UNKNOWN', NotGiven): + self.source_stanza_extras += "Homepage: %s\n" % homepage + dpkg_shlibdeps_params = parse_val( cfg,module_name,'dpkg-shlibdeps-params') if dpkg_shlibdeps_params: