forked from mete0r/pyhwp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (74 loc) · 2.83 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- coding: utf-8 -*-
from __future__ import with_statement
import os.path
from sys import version
if version < '2.2.3':
from distutils.dist import DistributionMetadata as DistMeta
DistMeta.classifiers = None
DistMeta.download_url = None
import sys
install_requires = []
if 'java' not in sys.platform and sys.version < '3':
install_requires.append('OleFileIO_PL >= 0.23')
try:
__import__('json')
except ImportError:
install_requires.append('simplejson')
install_requires.append('docopt >= 0.6')
install_requires.append('hypua2jamo >= 0.2')
def read(filename):
import os.path
filename = os.path.join(os.path.dirname(__file__), filename)
f = open(filename, 'r')
try:
return f.read()
finally:
f.close()
from setuptools import setup, find_packages
setup(
name='pyhwp',
version=read('VERSION.txt').strip(),
license='GNU Affero GPL v3+',
description = 'hwp file format parser',
long_description=read('README'),
author = 'mete0r',
author_email = '[email protected]',
url='http://github.com/mete0r/pyhwp',
keywords='hwp',
packages = find_packages('pyhwp'),
package_dir={'': 'pyhwp'},
package_data=dict(hwp5=['README',
'COPYING',
'VERSION.txt',
'xsl/*.xsl',
'xsl/odt/*.xsl',
'odf-relaxng/OpenDocument-v1.2-os-*.rng']),
install_requires=install_requires,
entry_points = {
'console_scripts': [
'hwp5spec = hwp5.binspec:main',
'hwp5proc = hwp5.proc:main',
'hwp5odt = hwp5.hwp5odt:main',
'hwp5txt = hwp5.hwp5txt:main',
'hwp5html = hwp5.hwp5html:main',
]
},
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: Jython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing',
'Topic :: Text Processing :: Filters',
],
)