forked from cole/aiosmtplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (55 loc) · 1.89 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
57
58
59
60
61
import re
from pathlib import Path
from setuptools import find_packages, setup
VERSION_REGEX = r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]'
init = Path('src/aiosmtplib/__init__.py')
readme = Path(__file__).with_name('README.rst')
version_match = re.search(VERSION_REGEX, init.read_text('utf-8'), re.MULTILINE)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError('Cannot find version information')
setup(
name='aiosmtplib',
version=version,
description='asyncio SMTP client',
long_description=readme.read_text('utf-8'),
author='Cole Maclean',
author_email='[email protected]',
url='https://github.com/cole/aiosmtplib',
packages=find_packages('src'),
package_dir={'': 'src'},
license='MIT',
keywords=['smtp', 'email', 'asyncio'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Communications :: Email',
'Topic :: System :: Networking',
],
extras_require={
'docs': [
'sphinx>=1.6,<1.7',
'sphinx_autodoc_typehints>=1.2,<1.3',
],
'testing': [
'hypothesis>=3.0,<4.0',
'hypothesis-pytest>=0.19,<1.0',
'pytest>=3.0,<3.1',
'pytest-asyncio>=0.5,<0.6',
'pytest-cov>=2.4,<2.5',
'wheel[signatures]',
]
}
)