From 050addf8767187aa32b92613caae171acc6b84d4 Mon Sep 17 00:00:00 2001 From: Dalena Date: Thu, 26 Sep 2024 05:59:49 -1000 Subject: [PATCH] fix: user agent import (#62) * fix: user agent import * fix: use ape.utils * chore: dependencies * fix: force plugin dependencies --------- Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> --- ape_safe/client/__init__.py | 2 +- setup.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ape_safe/client/__init__.py b/ape_safe/client/__init__.py index f1d350f..4c24073 100644 --- a/ape_safe/client/__init__.py +++ b/ape_safe/client/__init__.py @@ -4,7 +4,7 @@ from typing import Dict, Iterator, Optional, Union, cast from ape.types import AddressType, HexBytes, MessageSignature -from ape.utils.misc import USER_AGENT, get_package_version +from ape.utils import USER_AGENT, get_package_version from eip712.common import SafeTxV1, SafeTxV2 from ape_safe.client.base import BaseSafeClient diff --git a/setup.py b/setup.py index cbb4065..06d3a05 100644 --- a/setup.py +++ b/setup.py @@ -7,15 +7,15 @@ "pytest-xdist", # multi-process runner "pytest-cov", # Coverage analyzer plugin "hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer - "ape-foundry", # Used as the testing provider - "ape-solidity", # Needed for compiling the Safe contracts + "ape-foundry>=0.8", # Used as the testing provider + "ape-solidity>=0.8", # Needed for compiling the Safe contracts ], "lint": [ - "black>=24.4.2,<25", # Auto-formatter and linter - "mypy>=1.10.0,<2", # Static type analyzer + "black>=24.8.0,<25", # Auto-formatter and linter + "mypy>=1.11.1,<2", # Static type analyzer "types-requests", # Needed for mypy type shed "types-setuptools", # Needed for mypy type shed - "flake8>=7.0.0,<8", # Style linter + "flake8>=7.1.1,<8", # Style linter "isort>=5.13.2,<6", # Import sorting linter "mdformat>=0.7.17,<0.8", # Docs formatter and linter "mdformat-pyproject>=0.0.1", # Allows configuring in pyproject.toml @@ -58,7 +58,7 @@ url="https://github.com/ApeWorX/ape-safe", include_package_data=True, install_requires=[ - "eth-ape>=0.8.1,<0.9", + "eth-ape>=0.8.14,<0.9", "requests>=2.31.0,<3", "eip712", # Use same version as eth-ape "click", # Use same version as eth-ape