From 5d13ef1f52f6d6876d90812c8676d1f85355f473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= Date: Tue, 21 Apr 2015 23:34:26 +0200 Subject: [PATCH] generate debian/watch file http://pypi.debian.net/{source}/watch version supports f.e. signatures which we cannot support here - it needs access to the internet --- stdeb/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stdeb/util.py b/stdeb/util.py index 0230e88..9399cfa 100644 --- a/stdeb/util.py +++ b/stdeb/util.py @@ -1374,6 +1374,14 @@ def build_dsc(debinfo, fd.write('3.0 (quilt)\n') fd.close() + # K. debian/watch + with open(os.path.join(debian_dir, 'watch'), mode='w') as fd: + fd.write(('# please also check http://pypi.debian.net/{name}/watch\n' + 'version=3\n' + 'opts=uversionmangle=s/(rc|a|b|c)/~$1/ \\\n' + 'http://pypi.debian.net/{name}/{name}-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))').\ + format(name=debinfo.module_name)) + if debian_dir_only: return