Skip to content

Commit

Permalink
Add support for "homepage" stanza
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Jul 3, 2020
1 parent 02e9026 commit b8e31eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions stdeb/command/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions stdeb/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b8e31eb

Please sign in to comment.