]> git.phdru.name Git - mimedecode.git/blob - setup.py
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[mimedecode.git] / setup.py
1 #! /usr/bin/env python
2
3 from os.path import abspath, dirname, join
4 from setuptools import setup
5 import sys
6
7 versionpath = join(abspath(dirname(__file__)), 'mimedecode', '__version__.py')
8 mimedecode_version = {}
9
10 if sys.version_info[:2] == (2, 7):
11     execfile(versionpath, mimedecode_version)  # noqa: F821 'execfile' Py3
12
13 elif sys.version_info >= (3, 4):
14     exec(open(versionpath, 'rU').read(), mimedecode_version)
15
16 else:
17     raise ImportError("mimedecode requires Python 2.7 or 3.4+")
18
19 setup(
20     name="mimedecode",
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",
29     project_urls={
30         'Homepage': 'https://phdru.name/Software/Python/#mimedecode',
31         'Documentation': 'https://phdru.name/Software/Python/mimedecode.html',
32         'Download':
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',
38     },
39     license=mimedecode_version['__license__'],
40     keywords=['email', 'MIME'],
41     platforms="Any",
42     classifiers=[
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     ],
58     packages=['mimedecode'],
59     entry_points={
60         'console_scripts': [
61             'mimedecode = mimedecode.__main__:main'
62         ]
63     },
64     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
65     install_requires=['m_lib.defenc>=1.0'],
66     tests_require=['m_lib>=3.1'],
67 )