forked from zhangyunhao116/zmail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (58 loc) · 2.16 KB
/
setup.py
File metadata and controls
71 lines (58 loc) · 2.16 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
import os
import sys
from setuptools import find_packages, setup
PROJECT_NAME = 'zmail'
MODULE_NAME = 'zmail'
# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
os.system('pip3 install twine')
os.system('pip3 install wheel')
os.system('python3 setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
os.system('rm -rf build dist .egg zmail.egg-info')
sys.exit()
# 'setup.py test' shortcut.
if sys.argv[-1] == 'test':
os.system('pip3 install pytest')
os.system('pytest tests/')
sys.exit()
# 'setup.py isort' shortcut.
if sys.argv[-1] == 'isort':
os.system('isort -rc *.py')
os.system('isort -rc zmail/*.py')
os.system('isort -rc tests/*.py')
sys.exit()
# 'setup.py flake8' shortcut.
if sys.argv[-1] in ('flake8', 'flake'):
os.system('flake8 --ignore=E501 zmail/*.py tests/*.py')
sys.exit()
setup(
name='zmail',
version='0.2.8',
author='ZYunH',
author_email='zyunhjob@163.com',
description='Zmail makes it easier to send and retrieve emails in python3.',
long_description="Zmail makes it easier to send and retrieve emails in python3."
" There's no need to manually add—server address, port, suitable protocol, and so on—"
"Zmail will do it for you. Besides, use a python dict as a mail is also more intuitive.",
keywords='email python3 package',
url='https://github.com/ZYunH/zmail',
license="MIT Licence",
platforms='all',
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules'
),
packages=find_packages(),
include_package_data=True,
)