-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
56 lines (51 loc) · 1.93 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
import re
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
if sys.version_info.major == 2:
README = unicode(README, 'utf-8') # NOQA: F821
CHANGES = unicode(CHANGES, 'utf-8') # NOQA: F821
versionfile = open(os.path.join(here, 'mxsniff', '_version.py')).read()
mo = re.search(r"^__version__\s*=\s*['\"]([^'\"]*)['\"]", versionfile, re.M)
if mo:
version = mo.group(1)
else:
raise RuntimeError("Unable to find version string in mxsniff/_version.py")
setup(
name='mxsniff',
version=version,
description='MX Sniffer',
long_description=README + '\n\n' + CHANGES,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Development Status :: 4 - Beta',
'Environment :: Console',
'Topic :: Communications :: Email',
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
author='Kiran Jonnalagadda',
author_email='[email protected]',
url='https://github.com/jace/mxsniff',
keywords=['mxsniff', 'email', 'mx'],
packages=['mxsniff'],
include_package_data=True,
zip_safe=True,
test_suite='tests',
install_requires=['six', 'tldextract', 'dnspython', 'pyIsEmail'],
entry_points={'console_scripts': ['mxsniff = mxsniff:main']},
)