]> git.phdru.name Git - mimedecode.git/blob - setup.py
Build(setup.py): Use setuptools instead of distutils
[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 from setuptools import setup
6
7 versionpath = join(abspath(dirname(__file__)), "mimedecode", "__version__.py")
8 mimedecode_version = load_source("mimedecode_version", versionpath)
9
10 setup(
11     name="mimedecode",
12     version=mimedecode_version.__version__,
13     description="A program to decode MIME messages",
14     long_description="A program to decode MIME messages. " +
15     mimedecode_version.__copyright__,
16     author="Oleg Broytman",
17     author_email="phd@phdru.name",
18     url="http://phdru.name/Software/Python/#mimedecode",
19     license=mimedecode_version.__license__,
20     keywords=['email', 'MIME'],
21     platforms="Any",
22     classifiers=[
23         'Development Status :: 5 - Production/Stable',
24         'Environment :: Console',
25         'Intended Audience :: End Users/Desktop',
26         'License :: OSI Approved :: GNU General Public License (GPL)',
27         'Operating System :: OS Independent',
28         'Programming Language :: Python :: Implementation :: CPython',
29         'Programming Language :: Python :: Implementation :: PyPy',
30         'Programming Language :: Python :: 2',
31         'Programming Language :: Python :: 2.7',
32         'Programming Language :: Python :: 3',
33         'Programming Language :: Python :: 3.3',
34         'Programming Language :: Python :: 3.4',
35         'Programming Language :: Python :: 3.5',
36         'Programming Language :: Python :: 3.6',
37     ],
38     packages=['mimedecode'],
39     entry_points={
40         'console_scripts': [
41             'mimedecode = mimedecode.__main__:main'
42         ]
43     },
44     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*',
45     install_requires=['m_lib.defenc>=1.0'],
46     tests_require=['m_lib>=3.1'],
47 )