-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
72 lines (63 loc) · 1.98 KB
/
setup.py
File metadata and controls
72 lines (63 loc) · 1.98 KB
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
62
63
64
65
66
67
68
69
70
71
72
import os
from setuptools import find_packages
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
description = "Asynchronous SMTP server for local development and email testing"
github_homepage = "https://github.com/asyncee/smtpdev"
long_description = f"""
{description}
See source code and documentation on {github_homepage}.
"""
data_files = []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
# This code snippet is taken from django-registration setup.py script
for dirpath, dirnames, filenames in os.walk("smtpdev"):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith("."):
del dirnames[i]
if filenames:
prefix = dirpath[len("smtpdev/") :] # Strip "smtpdev/" or "smtpdev\"
for f in filenames:
data_files.append(os.path.join(prefix, f))
setup(
name="smtpdev",
version="0.2.8",
packages=find_packages(),
author="asyncee",
description=description,
long_description=long_description,
license="MIT",
keywords="smtp developer server",
url=github_homepage,
download_url="https://pypi.python.org/pypi/smtpdev/",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
],
package_dir={"smtpdev": "smtpdev"},
package_data={"smtpdev": data_files},
zip_safe=False,
install_requires=[
"aiohttp==3.6.2",
"aiohttp-jinja2==1.2.0",
"aiosmtpd==1.2",
"attrs==19.3.0",
"bleach==3.1.4",
"Jinja2==2.11.2",
"mail-parser==3.12.0",
"marshmallow==3.5.1",
"simplejson==3.17.0",
"click==7.1.2",
],
entry_points="""
[console_scripts]
smtpdev=smtpdev.cli:main
""",
)