]> git.phdru.name Git - mimedecode.git/blob - setup.py
Docs: Update TODO
[mimedecode.git] / setup.py
1 #! /usr/bin/env python
2
3 from imp import load_source
4 from os.path import abspath, dirname, join
5
6 try:
7     from setuptools import setup
8     is_setuptools = True
9 except ImportError:
10     from distutils.core import setup
11     is_setuptools = False
12
13 versionpath = join(abspath(dirname(__file__)), "mimedecode", "__version__.py")
14 load_source("mimedecode_version", versionpath)
15 from mimedecode_version import __version__, __copyright__, __license__ # noqa: ignore flake8 E402
16
17 kw = {}
18 if is_setuptools:
19     kw['install_requires'] = ['m_lib.defenc>=1.0']
20     kw['tests_require'] = ['m_lib>=3.1']
21     kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*'
22
23
24 setup(
25     name="mimedecode",
26     version=__version__,
27     description="A program to decode MIME messages",
28     long_description="A program to decode MIME messages. " + __copyright__,
29     author="Oleg Broytman",
30     author_email="phd@phdru.name",
31     url="http://phdru.name/Software/Python/#mimedecode",
32     license=__license__,
33     keywords=['email', 'MIME'],
34     platforms="Any",
35     classifiers=[
36         'Development Status :: 5 - Production/Stable',
37         'Environment :: Console',
38         'Intended Audience :: End Users/Desktop',
39         'License :: OSI Approved :: GNU General Public License (GPL)',
40         'Operating System :: OS Independent',
41         'Programming Language :: Python :: Implementation :: CPython',
42         'Programming Language :: Python :: Implementation :: PyPy',
43         'Programming Language :: Python :: 2',
44         'Programming Language :: Python :: 2.7',
45         'Programming Language :: Python :: 3',
46         'Programming Language :: Python :: 3.3',
47         'Programming Language :: Python :: 3.4',
48         'Programming Language :: Python :: 3.5',
49         'Programming Language :: Python :: 3.6',
50     ],
51     packages=['mimedecode'],
52     entry_points={
53         'console_scripts': [
54             'mimedecode = mimedecode.__main__:main'
55         ]
56     },
57     **kw
58 )