-
Notifications
You must be signed in to change notification settings - Fork 57
/
setup.py
35 lines (27 loc) · 1.01 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
import os
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def get_about():
about = {}
basedir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(basedir, 'krwordrank', 'about.py')) as f:
exec(f.read(), about)
return about
def requirements():
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt'), encoding='utf-8') as f:
return f.read().splitlines()
about = get_about()
setup(
name="krwordrank",
version=about['__version__'],
author=about['__author__'],
author_email='soy.lovit@gmail.com',
url='https://github.com/lovit/KR-WordRank',
description="KR-WordRank: Korean Unsupervised Word/Keyword Extractor",
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=requirements(),
keywords = ['Korean word keyword extraction'],
packages=find_packages()
)