Skip to content

Commit

Permalink
chore: bump ape core 0.4.0 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day authored Aug 9, 2022
1 parent b6a60a3 commit 2471583
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest] # eventually add `windows-latest`
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, '3.10']

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.6.0
hooks:
- id: black
name: black

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
rev: 4.0.1
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.942
rev: v0.971
hooks:
- id: mypy
additional_dependencies: [types-PyYAML, types-requests]
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ cd ape-tenderly
python3 -m venv venv
source venv/bin/activate

# install brownie into the virtual environment
# install ape-tenderly into the virtual environment
python setup.py install

# install the developer dependencies (-e is interactive mode)
pip install -e .[dev]
pip install -e .'[dev]'
```

## Pre-Commit Hooks
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ape-tenderly

TODO: Description
Ecosystem Plugin for Tenderly support in Ape

## Dependencies

* [python3](https://www.python.org/downloads) version 3.7 or greater, python3-dev
* [python3](https://www.python.org/downloads) version 3.7.2 or greater, python3-dev

## Installation

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ write_to = "ape_tenderly/version.py"

[tool.black]
line-length = 100
target-version = ['py37', 'py38', 'py39']
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'

[tool.pytest.ini_options]
Expand Down
21 changes: 11 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@

extras_require = {
"test": [ # `test` GitHub Action jobs uses this
"pytest>=6.0,<7.0", # Core testing package
"pytest>=6.0", # Core testing package
"pytest-xdist", # multi-process runner
"pytest-cov", # Coverage analyzer plugin
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer
],
"lint": [
"black>=22.3,<23.0", # auto-formatter and linter
"mypy>=0.942,<1.0", # Static type analyzer
"flake8>=3.9.2,<4.0", # Style linter
"isort>=5.10.1,<6.0", # Import sorting linter
"black>=22.6.0", # auto-formatter and linter
"mypy>=0.971", # Static type analyzer
"flake8>=4.0.1", # Style linter
"isort>=5.10.1", # Import sorting linter
],
"release": [ # `release` GitHub Action job uses this
"setuptools", # Installation tool
"wheel", # Packaging tool
"twine", # Package upload tool
],
"dev": [
"commitizen>=2.19,<2.20", # Manage commits and publishing releases
"commitizen", # Manage commits and publishing releases
"pre-commit", # Ensure that linters are run prior to commiting
"pytest-watch", # `ptw` test watcher/runner
"IPython", # Console for interacting
Expand Down Expand Up @@ -54,10 +54,10 @@
include_package_data=True,
install_requires=[
"importlib-metadata ; python_version<'3.8'",
"eth-ape>=0.2.1,<0.3.0",
"requests>=2.27.1,<3.0",
], # NOTE: Add 3rd party libraries here
python_requires=">=3.7,<4",
"eth-ape>=0.4.0,<0.5.0",
"requests>=2.28.1,<3.0",
],
python_requires=">=3.7.2,<4",
extras_require=extras_require,
py_modules=["ape_tenderly"],
license="Apache-2.0",
Expand All @@ -76,5 +76,6 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)
File renamed without changes.
41 changes: 41 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
from pathlib import Path

import pytest

from ape_tenderly.providers import TenderlyProvider


@pytest.fixture
def networks():
from ape import networks

return networks


@pytest.fixture
def accounts():
from ape import accounts

return accounts


@pytest.fixture
def Contract():
from ape import Contract

return Contract


@pytest.fixture
def mainnet_fork_provider(networks):
network_api = networks.ecosystems["ethereum"]["mainnet-fork"]
provider = TenderlyProvider(
name="tenderly",
network=network_api,
request_header={},
data_folder=Path("."),
provider_settings={},
)
provider.connect()
yield provider
provider.disconnect()
3 changes: 3 additions & 0 deletions tests/test_provider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def test_reset_fork(mainnet_fork_provider):
assert mainnet_fork_provider.fork_id
assert mainnet_fork_provider.uri

0 comments on commit 2471583

Please sign in to comment.