forked from aspineux/pyzmail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (62 loc) · 2.31 KB
/
setup.py
File metadata and controls
71 lines (62 loc) · 2.31 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
#!/bin/env python
# pyzmail/setup.py
# (c) alain.spineux@gmail.com
# http://www.magiksys.net/pyzmail
import os
import sys
import shutil
from setuptools import setup, find_packages
basename = "pyzmail"
# retrieve $version
version = ""
for line in open("pyzmail/version.py"):
if line.startswith("__version__ ="):
version = line[15:].rstrip()[:-1]
break
if not version:
print("!!!!!!!!!!!!!!!!!!!!!! VERSION NOT FOUND !!!!!!!!!!!!!!!!!!!!!!!!!")
sys.exit(1)
print("VERSION", version)
doc_dir = "share/doc/%s-%s" % (basename, version)
data_files = [(doc_dir, ["README.txt", "Changelog.txt", "LICENSE.txt"])]
setup(
name="pyzmail",
version=version,
author="Alain Spineux",
author_email="alain.spineux@gmail.com",
url="http://www.magiksys.net/pyzmail",
keywords="email",
# maintainer = 'email', #
description="Python easy mail library, to parse, compose and send emails",
long_description="pyzmail is a high level mail library for Python 2.x & 3.x. "
"It provides functions and classes that help to parse, "
"compose and send emails. pyzmail exists because their "
"is no reasons that handling mails with Python would "
"be more difficult than with Outlook or Thunderbird. "
"pyzmail hide the difficulties of managing the MIME "
"structure and of the encoding/decoding for "
"internationalized emails. "
"pyzmail is well documented, has a lot of code samples "
"and include 2 scripts: pyzsendmail and pyzinfomail",
license="LGPL",
packages=["pyzmail", "pyzmail.tests"],
test_suite="pyzmail.tests",
scripts=["scripts/pyzsendmail", "scripts/pyzinfomail"],
data_files=data_files,
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: OS Independent",
"Topic :: Communications :: Email",
"Topic :: System :: Networking",
"Topic :: Internet",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
)
if "sdist" in sys.argv and "upload" in sys.argv:
print(
"After an upload, don't forget to change 'maintainer' to 'email' to be hight in pypi index"
)