From 8aefcd1188ae8281ca5e4b22d7d71fa96fe4ab8f Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 3 Oct 2023 15:18:42 +0100 Subject: [PATCH 1/3] Update to immutables v0.19 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 409f284..deb48d9 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ "contextvars==2.4; python_version < '3.7'", "docopt==0.6.2", "idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", - "immutables==0.14; python_version >= '3.5'", + "immutables==0.19; python_version >= '3.5'", "loguru==0.5.1", "requests==2.24.0", "ua-parser==0.10.0", From 345616b8fb74147abf8c7a6e00f5157296ca8afc Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 15 Nov 2024 09:46:00 +0000 Subject: [PATCH 2/3] Bump `certifi` version to avoid CVE --- setup.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index deb48d9..fd1f866 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,14 @@ """ Generates random but realistic user agents on a command line (or via API) """ -from setuptools import find_packages, setup from os import path + +from setuptools import find_packages, setup + this_directory = path.abspath(path.dirname(__file__)) -with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: +with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( @@ -18,14 +20,14 @@ author_email="cmrhorsley@gmail.com", description="Generates random but realistic user agents on a command line (or via API)", long_description=long_description, - long_description_content_type='text/markdown', + long_description_content_type="text/markdown", packages=find_packages(exclude=["tests"]), include_package_data=True, zip_safe=False, platforms="any", install_requires=[ "aiocontextvars==0.2.2; python_version < '3.7'", - "certifi==2020.6.20", + "certifi>=2024.8.30", "chardet==3.0.4", "contextvars==2.4; python_version < '3.7'", "docopt==0.6.2", @@ -38,7 +40,11 @@ "user-agents==2.1", ], dependency_links=[], - entry_points={"console_scripts": ["uagen = ua_gen.cli:main",],}, + entry_points={ + "console_scripts": [ + "uagen = ua_gen.cli:main", + ], + }, classifiers=[ # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers # 'Development Status :: 1 - Planning', From 0dbfdc244e5416975b09b5e6dc6a7b4208002f2d Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 18 Nov 2024 09:45:50 +0000 Subject: [PATCH 3/3] Bump some dependency versions due to CVEs --- .gitignore | 1 + setup.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index db59102..845ceeb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ build/ .coverage venv/ +.pyenv/ diff --git a/setup.py b/setup.py index fd1f866..4dd200e 100644 --- a/setup.py +++ b/setup.py @@ -31,12 +31,12 @@ "chardet==3.0.4", "contextvars==2.4; python_version < '3.7'", "docopt==0.6.2", - "idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "idna>3.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "immutables==0.19; python_version >= '3.5'", "loguru==0.5.1", - "requests==2.24.0", + "requests", "ua-parser==0.10.0", - "urllib3==1.25.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", + "urllib3>=1.26.17; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "user-agents==2.1", ], dependency_links=[],