-
-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:bethgelab/foolbox
- Loading branch information
Showing
2 changed files
with
51 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,3 @@ | ||
[metadata] | ||
name = foolbox | ||
url = https://github.com/bethgelab/foolbox | ||
license = MIT | ||
author = Jonas Rauber & Wieland Brendel | ||
author_email = [email protected] | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.5 | ||
Topic :: Scientific/Engineering :: Artificial Intelligence | ||
description = Python toolbox to create adversarial examples that fool neural networks | ||
long_description = file: README.rst | ||
|
||
[options] | ||
zip_safe = False | ||
include_package_data = True | ||
packages = find: | ||
install_requires = | ||
numpy | ||
scipy | ||
tests_require = | ||
pytest | ||
pytest-cov | ||
|
||
[tool:pytest] | ||
addopts = | ||
-v --doctest-modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,57 @@ | ||
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() | ||
|
||
setup(version=version) | ||
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', | ||
] | ||
|
||
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, | ||
}, | ||
) |