forked from cihai/unihan-etl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (48 loc) · 1.54 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
#!/usr/bin/env python
# -*- coding: utf8 - *-
"""cihaidata-unihan lives at <https://github.com/cihai/cihaidata-unihan>."""
import os
import sys
from setuptools import setup, find_packages
sys.path.insert(0, os.getcwd()) # we want to grab this:
from package_metadata import p
with open('requirements.pip') as f:
install_reqs = [line for line in f.read().split('\n') if line]
tests_reqs = []
if sys.version_info < (2, 7):
install_reqs += ['argparse']
tests_reqs += ['unittest2']
readme = open('README.rst').read()
history = open('CHANGES').read().replace('.. :changelog:', '')
setup(
name=p.title,
version=p.version,
url='https://github.com/cihai/cihaidata-unihan',
download_url='https://pypi.python.org/pypi/cihaidata-unihan',
license=p.license,
author=p.author,
author_email=p.email,
description=p.description,
long_description=readme,
include_package_data=True,
install_requires=install_reqs,
tests_require=tests_reqs,
test_suite='testsuite',
zip_safe=False,
keywords=p.title,
packages=find_packages(exclude=["doc"]),
package_data={
'cihaidata-unihan': ['data/*']
},
classifiers=[
'Development Status :: 3 - Alpha',
"License :: OSI Approved :: MIT License",
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
"Topic :: Utilities",
"Topic :: System :: Shells",
],
)