-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
49 lines (42 loc) · 1.45 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
import setuptools
import configparser
with open("README.md", "r") as fh:
long_description = fh.read()
requirements_to_install = [
'igraph==0.10.4;python_version>="3.7"',
'python-igraph==0.9.1;python_version<"3.7"',
'gensim==3.8.3',
'click==7.1.2',
'hurry.filesize==0.9',
'kneed==0.3.1',
'nltk==3.6.2',
'rapidfuzz==2.11.1',
'numpy>=1.19.5',
'requests==2.25.1',
'spacy==3.0.5',
'strsimpy==0.2.0',
'update-checker==0.18.0'
]
# Import version number from version.py
config = configparser.ConfigParser()
config.read("cso_classifier/config.ini")
__version__ = config['classifier']['classifier_version']
setuptools.setup(
name="cso-classifier",
version=__version__,
author="Angelo Salatino",
author_email="angelo.salatino@open.ac.uk",
description="A light-weight Python app for classifying scientific documents with the topics from the Computer Science Ontology (https://cso.kmi.open.ac.uk/home).",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/angelosalatino/cso-classifier",
packages=['cso_classifier'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
package_data = {'cso_classifier' : ['assets/*','config.ini'] },
install_requires=requirements_to_install,
python_requires='>=3.6.0',
)