forked from davedash/mysql-anonymous
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
45 lines (36 loc) · 1.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
"""
Contributors can benefit from having real data when they are developing. This script can do a few things (see anonymize.yml):
Truncate any tables (logs, and other cruft which may have sensitive data)
Nullify fields (emails, passwords, etc)
Fill in random/arbitrary data:
Random integers
Random IP addresses
Email addresses
Usernames
Delete rows based on simple rules: e.g. DELETE FROM mytable WHERE private = "Yes":
database: tables: mytable: delete: private: Yes
"""
from setuptools import setup
setup_params = {
"entry_points": {
"console_scripts": [
"anonymize=anonymize:main"
]
}
}
setup(
author="Dave Dash",
author_email="[email protected], [email protected]",
version='0.2',
name="Mysql Anonymous",
url="https://github.com/davedash/mysql-anonymous",
packages=["anonymize"],
platforms=['python >= 2.7'],
description=__doc__,
long_description=__doc__,
install_requires=["PyYAML==4.2b2"],
py_modules=["anonymize"],
package_data={'': ['sample1.yml', 'sample2.yml']},
include_package_data=True,
**setup_params
)