-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
62 lines (53 loc) · 2.15 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
53
54
55
56
57
58
59
60
61
62
from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
def get_version():
"""Load the version from version.py, without importing it.
This function assumes that the last line in the file contains a variable defining the
version string with single quotes.
"""
try:
with open('medspacy_io/version.py', 'r') as f:
return f.read().split('\n')[0].split('=')[-1].replace('\'', '').strip()
except IOError:
return "0.0.0a1"
dir_path = path.dirname(path.realpath(__file__))
include_dirs = [dir_path + "/medspacy", dir_path]
setup(
name='medspacy_io',
packages=['medspacy_io', 'medspacy_io.reader', 'medspacy_io.writer', 'medspacy_io.consumer', 'medspacy_io.vectorizer'],
# this must be the same as the name above
version=get_version(),
description='A collection of modules to facilitate reading text from various sources and writing to various sources.',
author="medSpaCy",
author_email="[email protected]",
url='https://github.com/medspacy/medspacy_io', # use the URL to the github repo
keywords=['medspacy', 'reader', 'writer', 'ehost', 'brat', 'xmi', 'io', 'reader', 'writer', 'nlp', 'annotation'],
long_description=long_description,
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Development Status :: 3 - Alpha',
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
],
license='MIT License',
zip_safe=False,
install_requires=[
'lxml>=4.4.0', 'spacy>=2.2.2'
],
setup_requires=[
'lxml>=4.4.0', 'spacy>=2.2.2'
],
test_suite='nose.collector',
tests_require='nose',
include_package_data=True,
)