2010-03-22 10:48:03 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2011-06-19 21:53:43 +02:00
|
|
|
import os
|
|
|
|
import re
|
2011-08-23 09:30:49 +02:00
|
|
|
import sys
|
2010-03-22 10:48:03 +01:00
|
|
|
from distutils.core import setup
|
2011-08-23 09:30:49 +02:00
|
|
|
dirname = os.path.dirname(os.path.abspath(__file__)) # Package's main folder
|
|
|
|
sys.path.insert(0, dirname)
|
|
|
|
import notmuch
|
2011-06-19 21:53:43 +02:00
|
|
|
|
2010-04-19 21:14:47 +02:00
|
|
|
setup(name='notmuch',
|
2011-08-23 09:30:49 +02:00
|
|
|
version=notmuch.__VERSION__,
|
2010-03-22 12:32:44 +01:00
|
|
|
description='Python binding of the notmuch mail search and indexing library.',
|
2010-03-22 10:48:03 +01:00
|
|
|
author='Sebastian Spaeth',
|
|
|
|
author_email='Sebastian@SSpaeth.de',
|
2011-01-13 12:35:59 +01:00
|
|
|
url='http://notmuchmail.org/',
|
2011-08-23 09:30:49 +02:00
|
|
|
download_url='http://notmuchmail.org/releases/notmuch-'+ notmuch.__VERSION__+'.tar.gz',
|
2010-04-19 21:14:47 +02:00
|
|
|
packages=['notmuch'],
|
2010-03-22 10:48:03 +01:00
|
|
|
keywords = ["library", "email"],
|
2010-04-07 11:43:29 +02:00
|
|
|
long_description="""Overview
|
|
|
|
==============
|
|
|
|
|
2010-04-19 21:14:47 +02:00
|
|
|
The notmuch module provides an interface to the `notmuch <http://notmuchmail.org>`_ functionality, directly interfacing with a shared notmuch library. Notmuch provides a maildatabase that allows for extremely quick searching and filtering of your email according to various criteria.
|
2010-03-22 10:48:03 +01:00
|
|
|
|
2011-01-13 12:35:59 +01:00
|
|
|
The documentation for the latest cnotmuch release can be `viewed online <http://packages.python.org/notmuch>`_.
|
2010-03-22 10:48:03 +01:00
|
|
|
|
|
|
|
The classes notmuch.Database, notmuch.Query provide most of the core functionality, returning notmuch.Messages and notmuch.Tags.
|
2010-04-07 11:43:29 +02:00
|
|
|
|
|
|
|
Installation and Deinstallation
|
|
|
|
-------------------------------
|
|
|
|
|
2011-01-13 12:35:59 +01:00
|
|
|
notmuch is included in the upstream notmuch source repository and it is
|
|
|
|
packaged on http://pypi.python.org. This means you can do "easy_install
|
|
|
|
notmuch" (or using pip) on your linux box and it will get installed
|
|
|
|
into:
|
2010-04-07 11:43:29 +02:00
|
|
|
|
|
|
|
/usr/local/lib/python2.x/dist-packages/
|
|
|
|
|
2011-01-13 12:35:59 +01:00
|
|
|
For uninstalling, you will need to remove the "notmuch-0.x-py2.x.egg"
|
2010-04-07 11:43:29 +02:00
|
|
|
directory and delete one entry refering to cnotmuch in the
|
|
|
|
"easy-install.pth" file in that directory. There should be no trace
|
|
|
|
left of cnotmuch then.
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
2011-08-23 09:30:49 +02:00
|
|
|
You need to have notmuch installed (or rather libnotmuch.so.1). Also,
|
|
|
|
notmuch makes use of the ctypes library, and has only been tested with
|
|
|
|
python >= 2.5. It will not work on earlier python versions.
|
2010-03-22 10:48:03 +01:00
|
|
|
""",
|
2011-08-23 09:30:49 +02:00
|
|
|
classifiers=['Development Status :: 3 - Alpha',
|
2010-03-22 10:48:03 +01:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Topic :: Communications :: Email',
|
|
|
|
'Topic :: Software Development :: Libraries'
|
|
|
|
],
|
|
|
|
platforms='',
|
|
|
|
license='http://www.gnu.org/licenses/gpl-3.0.txt',
|
|
|
|
)
|