Switch to unified view

a b/extractiveSummarization/setup.py
1
from setuptools import setup, find_packages
2
import os
3
import sys
4
#TODO: nltk, spacy data dependency
5
6
CURRENT_PYTHON = sys.version_info[:2]
7
REQUIRED_PYTHON = (3, 6)
8
9
# This check and everything above must remain compatible with Python 2.7.
10
if CURRENT_PYTHON < REQUIRED_PYTHON:
11
    sys.stderr.write("""
12
==========================
13
Unsupported Python version
14
==========================
15
This version of Django requires Python {}.{}, but you're trying to
16
install it on Python {}.{}.
17
This may be because you are using a version of pip that doesn't
18
understand the python_requires classifier. Make sure you
19
have pip >= 9.0 and setuptools >= 24.2, then try again:
20
    $ python -m pip install --upgrade pip setuptools
21
    $ python -m pip install django
22
This will install the latest version of Django which works on your
23
version of Python. If you can't upgrade your pip (or Python), request
24
an older version of Django:
25
    $ python -m pip install "django<2"
26
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
27
    sys.exit(1)
28
29
30
31
with open('README.md') as f:
32
      readme = f.read()
33
34
with open('LICENSE') as f:
35
    license = f.read()
36
37
setup(name='ehrkit',
38
      version='0.1.0',
39
      description='NLP library for EHR data',
40
      url='https://github.com/Yale-LILY/EHRKit',
41
      author='LILY',
42
      install_requires=[
43
        'allennlp',
44
        'torch',
45
        'numpy',
46
        'sklearn',
47
        'pymysql',
48
        'sshtunnel',
49
        'nltk',
50
        'spacy',
51
        'gensim',
52
        'pandas',
53
        'bert-extractive-summarizer',
54
        'files2rouge',
55
        'scipy'
56
      ],
57
      # license='MIT',
58
      packages=['ehrkit', 'external', 'summarizers', 'summarizers.evaluate'],
59
      license=license,
60
      long_description=readme
61
)