unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <bremner@unb.ca>
To: "notmuch" <notmuch@notmuchmail.org>
Subject: [Jakub Wilk] Bug#683515: python3-notmuch
Date: Thu, 02 Aug 2012 12:13:01 -0300	[thread overview]
Message-ID: <876291uy2q.fsf@zancas.localnet> (raw)


[-- Attachment #0: Type: message/rfc822, Size: 7280 bytes --]

[-- Attachment #1.1: Type: text/plain, Size: 127 bytes --]

Source: notmuch
Version: 0.13.2-1
Severity: wishlist
Tags: patch

The attached path adds support for Python 3.

-- 
Jakub Wilk

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: python3-notmuch.diff --]
[-- Type: text/x-diff, Size: 2854 bytes --]

diff -Nru notmuch-0.13.2/debian/control notmuch-0.13.2/debian/control
--- notmuch-0.13.2/debian/control	2012-06-02 23:17:42.000000000 +0200
+++ notmuch-0.13.2/debian/control	2012-08-01 12:11:03.000000000 +0200
@@ -14,6 +14,7 @@
  libtalloc-dev,
  libz-dev,
  python-all (>= 2.6.6-3~),
+ python3-all (>= 3.1.2-7~),
  emacs23-nox | emacs23 (>=23~) | emacs23-lucid (>=23~),
  gdb,
  dtach (>= 0.8)
@@ -74,6 +75,19 @@
  This package provides a Python interface to the notmuch
  functionality, directly interfacing with a shared notmuch library.
 
+Package: python3-notmuch
+Architecture: all
+Section: python
+Depends: ${misc:Depends}, ${python3:Depends}, libnotmuch3
+Description: Python 3 interface to the notmuch mail search and index library
+ Notmuch is a system for indexing, searching, reading, and tagging
+ large collections of email messages in maildir or mh format. It uses
+ the Xapian library to provide fast, full-text search with a very
+ convenient search syntax.
+ .
+ This package provides a Python 3 interface to the notmuch
+ functionality, directly interfacing with a shared notmuch library.
+
 Package: notmuch-emacs
 Architecture: all
 Section: mail
diff -Nru notmuch-0.13.2/debian/python-notmuch.install notmuch-0.13.2/debian/python-notmuch.install
--- notmuch-0.13.2/debian/python-notmuch.install	2012-06-02 23:17:42.000000000 +0200
+++ notmuch-0.13.2/debian/python-notmuch.install	2012-08-01 11:26:07.000000000 +0200
@@ -1 +1 @@
-usr/lib/python*
+usr/lib/python2*
diff -Nru notmuch-0.13.2/debian/python3-notmuch.install notmuch-0.13.2/debian/python3-notmuch.install
--- notmuch-0.13.2/debian/python3-notmuch.install	1970-01-01 01:00:00.000000000 +0100
+++ notmuch-0.13.2/debian/python3-notmuch.install	2012-08-01 11:26:06.000000000 +0200
@@ -0,0 +1 @@
+usr/lib/python3*
diff -Nru notmuch-0.13.2/debian/rules notmuch-0.13.2/debian/rules
--- notmuch-0.13.2/debian/rules	2012-06-02 23:17:42.000000000 +0200
+++ notmuch-0.13.2/debian/rules	2012-08-01 12:11:02.000000000 +0200
@@ -1,7 +1,9 @@
 #!/usr/bin/make -f
 
+python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
+
 %:
-	dh --with python2 $@
+	dh --with python2,python3 $@
 
 override_dh_auto_configure:
 	dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch
@@ -9,13 +11,16 @@
 override_dh_auto_build:
 	dh_auto_build
 	dh_auto_build --sourcedirectory bindings/python
+	cd bindings/python && $(python3_all) setup.py build
 	$(MAKE) -C contrib/notmuch-mutt
 
 override_dh_auto_clean:
 	dh_auto_clean
 	dh_auto_clean --sourcedirectory bindings/python
+	cd bindings/python && $(python3_all) setup.py clean -a
 	$(MAKE) -C contrib/notmuch-mutt clean
 
 override_dh_auto_install:
 	dh_auto_install
 	dh_auto_install --sourcedirectory bindings/python
+	cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp

                 reply	other threads:[~2012-08-02 15:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=876291uy2q.fsf@zancas.localnet \
    --to=bremner@unb.ca \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).