Download this file

62 lines (54 with data), 1.7 kB

 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
from setuptools import setup, find_packages
import os
import sys
#TODO: nltk, spacy data dependency
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 6)
# This check and everything above must remain compatible with Python 2.7.
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write("""
==========================
Unsupported Python version
==========================
This version of Django requires Python {}.{}, but you're trying to
install it on Python {}.{}.
This may be because you are using a version of pip that doesn't
understand the python_requires classifier. Make sure you
have pip >= 9.0 and setuptools >= 24.2, then try again:
$ python -m pip install --upgrade pip setuptools
$ python -m pip install django
This will install the latest version of Django which works on your
version of Python. If you can't upgrade your pip (or Python), request
an older version of Django:
$ python -m pip install "django<2"
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(name='ehrkit',
version='0.1.0',
description='NLP library for EHR data',
url='https://github.com/Yale-LILY/EHRKit',
author='LILY',
install_requires=[
'allennlp',
'torch',
'numpy',
'sklearn',
'pymysql',
'sshtunnel',
'nltk',
'spacy',
'gensim',
'pandas',
'bert-extractive-summarizer',
'files2rouge',
'scipy'
],
# license='MIT',
packages=['ehrkit', 'external', 'summarizers', 'summarizers.evaluate'],
license=license,
long_description=readme
)