-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
28 lines (24 loc) · 905 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
import os
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 6):
sys.exit("Sorry, Python >= 3.6 is required for ko_lm_dataformat")
with open("requirements.txt") as f:
require_packages = [line.strip() for line in f]
with open(os.path.join("ko_lm_dataformat", "version.txt")) as f:
version = f.read().strip()
setup(
name="ko_lm_dataformat",
version=version,
author="Jangwon Park",
author_email="[email protected]",
description="A utility for storing and reading files for Korean LM training.",
long_description=open("./README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url="https://github.com/monologg/ko_lm_dataformat",
packages=find_packages(exclude=["tests"]),
python_requires=">=3.6",
zip_safe=False,
include_package_data=True,
install_requires=require_packages,
)