forked from tobyqin/xmindparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (43 loc) · 1.63 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
"""
Documentation
-------------
xmindparser is a tool to help you convert xmind file to programmable data type, e.g. json, xml.
Detail usage: https://github.com/tobyqin/xmindparser
"""
from codecs import open
from os import path
from setuptools import setup, find_packages
current_dir = path.abspath(path.dirname(__file__))
long_description = __doc__
with open(path.join(current_dir, "CHANGELOG.md"), encoding="utf-8") as f:
long_description += "\n" + f.read()
classifiers = ["License :: OSI Approved :: MIT License",
"Topic :: Software Development",
"Topic :: Utilities",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X"] + [
("Programming Language :: Python :: %s" % x) for x in "3.4 3.5 3.6 3.7 3.8".split()]
def command_line():
target = "xmindparser.main:main"
entry_points = []
entry_points.append("xmindparser=%s" % target)
return entry_points
def main():
setup(
name="xmindparser",
description="Convert xmind to programmable data types, support xmind pro and xmind zen file types.",
keywords="xmind parser converter json xml",
long_description=long_description,
classifiers=classifiers,
version="1.0.8",
author="Toby Qin",
author_email="[email protected]",
url="https://github.com/tobyqin/xmindparser",
packages=find_packages(exclude=['tests', 'tests.*']),
package_data={},
install_requires=[],
entry_points={"console_scripts": command_line(), },
zip_safe=False
)
if __name__ == "__main__":
main()