3 from os.path import abspath, dirname, join
4 from setuptools import setup
7 versionpath = join(abspath(dirname(__file__)), 'mimedecode', '__version__.py')
8 mimedecode_version = {}
10 if sys.version_info[:2] == (2, 7):
11 execfile(versionpath, mimedecode_version) # noqa: F821 'execfile' Py3
13 elif sys.version_info >= (3, 4):
14 exec(open(versionpath, 'rU').read(), mimedecode_version)
17 raise ImportError("mimedecode requires Python 2.7 or 3.4+")
21 version=mimedecode_version['__version__'],
22 description="A program to decode MIME messages",
23 long_description="A program to decode MIME messages. " +
24 mimedecode_version['__copyright__'],
25 long_description_content_type="text/plain",
26 author="Oleg Broytman",
27 author_email="phd@phdru.name",
28 url="https://phdru.name/Software/Python/#mimedecode",
30 'Homepage': 'https://phdru.name/Software/Python/#mimedecode',
31 'Documentation': 'https://phdru.name/Software/Python/mimedecode.html',
33 'https://phdru.name/Software/Python/'
34 'mimedecode-%s.tar.bz2' % mimedecode_version['__version__'],
35 'Git repo': 'https://git.phdru.name/mimedecode.git',
36 'Github repo': 'https://github.com/phdru/mimedecode',
37 'Issue tracker': 'https://github.com/phdru/mimedecode/issues',
39 license=mimedecode_version['__license__'],
40 keywords=['email', 'MIME'],
43 'Development Status :: 5 - Production/Stable',
44 'Environment :: Console',
45 'Intended Audience :: End Users/Desktop',
46 'License :: OSI Approved :: GNU General Public License (GPL)',
47 'Operating System :: OS Independent',
48 'Programming Language :: Python :: Implementation :: CPython',
49 'Programming Language :: Python :: Implementation :: PyPy',
50 'Programming Language :: Python :: 2',
51 'Programming Language :: Python :: 2.7',
52 'Programming Language :: Python :: 3',
53 'Programming Language :: Python :: 3.4',
54 'Programming Language :: Python :: 3.5',
55 'Programming Language :: Python :: 3.6',
56 'Programming Language :: Python :: 3.7',
57 'Programming Language :: Python :: 3.8',
58 'Programming Language :: Python :: 3.9',
59 'Programming Language :: Python :: 3.10',
61 packages=['mimedecode'],
64 'mimedecode = mimedecode.__main__:main'
67 python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
68 install_requires=['m_lib.defenc>=1.0'],
69 tests_require=['m_lib>=3.1'],