From 490ee1ede90cb135a955d7bcf3e918711821b123 Mon Sep 17 00:00:00 2001 From: banteg <4562643+banteg@users.noreply.github.com> Date: Wed, 26 Jul 2023 12:49:50 +0400 Subject: [PATCH] fix: python 3.9 support, drop python 3.8 support had to drop python 3.8 because of pyyaml/cython build issue. pyyaml doesn't release a wheel for 3.8. --- brownie_safe.py | 6 +++--- poetry.lock | 4 ++-- pyproject.toml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/brownie_safe.py b/brownie_safe.py index 323ad9f..68cc007 100644 --- a/brownie_safe.py +++ b/brownie_safe.py @@ -2,6 +2,7 @@ import warnings from copy import copy from typing import Dict, List, Optional, Union +from enum import Enum import click from gnosis.eth import EthereumClient, EthereumNetwork @@ -17,13 +18,12 @@ from gnosis.safe.safe_tx import SafeTx from gnosis.safe.signatures import signature_split, signature_to_bytes from gnosis.safe.api import TransactionServiceApi +from gnosis.eth.ethereum_client import EthereumNetworkNotSupported from hexbytes import HexBytes from trezorlib import ethereum, tools, ui from trezorlib.client import TrezorClient from trezorlib.messages import EthereumSignMessage from trezorlib.transport import get_transport -from enum import Enum -from gnosis.eth.ethereum_client import EthereumNetworkNotSupported MULTISEND_CALL_ONLY = '0x40A2aCCbd92BCA938b02010E17A5b8929b49130D' multisends = { @@ -67,7 +67,7 @@ class TransactionServiceBackport(TransactionServiceApi): EthereumNetworkBackport.BOBA_NETWORK: "https://safe-transaction.mainnet.boba.network", } - def __init__(self, network: EthereumNetwork, ethereum_client: EthereumClient | None = None, base_url: str | None = None): + def __init__(self, network: EthereumNetwork, ethereum_client: Optional[EthereumClient] = None, base_url: Optional[str] = None): self.network = network self.ethereum_client = ethereum_client self.base_url = base_url or self.URL_BY_NETWORK.get(EthereumNetworkBackport(network.value)) diff --git a/poetry.lock b/poetry.lock index f658785..4a7424c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2474,5 +2474,5 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" -python-versions = ">=3.8,<3.11" -content-hash = "6d5178db4c124454797858d5434c0c731d45e9493586226f6a9f2125b386968e" +python-versions = ">=3.9,<3.11" +content-hash = "d1712a67442c72aba99dc9fed21273e713f59c314b8371fddceefef7d98cc983" diff --git a/pyproject.toml b/pyproject.toml index 7b361ea..e4d922c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "brownie-safe" -version = "0.8.0" +version = "0.8.1" description = "Build complex Gnosis Safe transactions and safely preview them in a forked environment." authors = ["banteg"] license = "MIT" @@ -8,7 +8,7 @@ repository = "https://github.com/banteg/brownie-safe" readme = "readme.md" [tool.poetry.dependencies] -python = ">=3.8,<3.11" +python = ">=3.9,<3.11" eth-brownie = "1.19.2" safe-eth-py = "4.3.2" trezor = "0.13.7"