-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
54 lines (45 loc) · 1.46 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
import codecs
import os
from setuptools import find_packages, setup
with open("README.md", "r") as fh:
long_description = fh.read()
install_requires = [
"numpy>=1.18.0",
"scipy>=1.4.1",
"scikit-learn>=0.22.2",
"setuptools",
"tqdm",
"simanneal",
]
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r", encoding="utf-8") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
setup(
name="uret",
version=get_version("uret/__init__.py"),
description="Toolkit for generic adversarial machine learning evaluations.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Kevin Eykholt",
author_email="kheykholt@ibm.com",
maintainer="Kevin Eykholt",
maintainer_email="kheykholt@ibm.com",
url="https://github.com/IBM/URET",
license="MIT",
install_requires=install_requires,
extras_require={
"all": ["lief", "pandas", "tensorflow", "keras", "h5py", "keras-rl"],
"binary": ["lief"],
"rl": ["tensorflow", "keras", "h5py", "keras-rl"],
"non-framework": ["pandas"]
},
packages=find_packages(),
include_package_data=True,
)