[Python-modules-commits] [afew] 01/01: Initial packaging

Free Ekanayaka freee at moszumanska.debian.org
Fri Dec 23 10:45:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

freee pushed a commit to branch master
in repository afew.

commit 587e350958be344ee678ea29700366cc60c48972
Author: Free Ekanayaka <freee at debian.org>
Date:   Fri Dec 23 00:20:12 2016 +0000

    Initial packaging
---
 .travis.yml                                 | 11 +++++++
 debian/changelog                            |  5 ++++
 debian/compat                               |  1 +
 debian/control                              | 33 +++++++++++++++++++++
 debian/copyright                            | 45 +++++++++++++++++++++++++++++
 debian/patches/0001-fix-failing-tests.patch | 44 ++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 debian/rules                                |  5 ++++
 debian/source/format                        |  1 +
 debian/source/options                       |  1 +
 10 files changed, 147 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..cf2f794
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,11 @@
+sudo: required
+
+services:
+  - docker
+
+script:
+  - wget -O- http://travis.debian.net/script.sh | sh -
+
+branches:
+  except:
+    - /^debian\/\d/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8e083b1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+afew (0.0+git2016.02.29.b19a88f-1) unstable; urgency=low
+
+  * Initial release (Closes: #849153)
+
+ -- Free Ekanayaka <freee at debian.org>  Fri, 23 Dec 2016 00:03:25 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e229952
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: afew
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Free Ekanayaka <freee at debian.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+	       dh-python,
+	       python3-setuptools (>= 0.6b3),
+	       python3-all (>= 2.6.6-3),
+	       python3-notmuch,
+	       python3-chardet,
+Standards-Version: 3.9.8
+Homepage: https://github.com/teythoon/afew
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/afew.git
+Vcs-Git: git://anonscm.debian.org/python-modules/packages/afew.git
+
+Package: afew
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Tagging script for notmuch mail
+ The basic task of afew is to provide automatic tagging each time new
+ mail is registered with notmuch. In a classic setup, you might call it
+ after 'notmuch new' in an offlineimap post sync hook.
+ .
+ In addition to more elementary features such as adding tags based on
+ email headers or maildir folders, handling killed threads and spam, it
+ can do some heavy magic in order to /learn/ how to initially tag your
+ mails based on their content.
+ .
+ In move mode, afew will move mails between maildir folders according to
+ configurable rules that can contain arbitrary notmuch queries to match
+ against any searchable attributes.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..76489c7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,45 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: afew
+Upstream-Contact: Justus Winter <4winter at informatik.uni-hamburg.de>
+Source: https://github.com/teythoon/afew
+
+Files: *
+Copyright: (c) Justus Winter <4winter at informatik.uni-hamburg.de>
+License: MIT
+
+Files: afew/filters/FolderNameFilter.py
+Copyright: (c) dtk <dtk at gmx.de>
+License: MIT
+
+Files: afew/MailMover.py
+Copyright: (c) dtk <dtk at gmx.de>
+License: MIT
+
+Files: afew/filters/HeaderMatchingFilter.py
+Copyright: (c) 2012 Justus Winter <4winter at informatik.uni-hamburg.de> &
+        (c) 2013 Patrick Gerken <do3cc at patrick-gerken.de>
+	(c) 2013 Patrick Totzke <patricktotzke at gmail.com>
+	(c) 2014 Lars Kellogg-Stedman <lars at redhat.com>
+License: MIT
+
+Files: afew/tests/*
+Copyright: (c) 2013 Patrick Gerken <do3cc at patrick-gerken.de>
+License: MIT
+
+Files: debian/*
+Copyright: 2016 Free Ekanayaka <freee at debian.org>
+License: MIT
+Comment: Debian packaging is licensed under the same terms as upstream
+
+License: MIT
+ Permission to use, copy, modify, and distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/debian/patches/0001-fix-failing-tests.patch b/debian/patches/0001-fix-failing-tests.patch
new file mode 100644
index 0000000..a9b98f4
--- /dev/null
+++ b/debian/patches/0001-fix-failing-tests.patch
@@ -0,0 +1,44 @@
+From: Free Ekanayaka <freee at debian.org>
+Date: Fri, 23 Dec 2016 10:04:40 +0000
+Subject: fix-failing-tests
+
+Fix failing tests due to Python 2 vs 3 idioms.
+---
+ afew/tests/test_settings.py | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/afew/tests/test_settings.py b/afew/tests/test_settings.py
+index b34da59..551cc00 100644
+--- a/afew/tests/test_settings.py
++++ b/afew/tests/test_settings.py
+@@ -33,11 +33,11 @@ class TestFilterRegistry(unittest.TestCase):
+                 return 'class'
+         registry = FilterRegistry.FilterRegistry([FakeRegistry()])
+ 
+-        self.assertEquals('class', registry['test'])
++        self.assertEqual('class', registry['test'])
+ 
+     def test_all_builtin_FilterRegistrys_exist(self):
+         from afew import FilterRegistry
+-        self.assertEquals(['FolderNameFilter',
++        self.assertEqual(sorted(['FolderNameFilter',
+                            'ArchiveSentMailsFilter',
+                            'ClassifyingFilter',
+                            'InboxFilter',
+@@ -46,13 +46,13 @@ class TestFilterRegistry(unittest.TestCase):
+                            'KillThreadsFilter',
+                            'SentMailsFilter',
+                            'HeaderMatchingFilter',
+-                           'ListMailsFilter'],
+-                          FilterRegistry.all_filters.keys())
++                           'ListMailsFilter']),
++                          sorted(FilterRegistry.all_filters.keys()))
+ 
+     def test_add_FilterRegistry(self):
+         from afew import FilterRegistry
+         try:
+             FilterRegistry.all_filters['test'] = 'class'
+-            self.assertEquals('class', FilterRegistry.all_filters['test'])
++            self.assertEqual('class', FilterRegistry.all_filters['test'])
+         finally:
+             del FilterRegistry.all_filters['test']
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7a2ba10
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-fix-failing-tests.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1466958
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with python3 --buildsystem=pybuild
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..aa96de8
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore = "^\.travis\.yml$"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/afew.git



More information about the Python-modules-commits mailing list