-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from pjkundert/fix-keccak
Update from pysha3 (deprecated) to pycryptodome for Keccak-256
- Loading branch information
Showing
7 changed files
with
111 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
SHELL = /bin/bash | ||
PY3 ?= $(shell python3 --version >/dev/null 2>&1 && echo python3 || echo python ) | ||
VERSION = $(shell $(PY3) -c 'from hdwallet import __version__; print( __version__.strip("v"))') | ||
WHEEL = dist/hdwallet-$(VERSION)-py3-none-any.whl | ||
|
||
PY3TEST = $(PY3) -m pytest | ||
|
||
.PHONY: all test build build-check wheel install-dev install clean FORCE | ||
|
||
all: build | ||
|
||
test: | ||
$(PY3TEST) | ||
|
||
# Run only tests with a prefix containing the target string, eg test-blah | ||
test-%: | ||
$(PY3TEST) *$*_test.py | ||
|
||
unit-%: | ||
$(PY3TEST) -k $* | ||
|
||
build: clean wheel | ||
|
||
build-check: | ||
@$(PY3) -m build --version \ | ||
|| ( \ | ||
echo -e "\n\n!!! Missing Python modules; run:"; \ | ||
echo -e "\n\n $(PY3) -m pip install --upgrade pip setuptools wheel build\n"; \ | ||
false; \ | ||
) | ||
|
||
wheel: $(WHEEL) | ||
|
||
$(WHEEL): build-check FORCE | ||
$(PY3) -m build | ||
@ls -last dist | ||
|
||
# Install from wheel, including all optional extra dependencies (except dev) | ||
install-dev: $(WHEEL) FORCE | ||
$(PY3) -m pip install --upgrade $<[tests] | ||
|
||
install: $(WHEEL) FORCE | ||
$(PY3) -m pip install --force-reinstall $<[cli,docs] | ||
|
||
clean: | ||
@rm -rf build dist *.egg-info $(shell find . -name '__pycache__' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
) | ||
|
||
# HDWallet Information's | ||
__version__: str = "v2.1.1" | ||
__version__: str = "v2.1.2" | ||
__license__: str = "ISCL" | ||
__author__: str = "Meheret Tesfaye Batu" | ||
__email__: str = "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ecdsa>=0.13,<1 | ||
mnemonic>=0.19,<1 | ||
pysha3>=1.0.2,<2 | ||
base58>=2.0.1,<3 | ||
pycryptodome>=3.15,<4 | ||
base58>=2.0.1,<3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters