-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·88 lines (73 loc) · 2.81 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
"""
OneFL Deduper
------------
OneFlorda Entity Resolution Software (aka Deduper)
<https://github.com/ufbmi/onefl-deduper> is designed to generate hashes of the
specific patient data elements.
Multiple generated hashes are then matched against the registry of "known"
hashes and associated with a Unique Universal Identifier (aka OneFlorida UUID).
The UUID is used to de-duplicate medical records such as
demographics, procedures, diagnoses, vitals, lab results submitted
from different hospital networks.
"""
import unittest
from pip.req import parse_requirements
from setuptools import setup, find_packages
def get_test_suite():
"""
Prepare a test-suite callable with:
python setup.py test
"""
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
def load_requirements():
""" Helps to avoid storing requirements in more than one file"""
reqs = parse_requirements('requirements-to-freeze.txt', session=False)
reqs_list = [str(ir.req) for ir in reqs]
return reqs_list
# Configure the package build and distribution
# @see https://github.com/pypa/setuptools_scm
# @see http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool # NOQA
#
# To record the files created use:
# python setup.py install --record files.txt
setup(
name="deduper",
use_scm_version=True,
url="https://github.com/ufbmi/onefl-deduper",
license="MIT",
author="Andrei Sura",
author_email="bmi-developers@ad.ufl.edu",
description="OneFlorida De-duplication Software",
long_description=__doc__,
keywords=["entity resolution", "deduplication", "record linkage"],
packages=find_packages(exclude=['tests']),
include_package_data=True,
platforms="any", # darwin, linux2
setup_requires=["setuptools_scm"],
install_requires=load_requirements(),
# tests_require=["mock", "pytest-cov"], # requirements included above
test_suite="setup.get_test_suite",
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
],
entry_points={
"console_scripts": [
"hasher = run.hasher:main",
"linker = run.linker:main",
],
},
)