-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
58 lines (46 loc) · 1.57 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
from subprocess import check_call
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
import mycroft
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
check_call("python -m spacy download en".split())
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
check_call("python -m spacy download en".split())
install.run(self)
def readme():
with open('README.md') as f:
return f.read()
setup(
name="mycroft",
version=mycroft.__version__,
packages=["mycroft"],
url="https://github.com/wpm/mycroft",
license="MIT",
keywords="lstm keras spacy machine-learning natural-language-processing rnn word-embeddings",
python_requires=">=3.5",
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Artificial Intelligence"
],
entry_points={
"console_scripts": ["mycroft=mycroft.console:default_main"],
},
author="W.P. McNeill",
author_email="billmcn@gmail.com",
description="Text classifier",
long_description=readme(),
install_requires=["cytoolz", "keras", "numpy", "pandas", "scikit-learn", "spacy"],
cmdclass={
"develop": PostDevelopCommand,
"install": PostInstallCommand
}
)