-
Notifications
You must be signed in to change notification settings - Fork 95
/
setup.py
65 lines (56 loc) · 2.07 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
import glob
import os
from setuptools import setup, find_packages
# read in the description from README
with open("README.rst") as stream:
long_description = stream.read()
github_url = 'https://github.com/LeapBeyond/scrubadub'
def read_packages_from_file(filename):
with open(filename, 'r') as stream:
for line in stream:
package = line.strip().split('#')[0]
if package:
yield package
def get_package_list(location):
location = os.path.join('requirements', location)
return list(read_packages_from_file(location))
# get the version
version = None
with open(os.path.join('scrubadub', '__init__.py')) as stream:
for line in stream:
if 'version' in line.lower():
version = line.split()[-1].replace('"', '').replace("'", '')
setup(
name='scrubadub',
version=version,
description=(
"Clean personally identifiable information from dirty dirty text."
),
long_description=long_description,
url=github_url,
download_url="%s/archives/master" % github_url,
author='Dean Malmgren',
author_email='dean.malmgren@datascopeanalytics.com',
license='MIT',
packages=find_packages(exclude=["tests", "tests.*"]),
classifiers=[
'Intended Audience :: Developers',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing',
'Topic :: Utilities',
],
install_requires=get_package_list('python'),
include_package_data=True,
package_data={'': ['scrubadub/detectors/models/sklearn_address/*.json']},
zip_safe=False,
)