From 16258df678cba781ac9c6aebe448dc0e8deb266d Mon Sep 17 00:00:00 2001 From: antazoey Date: Fri, 31 May 2024 17:40:00 -0500 Subject: [PATCH] feat!: Update to Ape 0.8 (#83) Co-authored-by: Dalena --- .github/workflows/test.yaml | 2 +- README.md | 2 +- ape_infura/provider.py | 4 ++-- pyproject.toml | 2 +- setup.py | 5 ++--- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c3d6189..7bb23dd 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -65,7 +65,7 @@ jobs: # TODO: Replace with macos-latest when works again. # https://github.com/actions/setup-python/issues/808 os: [ubuntu-latest, macos-12] # eventually add `windows-latest` - python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] + python-version: [3.9, "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index de86164..1d177c1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This plugin supports the following ecosystems: ## Dependencies -- [python3](https://www.python.org/downloads) version 3.8 up to 3.12. +- [python3](https://www.python.org/downloads) version 3.9 up to 3.12. ## Installation diff --git a/ape_infura/provider.py b/ape_infura/provider.py index 5c0a917..415dfc1 100644 --- a/ape_infura/provider.py +++ b/ape_infura/provider.py @@ -1,5 +1,5 @@ import os -from typing import Dict, Optional, Tuple +from typing import Optional from ape.api import UpstreamProvider from ape.exceptions import ContractLogicError, ProviderError, VirtualMachineError @@ -33,7 +33,7 @@ def __init__(self): class Infura(Web3Provider, UpstreamProvider): - network_uris: Dict[Tuple[str, str], str] = {} + network_uris: dict[tuple[str, str], str] = {} @property def uri(self) -> str: diff --git a/pyproject.toml b/pyproject.toml index 3618bc6..522aa19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ write_to = "ape_infura/version.py" [tool.black] line-length = 100 -target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] +target-version = ['py39', 'py310', 'py311', 'py312'] include = '\.pyi?$' [tool.pytest.ini_options] diff --git a/setup.py b/setup.py index ce9c666..0bc550e 100644 --- a/setup.py +++ b/setup.py @@ -76,9 +76,9 @@ url="https://github.com/ApeWorX/ape-infura", include_package_data=True, install_requires=[ - "eth-ape>=0.7.0,<0.8", + "eth-ape>=0.8.1,<0.9", ], - python_requires=">=3.8,<4", + python_requires=">=3.9,<4", extras_require=extras_require, py_modules=["ape_infura"], license="Apache-2.0", @@ -94,7 +94,6 @@ "Operating System :: MacOS", "Operating System :: POSIX", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11",