forked from sdv-dev/SDMetrics
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
133 lines (118 loc) · 3.61 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.md', encoding='utf-8') as readme_file:
readme = readme_file.read()
with open('HISTORY.md', encoding='utf-8') as history_file:
history = history_file.read()
install_requires = [
'torch',
"numpy>=1.18.0,<1.20.0;python_version<'3.7'",
"numpy>=1.20.0,<2;python_version>='3.7'",
'pandas>=1.1.3,<2',
'scikit-learn>=0.24,<2',
'scipy>=1.5.4,<2',
'copulas>=0.7.0,<0.8',
'tqdm>=4.15,<5',
'plotly>=5.10.0,<6',
'pykeops>=2.1,<3',
'geomloss>=0.2.5,<1',
'matplotlib-venn>=0.11.7,<1',
'dash'
]
pomegranate_requires = [
"pomegranate>=0.13.4,<0.14.2;python_version<'3.7'",
"pomegranate>=0.14.1,<0.14.7;python_version>='3.7'",
]
torch_requires = [
'torch>=1.8.0,<2',
]
setup_requires = [
'pytest-runner>=2.11.1',
]
tests_require = [
'pytest>=3.4.2',
'pytest-cov>=2.6.0',
'pytest-rerunfailures>=10',
'jupyter>=1.0.0,<2',
'rundoc>=0.4.3,<0.5',
'invoke',
]
development_requires = [
# general
'bumpversion>=0.5.3,<0.6',
'pip>=9.0.1',
'watchdog>=0.8.3,<0.11',
# style check
'flake8>=3.7.7,<4',
'flake8-absolute-import>=1.0,<2',
'isort>=4.3.4,<5',
'flake8-variables-names>=0.0.4,<0.1',
'pydocstyle>=6.1.1,<6.2',
'flake8-sfs>=0.0.3,<0.1',
'flake8-docstrings>=1.5.0,<2',
'dlint>=0.11.0,<0.12', # code security addon for flake8
'pandas-vet>=0.2.2,<0.3',
'pep8-naming>=0.12.1,<0.13',
'flake8-pytest-style>=1.5.0,<2',
'flake8-builtins>=1.5.3,<1.6',
'flake8-comprehensions>=3.6.1,<3.7',
'flake8-debugger>=4.0.0,<4.1',
'flake8-mock>=0.3,<0.4',
'flake8-fixme>=1.1.1,<1.2',
'flake8-eradicate>=1.1.0,<1.2',
'flake8-mutable>=1.2.0,<1.3',
'flake8-print>=4.0.0,<4.1',
'flake8-expression-complexity>=0.0.9,<0.1',
'flake8-multiline-containers>=0.0.18,<0.1',
'flake8-quotes>=3.3.0,<4',
# fix style issues
'autoflake>=1.1,<2',
'autopep8>=1.4.3,<1.6',
# distribute on PyPI
'packaging>=20,<21',
'twine>=1.10.0,<4',
'wheel>=0.30.0',
# Advanced testing
'coverage>=4.5.1,<6',
'tox>=2.9.1,<4',
]
setup(
author='MIT Data To AI Lab',
author_email='dailabmit@gmail.com',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
description='Metrics for Synthetic Data Generation Projects',
extras_require={
'test': tests_require + pomegranate_requires + torch_requires,
'torch': torch_requires,
'pomegranate': pomegranate_requires,
'dev': development_requires + tests_require + pomegranate_requires + torch_requires,
},
install_package_data=True,
install_requires=install_requires,
license='MIT license',
long_description=readme + '\n\n' + history,
long_description_content_type='text/markdown',
include_package_data=True,
keywords='sdmetrics sdmetrics SDMetrics',
name='sdmetrics',
packages=find_packages(include=['sdmetrics', 'sdmetrics.*']),
python_requires='>=3.6,<3.10',
setup_requires=setup_requires,
test_suite='tests',
tests_require=tests_require,
url='https://github.com/sdv-dev/SDMetrics',
version='0.8.2.dev0',
zip_safe=False,
)