-
Notifications
You must be signed in to change notification settings - Fork 259
/
Copy pathsetup.py
executable file
·76 lines (63 loc) · 2.14 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
72
73
74
75
76
from os import path
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
from subprocess import call
here = path.abspath(path.dirname(__file__))
class PostDevelop(develop):
"""Post-installation for development mode."""
def run(self):
develop.run(self)
class PostInstall(install):
"""Post-installation for production mode."""
def run(self):
install.run(self)
class MyInstall(install):
def run(self):
call(["pip install -r requirements.txt --no-clean"], shell=True)
install.run(self)
# Get package and author details.
about = {}
with open(path.join(here, "cocoNLP", "__version__.py")) as f:
exec(f.read(), about)
setup(
# Name of the module
name="cocoNLP",
# Details
version=about["__version__"],
description=about["__description__"],
#long_description=long_description,
# The project's main homepage.
url=about["__url__"],
# Author details
author=about["__author__"],
author_email=about["__author_email__"],
# License
license=about["__license__"],
packages=["cocoNLP"],
test_suite="tests",
keywords="nlp text-mining information extraction",
include_package_data=True,
classifiers=[
# Intended Audience.
"Intended Audience :: Developers",
"Intended Audience :: Education",
# License.
"License :: OSI Approved :: MIT License",
# Project maturity.
"Development Status :: 3 - Alpha",
# Operating Systems.
"Operating System :: POSIX",
# Supported Languages.
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
# Topic tags.
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
],
setup_requires=["jieba","pyhanlp","phone","phonenumbers","regex","arrow"],
install_requires=["jieba","pyhanlp","phone","phonenumbers","regex","arrow"],
cmdclass={'install': MyInstall},
)