]> git.notmuchmail.org Git - notmuch/blob - bindings/python/setup.py
19b65584e427385f4f4b172cb26c0e5bd2ba6712
[notmuch] / bindings / python / setup.py
1 #!/usr/bin/env python
2
3 import os
4 import re
5 import sys
6 from distutils.core import setup
7 dirname = os.path.dirname(os.path.abspath(__file__)) # Package's main folder
8 sys.path.insert(0, dirname)
9 import notmuch
10
11 setup(name='notmuch',
12       version=notmuch.__VERSION__,
13       description='Python binding of the notmuch mail search and indexing library.',
14       author='Sebastian Spaeth',
15       author_email='Sebastian@SSpaeth.de',
16       url='http://notmuchmail.org/',
17       download_url='http://notmuchmail.org/releases/notmuch-'+ notmuch.__VERSION__+'.tar.gz',
18       packages=['notmuch'],
19       keywords = ["library", "email"],
20       long_description="""Overview
21 ==============
22
23 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.
24
25 The documentation for the latest cnotmuch release can be `viewed online <http://packages.python.org/notmuch>`_.
26
27 The classes notmuch.Database, notmuch.Query  provide most of the core functionality, returning notmuch.Messages and notmuch.Tags.
28
29 Installation and Deinstallation
30 -------------------------------
31
32 notmuch is included in the upstream notmuch source repository and it is
33 packaged on http://pypi.python.org. This means you can do "easy_install
34 notmuch" (or using pip) on your linux box and it will get installed
35 into:
36
37 /usr/local/lib/python2.x/dist-packages/
38
39 For uninstalling, you will need to remove the "notmuch-0.x-py2.x.egg"
40 directory and delete one entry refering to cnotmuch in the
41 "easy-install.pth" file in that directory. There should be no trace
42 left of cnotmuch then.
43
44 Requirements
45 ------------
46
47 You need to have notmuch installed (or rather libnotmuch.so.1). Also,
48 notmuch makes use of the ctypes library, and has only been tested with
49 python >= 2.5. It will not work on earlier python versions.
50 """,
51       classifiers=['Development Status :: 3 - Alpha',
52                    'Intended Audience :: Developers',
53                    'License :: OSI Approved :: GNU General Public License (GPL)',
54                    'Programming Language :: Python :: 2',
55                    'Programming Language :: Python :: 3',
56                    'Topic :: Communications :: Email',
57                    'Topic :: Software Development :: Libraries'
58                    ],
59       platforms='',
60       license='http://www.gnu.org/licenses/gpl-3.0.txt',
61      )