Skip to content

Commit

Permalink
Add Python 3.11 (#121)
Browse files Browse the repository at this point in the history
* Add Python 3.11

* Drop pysha3

* Update ci.yml

* Bump 3.11 beta
  • Loading branch information
kigawas authored Jul 28, 2022
1 parent c40e80b commit 140966b
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 336 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-beta.5"]

runs-on: ${{ matrix.os }}

Expand All @@ -30,7 +30,7 @@ jobs:

- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.12
poetry-version: 1.1.14

- run: brew install automake
if: matrix.os == 'macos-latest'
Expand Down
9 changes: 4 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"python.formatting.provider": "black",
"python.pythonPath": "venv/bin/python",
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.enabled": true
"python.formatting.provider": "black",
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.enabled": true
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ True

## Release Notes

### 0.1.1 ~ 0.1.2
### 0.1.1 ~ 0.1.3

- Support Python 3.10
- Support Python 3.10, 3.11
- Bump dependencies
- Drop Python 3.6

Expand Down
5 changes: 2 additions & 3 deletions bip44/utils.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from typing import Union

from coincurve import PublicKey
from sha3 import keccak_256 as _keccak_256
from Crypto.Hash import keccak

__all__ = ("get_eth_addr", "to_checksum_addr")


def keccak_256(b: bytes) -> bytes:
h = _keccak_256()
h.update(b)
h = keccak.new(data=b, digest_bits=256)
return h.digest()


Expand Down
Loading

0 comments on commit 140966b

Please sign in to comment.