Skip to content

Commit 3cbed6b

Browse files
antazoeydtdang
andauthored
feat!: Ape 0.8 target (#28)
Co-authored-by: Dalena <mimidalena@gmail.com>
1 parent a393408 commit 3cbed6b

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
# TODO: Replace with macos-latest when works again.
6262
# https://github.com/actions/setup-python/issues/808
6363
os: [ubuntu-latest, macos-12] # eventually add `windows-latest`
64-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
64+
python-version: [3.9, "3.10", "3.11", "3.12"]
6565

6666
steps:
6767
- uses: actions/checkout@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Ecosystem Plugin for Polygon support in Ape.
44

55
## Dependencies
66

7-
- [python3](https://www.python.org/downloads) version 3.8 up to 3.12.
7+
- [python3](https://www.python.org/downloads) version 3.9 up to 3.12.
88

99
## Installation
1010

ape_polygon/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from ape import plugins
22
from ape.api.networks import LOCAL_NETWORK_NAME, ForkedNetworkAPI, NetworkAPI, create_network_type
3-
from ape_geth import GethProvider
3+
from ape_node import Node
44
from ape_test import LocalProvider
55

66
from .ecosystem import NETWORKS, Polygon, PolygonConfig
@@ -29,6 +29,6 @@ def networks():
2929
@plugins.register(plugins.ProviderPlugin)
3030
def providers():
3131
for network_name in NETWORKS:
32-
yield "polygon", network_name, GethProvider
32+
yield "polygon", network_name, Node
3333

3434
yield "polygon", LOCAL_NETWORK_NAME, LocalProvider

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ write_to = "ape_polygon/version.py"
1515

1616
[tool.black]
1717
line-length = 100
18-
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
18+
target-version = ['py39', 'py310', 'py311', 'py312']
1919
include = '\.pyi?$'
2020

2121
[tool.pytest.ini_options]

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
url="https://github.com/ApeWorX/ape-polygon",
6161
include_package_data=True,
6262
install_requires=[
63-
"eth-ape>=0.7.6,<0.8",
63+
"eth-ape>=0.8.1,<0.9",
6464
"ethpm-types", # Use same version as eth-ape
6565
],
66-
python_requires=">=3.8,<4",
66+
python_requires=">=3.9,<4",
6767
extras_require=extras_require,
6868
py_modules=["ape_polygon"],
6969
license="Apache-2.0",
@@ -79,7 +79,6 @@
7979
"Operating System :: MacOS",
8080
"Operating System :: POSIX",
8181
"Programming Language :: Python :: 3",
82-
"Programming Language :: Python :: 3.8",
8382
"Programming Language :: Python :: 3.9",
8483
"Programming Language :: Python :: 3.10",
8584
"Programming Language :: Python :: 3.11",

tests/test_integration.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
EXPECTED_OUTPUT = """
66
polygon
77
├── amoy
8-
│ └── geth (default)
8+
│ └── node (default)
99
├── local (default)
1010
│ └── test (default)
1111
├── mainnet
12-
│ └── geth (default)
12+
│ └── node (default)
1313
└── mumbai
14-
└── geth (default)
14+
└── node (default)
1515
""".strip()
1616

1717

@@ -48,9 +48,9 @@ def assert_rich_text(actual: str, expected: str):
4848

4949
def test_networks(runner, cli, polygon):
5050
# Do this in case local env changed it.
51-
polygon.mainnet.set_default_provider("geth")
52-
polygon.mumbai.set_default_provider("geth")
53-
polygon.amoy.set_default_provider("geth")
51+
polygon.mainnet.set_default_provider("node")
52+
polygon.mumbai.set_default_provider("node")
53+
polygon.amoy.set_default_provider("node")
5454

55-
result = runner.invoke(cli, ["networks", "list"])
55+
result = runner.invoke(cli, ("networks", "list"))
5656
assert_rich_text(result.output, EXPECTED_OUTPUT)

0 commit comments

Comments
 (0)