-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (31 loc) · 907 Bytes
/
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
import glob
import os
from setuptools import setup
# read in the dependencies from the virtualenv requirements file
dependencies = []
filename = os.path.join("requirements", "python")
with open(filename, 'r') as stream:
for line in stream:
package = line.strip().split('#')[0]
if package:
dependencies.append(package)
# get the version
version = None
with open(os.path.join('desensitize', '__init__.py')) as stream:
for line in stream:
if 'version' in line.lower():
version = line.split()[-1].replace('"', '').replace("'", '')
setup(
name='desensitize',
version=version,
description=(
"Clean personally identifiable information from dirty dirty text."
),
packages=[
'desensitize',
'desensitize.implement',
'desensitize.detectors',
],
install_requires=dependencies,
zip_safe=False,
)