File size: 1,086 Bytes
e118086
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import codecs
import os

from setuptools import find_packages, setup

install_requires = [
    "maite==0.3.4",
    "adversarial-robustness-toolbox==1.16.0",
    "scikit-learn>=0.22.2,<1.2.0",
    "six",
    "setuptools",
    "tqdm",
]


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="hardened-extension-adversarial-robustness-toolbox",
    version=get_version("src/heart/__init__.py"),
    description="Extension for ART compatible with MAITE.",
    author="IBM",
    author_email="<email>",
    maintainer="IBM",
    maintainer_email="<email>",
    license="MIT",
    install_requires=install_requires,
    include_package_data=True,
    python_requires=">=3.9,<3.11",
)