Skip to content

Commit f129c5e

Browse files
authored
Bump dependencies (#183)
1 parent 6bbb139 commit f129c5e

File tree

11 files changed

+556
-423
lines changed

11 files changed

+556
-423
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313

1414
- name: Install poetry
1515
run: pipx install poetry
1616

17-
- uses: actions/setup-python@v5
17+
- uses: actions/setup-python@v6
1818
with:
19-
python-version: "3.13"
19+
python-version: "3.14"
2020

2121
- name: Install dependencies
2222
run: poetry install

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
14-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1515

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

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

2121
- name: Install poetry
2222
run: pipx install poetry pre-commit
2323

24-
- uses: actions/setup-python@v5
24+
- uses: actions/setup-python@v6
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
cache: poetry
@@ -41,6 +41,6 @@ jobs:
4141

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

.pre-commit-config.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.8.0
3+
rev: v0.14.5
44
hooks:
5-
- id: ruff
6-
args: [--fix]
5+
- id: ruff-check
76
- id: ruff-format
87

9-
- repo: https://github.com/pre-commit/mirrors-mypy
10-
rev: v1.13.0
11-
hooks:
12-
- id: mypy
13-
entry: mypy bip44/
14-
pass_filenames: false
15-
168
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v5.0.0
9+
rev: v6.0.0
1810
hooks:
1911
- id: trailing-whitespace
2012
- id: check-yaml

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Changelog
2+
3+
## 0.1.6
4+
5+
- Support Python 3.14
6+
- Drop Python 3.8
7+
- Bump dependencies
8+
9+
## 0.1.5
10+
11+
- Bump dependencies
12+
13+
## 0.1.1 ~ 0.1.4
14+
15+
- Support Python 3.10, 3.11, 3.12, 3.13
16+
- Bump dependencies
17+
- Drop Python 3.6, 3.7
18+
19+
## 0.1.0
20+
21+
- First beta release
22+
- Bump dependencies
23+
24+
## 0.0.1 ~ 0.0.7
25+
26+
- Alpha releases

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2024 Weiliang Li
3+
Copyright (c) 2020-2025 Weiliang Li
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@ True
2929
'0x7aD23D6eD9a1D98E240988BED0d78e8C81Ec296C'
3030
```
3131

32-
## Release Notes
32+
## Changelog
3333

34-
### 0.1.1 ~ 0.1.5
35-
36-
- Support Python 3.10, 3.11, 3.12, 3.13
37-
- Bump dependencies
38-
- Drop Python 3.6, 3.7
39-
40-
### 0.1.0
41-
42-
- First beta release
43-
- Bump dependencies
44-
45-
### 0.0.1 ~ 0.0.7
46-
47-
- Alpha releases
34+
See [CHANGELOG.md](./CHANGELOG.md)

bip44/consts.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
from typing import Tuple
2-
31
from bip32 import HARDENED_INDEX
42

53
__all__ = ("COIN_PATHS",)
64

75

8-
def coin_path_by_index(index: int = 0) -> Tuple[int, int]:
6+
def coin_path_by_index(index: int = 0) -> tuple[int, int]:
97
# Full list is at https://github.com/satoshilabs/slips/blob/master/slip-0044.md#registered-coin-types
108
return (44 + HARDENED_INDEX, index + HARDENED_INDEX)
119

@@ -17,8 +15,13 @@ def coin_path_by_index(index: int = 0) -> Tuple[int, int]:
1715
"DOGE": coin_path_by_index(3),
1816
"ETH": coin_path_by_index(60),
1917
"ETC": coin_path_by_index(61),
18+
"XRP": coin_path_by_index(144),
2019
"DOT": coin_path_by_index(354),
20+
"SOL": coin_path_by_index(501),
21+
"APT": coin_path_by_index(637),
22+
"SUI": coin_path_by_index(784),
2123
"SDN": coin_path_by_index(809),
2224
"ASTR": coin_path_by_index(810),
2325
"ADA": coin_path_by_index(1815),
26+
"STRK": coin_path_by_index(9004),
2427
}

bip44/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# PEP 561

bip44/wallet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Iterable, Tuple, Union
1+
from typing import Iterable, Union
22

33
from bip32 import BIP32, HARDENED_INDEX
44
from mnemonic import Mnemonic
@@ -56,7 +56,7 @@ def derive_account(
5656
account: int = 0,
5757
change: int = 0,
5858
address_index: int = 0,
59-
) -> Tuple[bytes, bytes]:
59+
) -> tuple[bytes, bytes]:
6060
"""
6161
Derive secret and public key of account, following BIP44 standard like `m / purpose' / coin_type' / account' / change / address_index`.
6262

poetry.lock

Lines changed: 501 additions & 377 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)