-
Notifications
You must be signed in to change notification settings - Fork 356
/
setup.py
52 lines (45 loc) · 1.66 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
#!/usr/bin/env python
import sys
from setuptools import Command, find_packages, setup
from setuptools.command.develop import develop
from setuptools.command.install import install
packages = find_packages()
version_str = '5.8.1'
if sys.version_info.major < 3:
print("The ConceptNet 5 code can only run in Python 3.")
sys.exit(1)
DESCRIPTION = open('README.md').read()
setup(
name='ConceptNet',
version=version_str,
description='A semantic network of general knowledge',
long_description=DESCRIPTION,
long_description_content_type='text/markdown',
author="Robyn Speer",
author_email='rspeer@luminoso.com',
packages=packages,
include_package_data=True,
exclude_package_data={'conceptnet5': ['support_data/testdata']},
install_requires=[
'snakemake < 5.6', 'click', 'requests', 'ftfy', 'msgpack-python', 'numpy',
'langcodes >= 2.1', 'wordfreq >= 2.0.1',
'xmltodict >= 0.11.0, < 0.12.0', 'ordered_set', 'psycopg2-binary',
'marisa-trie', 'tables >= 3.5.1'
],
python_requires='>=3.5',
tests_require=['pytest', 'PyLD'],
license='Apache License 2.0',
entry_points={
'console_scripts': [
'cn5-vectors = conceptnet5.vectors.cli:cli',
'cn5-read = conceptnet5.readers.cli:cli',
'cn5-build = conceptnet5.builders.cli:cli',
'cn5-convert = conceptnet5.formats.convert:cli',
'cn5-db = conceptnet5.db.cli:cli'
]
},
extras_require={
'vectors': ['numpy', 'scipy', 'statsmodels', 'tables', 'pandas', 'scikit-learn',
'mecab-python3', 'jieba', 'marisa_trie', 'matplotlib >= 2', 'annoy']
},
)