Diff of /setup.py [000000] .. [6c353a]

Switch to unified view

a b/setup.py
1
import sys
2
3
from setuptools import setup, find_packages
4
from setuptools.command.test import test as TestCommand
5
6
from medacy import __version__, __authors__
7
8
packages = find_packages()
9
10
11
def readme():
12
    with open('README.md') as f:
13
        return f.read()
14
15
16
class PyTest(TestCommand):
17
    """
18
    Custom Test Configuration Class
19
    Read here for details: https://docs.pytest.org/en/latest/goodpractices.html
20
    """
21
    user_options = [("pytest-args=", "a", "Arguments to pass to pytest")]
22
23
    def initialize_options(self):
24
        TestCommand.initialize_options(self)
25
        self.pytest_args = "--cov-config .coveragerc --cov-report html --cov-report term --cov=medacy"
26
27
    def run_tests(self):
28
        import shlex
29
        # import here, cause outside the eggs aren't loaded
30
        import pytest
31
32
        errno = pytest.main(shlex.split(self.pytest_args))
33
        sys.exit(errno)
34
35
setup(
36
    name='medacy',
37
    version=__version__,
38
    python_requires='>=3.6',
39
    license='GNU GENERAL PUBLIC LICENSE',
40
    description='Medical Natural Language Processing (NLP) with spaCy',
41
    long_description=readme(),
42
    packages=packages,
43
    url='https://github.com/NLPatVCU/medaCy',
44
    author=__authors__,
45
    keywords='natural-language-processing medical-natural-language-processing machine-learning nlp-library metamap clinical-text-processing',
46
    classifiers=[
47
        'Status :: 4 - Beta',
48
        'License :: OSI Approved :: GNU General Public License (GPL)',
49
        'Programming Language :: Python :: 3.7',
50
        'Natural Language :: English',
51
        'Topic :: Text Processing :: Linguistic',
52
        'Intended Audience :: Science/Research'
53
    ],
54
    dependency_links=[
55
        'https://github.com/explosion/spacy-models/releases//tag/en_core_web_sm-2.2.5'
56
    ],
57
    install_requires=[
58
        'spacy==2.2.2',
59
        'scispacy==0.2.2',
60
        'scikit-learn>=0.20.0',
61
        'torch>=1.2.0',
62
        'pytorch-crf==0.7.2',
63
        'numpy>=1.16.1',
64
        'transformers==2.3.0',
65
        'sklearn-crfsuite',
66
        'xmltodict>=0.11.0',
67
        'joblib>=0.12.5',
68
        'tabulate>=0.8.2',
69
        'pathos>=0.2.2.1',
70
        'msgpack>=0.3.0,<0.6',
71
        'msgpack-numpy<0.4.4.0',
72
        'gensim==3.8.0',
73
        'en_core_web_sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.5/en_core_web_sm-2.2.5.tar.gz'
74
    ],
75
    extras_require={
76
        ':python_version == "3.6"': [
77
            'dataclasses',
78
        ],
79
    },
80
    tests_require=[
81
        "pytest",
82
        "pytest-cov",
83
    ],
84
    cmdclass={"pytest": PyTest},
85
    include_package_data=True,
86
    zip_safe=False
87
)