-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
32 lines (25 loc) · 822 Bytes
/
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
#!/usr/bin/env python
from setuptools import setup, find_packages
from pkg_resources import parse_requirements
import hanja
def readme():
try:
with open("README.rst") as f:
return f.read()
except:
return "(Could not read from README.rst)"
with open("requirements.txt") as f:
install_requires = [str(x) for x in parse_requirements(f.read())]
setup(
name="hanja",
version=hanja.__version__,
description="Hangul & Hanja library",
long_description=readme(),
author=hanja.__author__,
author_email=hanja.__email__,
url="https://github.com/suminb/hanja",
packages=find_packages(include=["hanja", "hanja.*"]),
package_data={"": ["requirements.txt"], "hanja": ["table.yml"]},
include_package_data=True,
install_requires=install_requires,
)