forked from bethgelab/foolbox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
59 lines (53 loc) · 1.72 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
from setuptools import setup
from setuptools import find_packages
from os.path import join, dirname
# We need io.open() (Python 3's default open) to specify file encodings
import io
with open(join(dirname(__file__), 'foolbox/VERSION')) as f:
version = f.read().strip()
try:
# obtain long description from README and CHANGES
# Specify encoding to get a unicode type in Python 2 and a str in Python 3
with io.open(join(dirname(__file__), 'README.rst'), 'r', encoding='utf-8') as f: # noqa: E501
README = f.read()
except IOError:
README = ''
install_requires = [
'numpy',
'scipy',
'setuptools',
]
tests_require = [
'pytest',
'pytest-cov',
]
setup(
name="foolbox",
version=version,
description="Python toolbox to create adversarial examples that fool neural networks", # noqa: E501
long_description=README,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="",
author="Jonas Rauber & Wieland Brendel",
author_email="[email protected]",
url="https://github.com/bethgelab/foolbox",
license="MIT",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'testing': tests_require,
':python_version == "2.7"': ['future', 'futures'],
},
)