-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
74 lines (64 loc) · 2.03 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
63
64
65
66
67
68
69
70
71
72
73
74
import os
import sys
import setuptools
from setuptools.command.install import install
import deidentify
VERSION = deidentify.__version__
with open("README.md", "r") as fh:
readme = fh.read()
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches the version of the python package"""
def run(self):
tag = os.getenv('RELEASE_VERSION')
if tag != VERSION:
info = "Git tag: {} does not match the version of this package: {}".format(tag, VERSION)
sys.exit(info)
else:
info = "Git tag: {} matches package version: {}".format(tag, VERSION)
print(info)
setuptools.setup(
name="deidentify",
version=VERSION,
author="Jan Trienes",
author_email="[email protected]",
description="De-identify free-text medical records",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/nedap/deidentify",
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
package_data={
'': ['LICENSE'],
'deidentify': [
'surrogates/generators/resources/*.csv',
'surrogates/generators/resources/*.txt'
]
},
license="MIT License",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
],
python_requires='>=3.7',
install_requires=[
'requests',
'flair>=0.4.3,<0.11',
'torch>=1.1.0',
'spacy>=2.2.1,<3',
'tqdm>=4.29',
'deduce>=1.0.2',
'loguru>=0.2.5',
'sklearn-crfsuite>=0.3.6',
'unidecode>=1.0.23',
'pandas>=0.23.4',
'nameparser>=1.0',
'py-dateinfer>=0.4.5'
],
cmdclass={
'verify': VerifyVersionCommand,
}
)