1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From 62065aaeab1e2d7334c336efcb5d4b34cb99bf24 Mon Sep 17 00:00:00 2001
From: SVN-Git Migration <python-modules-team@lists.alioth.debian.org>
Date: Thu, 8 Oct 2015 14:10:02 -0700
Subject: add_debian_watch
Patch-Name: add_debian_watch.patch
---
stdeb/util.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/stdeb/util.py b/stdeb/util.py
index 654a423..3640294 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -1308,6 +1308,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
|