This repository has been archived by the owner on Jun 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
71 lines (59 loc) · 2.24 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
# from distutils.command.install import INSTALL_SCHEMES
from setuptools import setup, find_packages
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("CHANGELOG.rst") as history_file:
history = history_file.read()
setup_requirements = [
"pytest-runner",
# TODO(jawahar273): put setup requirements
# (distutils extensions, etc.) here
]
def parse_requirements(filename):
""" load requirements from a pip requirements file
refer: `link <https://stackoverflow.com/questions/25192794/no-module-named-pip-req/>`_
"""
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
# read the `extras_require.json` for getting
# extras_require depencencys.
extras_require = {
"ujson": parse_requirements("requirements_ujson.txt"),
"huey": parse_requirements("requirements_huey.txt"),
"xxhash": parse_requirements("requirements_xxhash.txt"),
}
setup(
name="pntl",
version="0.3.6",
description=(
"used to interface with Senna and" " stanford-parser.jar for dependency parsing"
),
long_description="\n\n" + readme + "\n\n" + history,
author="Jawahar S",
author_email="[email protected]",
url="https://github.com/jawahar273/practNLPTools-lite",
packages=find_packages(include=["pntl.*"]),
entry_points={"console_scripts": ["pntl=pntl.cli:user_test"]},
include_package_data=True,
install_requires=parse_requirements("requirements.txt"),
license="MIT license",
zip_safe=False,
keywords="practnlptools-lite senna python pntl".split(),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering :: Information Analysis",
],
test_suite="tests",
tests_require=parse_requirements("requirements_dev.txt"),
setup_requires=setup_requirements,
extras_require=extras_require,
)