From c46ee933e90c654513accbdc07a6559fdb7a93c7 Mon Sep 17 00:00:00 2001 From: Josh Collyer Date: Thu, 26 Jun 2025 10:30:21 +0100 Subject: [PATCH 1/3] Updating requests to >=2.3.0 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 96c1582e..8b57b4ea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,6 @@ scipy>=0.14.0 # For robustbench. tqdm>=4.56.1 -requests>=2.25.1 +requests>=2.3.0 pandas>=1.2.4 numpy>=1.19.4 From ca0eb342915f637bdcced60405176ac333f64301 Mon Sep 17 00:00:00 2001 From: Josh Collyer Date: Thu, 26 Jun 2025 10:47:51 +0100 Subject: [PATCH 2/3] Bumping requests version in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 684d5871..119a971e 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ ], install_requires=[ 'torch>=1.7.1', 'torchvision>=0.8.2', 'scipy>=0.14.0', 'tqdm>=4.56.1', - 'requests~=2.25.1', 'numpy>=1.19.4', + 'requests~=2.3.0', 'numpy>=1.19.4', ], python_requires = '>=3', zip_safe = False, From d95f32c130f5f95a7d2138c099d1352aceddad7c Mon Sep 17 00:00:00 2001 From: Josh Collyer Date: Thu, 26 Jun 2025 10:57:51 +0100 Subject: [PATCH 3/3] Amend setup.py --- setup.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 119a971e..8c47c78c 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -import setuptools +from setuptools import setup, find_packages # read the contents of your README file from os import path @@ -6,23 +6,22 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() +with open('requirements.txt') as f: + requirements = f.read().splitlines() -setuptools.setup( +setup( name = 'torchattacks', version = '3.5.1', description='Torchattacks is a PyTorch library that provides adversarial attacks to generate adversarial examples.', author = 'Harry Kim', author_email='24k.harry@gmail.com', - packages = setuptools.find_packages(), + packages = find_packages(), keyword = ['deeplearning', 'adversarial', 'attack', 'pytorch', 'torch', 'rpgd', 'eotpgd', 'pgd', 'fgsm', 'cw', 'rfgsm', 'ifgsm', 'iterll', 'bim', 'stepll', 'deepfool', 'trades', 'fast', 'mifgsm', 'dlr', 'apgd', 'fab', 'square', 'autoattack', 'difgsm', 'pixle' ], - install_requires=[ - 'torch>=1.7.1', 'torchvision>=0.8.2', 'scipy>=0.14.0', 'tqdm>=4.56.1', - 'requests~=2.3.0', 'numpy>=1.19.4', - ], + install_requires=requirements, python_requires = '>=3', zip_safe = False, license="MIT",