-
Notifications
You must be signed in to change notification settings - Fork 80
/
setup.py
37 lines (29 loc) · 1000 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
33
34
35
36
37
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, 'Korpora', '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="Korpora",
version=about['__version__'],
author=about['__author__'],
url='https://github.com/ko-nlp/Korpora',
description=about['__description__'],
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=requirements(),
keywords=[],
packages=find_packages(),
entry_points = {
'console_scripts': ['korpora=Korpora.cli:main'],
}
)