Skip to content

Commit

Permalink
Bump dependencies (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas authored Nov 22, 2024
1 parent e3f1102 commit 415d5f1
Show file tree
Hide file tree
Showing 8 changed files with 469 additions and 509 deletions.
6 changes: 0 additions & 6 deletions .coveragerc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: "poetry"

- run: poetry install
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.1"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand All @@ -30,10 +30,11 @@ jobs:
- run: poetry install --with test

- name: Run test
run: poetry run pytest -s --cov=web3_input_decoder tests --cov-report xml
run: poetry run pytest -s tests --cov-report xml

- name: Upload to codecov
uses: codecov/codecov-action@v4
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ coverage.xml
.hypothesis/
.pytest_cache/


# Translations
*.mo
*.pot
Expand Down Expand Up @@ -100,8 +101,9 @@ venv.bak/
# mkdocs documentation
/site

# mypy
# dev
.mypy_cache/
.ruff_cache/

.vscode/
.DS_Store
20 changes: 0 additions & 20 deletions .pre-commit-config.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You can also play with it [here](https://replit.com/@kigawas/Web3-input-decoder-

### Performance enhancement

If you have lots of inputs in the same contract to decode, consider using [`InputDecoder`](web3_input_decoder/decoder.py#L26).
If you have lots of inputs in the same contract to decode, consider using [`InputDecoder`](web3_input_decoder/decoder.py#L41).

```python
>>> from web3_input_decoder import InputDecoder
Expand Down
906 changes: 441 additions & 465 deletions poetry.lock

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "web3-input-decoder"
version = "0.1.13"
version = "0.1.14"
# doc
authors = ["Weiliang Li <[email protected]>"]
description = "A simple offline web3 transaction input decoder for functions and constructors"
Expand All @@ -27,27 +27,34 @@ include = ["web3_input_decoder/py.typed"]
python = "^3.8"

# 3rd party
eth-abi = "^5.1.0"
eth-abi = "^5.0.1"
eth-utils = ">=2.0.0"
pycryptodome = "^3.18.0"
pycryptodome = ">=3.18.0"

[tool.poetry.group.dev.dependencies]
ipython = {version = "8.26.0", python = "^3.10"}
mypy = "^1.11"
ruff = "^0.6.0"
ipython = {version = "^8.29.0", python = "^3.10"}
mypy = "^1.13.0"
ruff = "^0.7.4"

# stubs
eth-typing = "^5.0.0"
eth-typing = "^5.0.1"

[tool.poetry.group.test.dependencies]
pyinstrument = "^4.5.0"
pytest = "^8.1.0"
pytest-cov = "^5.0.0"
pyinstrument = "^5.0.0"
pytest = "^8.3.3"
pytest-cov = {version = "^6.0.0", python = "^3.9"}

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

[tool.isort]
multi_line_output = 3
profile = "black"
[tool.pytest.ini_options]
addopts = "--cov=web3_input_decoder"

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract",
"raise NotImplementedError",
"if __name__ == .__main__.",
]

0 comments on commit 415d5f1

Please sign in to comment.