Skip to content

Commit c5acee4

Browse files
committed
Merge branch 'fix-actions'; v10.0.1
2 parents dffe1c1 + be21dfe commit c5acee4

File tree

16 files changed

+180
-143
lines changed

16 files changed

+180
-143
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
#omit = hdwallet/libs/*

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
# Requires Python3 w/ Type Annotations
23-
python-version: [3.9, 3.x]
23+
python-version: ['3.9', '3.10', '3.11', '3.x']
2424

2525
steps:
2626
- uses: actions/checkout@v2
@@ -30,6 +30,7 @@ jobs:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Install dependencies
3232
run: |
33+
python3 -m pip install --upgrade pip
3334
python3 -m pip install -r requirements.txt
3435
python3 -m pip install -r requirements-serial.txt
3536
python3 -m pip install -r requirements-gui.txt

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ dist/
2626
.eggs
2727
private_keys
2828
images/SLIP-39.iconset
29+
.coverage

GNUmakefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ help:
7474
@echo " print-PLATFORM prints the detected PLATFORM"
7575

7676
test:
77-
cd slip39 && $(PY3TEST)
78-
77+
$(PY3TEST)
7978

8079
analyze:
8180
flake8 -j 1 --max-line-length=200 \
@@ -166,12 +165,12 @@ dist/slip39-$(VERSION)-py3-none-any.whl: build-check FORCE
166165
$(PY3) -m build
167166
@ls -last dist
168167

169-
# Install from wheel, including all optional extra dependencies
168+
# Install from wheel, including all optional extra dependencies (except dev)
170169
install-dev:
171170
$(PY3) -m pip install --upgrade -r requirements-dev.txt
172171

173172
install: dist/slip39-$(VERSION)-py3-none-any.whl FORCE
174-
$(PY3) -m pip install --force-reinstall $<[gui,dev,serial,wallet]
173+
$(PY3) -m pip install --force-reinstall $<[gui,serial,wallet]
175174

176175

177176
# Building / Signing / Notarizing and Uploading the macOS or win32 App
@@ -657,10 +656,10 @@ clean:
657656

658657
# Run only tests with a prefix containing the target string, eg test-blah
659658
test-%:
660-
cd slip39 && $(PY3TEST) *$*_test.py
659+
slip39/*$*_test.py
661660

662661
unit-%:
663-
cd slip39 && $(PY3TEST) -k $*
662+
$(PY3TEST) -k $*
664663

665664

666665
#

README.org

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ Trezor supports these, and they can only be created "manually". Writing down 5
3636
words is difficult, error-prone and time consuming.
3737

3838
The [[https://github.com/pjkundert/python-slip39.git][python-slip39]] project (and the [[https://slip39.com/app][SLIP-39 macOS/win32 App]]) exists to assist in the safe creation
39-
and documentation of [[https://wolovim.medium.com/ethereum-201-hd-wallets-11d0c93c87][Ethereum HD Wallet]] seeds and derived accounts, with various SLIP-39 sharing
40-
parameters. It generates the new random wallet seed, and generates the expected standard Ethereum
41-
account(s) (at [[https://medium.com/myetherwallet/hd-wallets-and-derivation-paths-explained-865a643c7bf2][derivation path]] =m/44'/60'/0'/0/0= by default) and Bitcoin accounts (at Bech32
42-
derivation path =m/84'/0'/0'/0/0= by default), with wallet address and QR code (compatible with
43-
Trezor derivations). It produces the required SLIP-39 phrases, and outputs a single PDF containing
44-
all the required printable cards to document the seed (and the specified derived accounts).
39+
and documentation of [[https://wolovim.medium.com/ethereum-201-hd-wallets-11d0c93c87][Hierarchical Deterministic (HD) Wallet]] seeds and derived accounts, with
40+
various SLIP-39 sharing parameters. It generates the new random wallet seed, and generates the
41+
expected standard Ethereum account(s) (at [[https://medium.com/myetherwallet/hd-wallets-and-derivation-paths-explained-865a643c7bf2][derivation path]] =m/44'/60'/0'/0/0= by default) and Bitcoin
42+
accounts (at Bech32 derivation path =m/84'/0'/0'/0/0= by default), with wallet address and QR code
43+
(compatible with Trezor derivations). It produces the required SLIP-39 phrases, and outputs a
44+
single PDF containing all the required printable cards to document the seed (and the specified
45+
derived accounts).
4546

4647
Output of BIP-38 or JSON encrypted Paper Wallets is supported, for import into standard software
4748
cryptocurrency wallets.

README.pdf

-201 Bytes
Binary file not shown.

README.txt

Lines changed: 107 additions & 109 deletions
Large diffs are not rendered by default.

fonts_list.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from tkinter import Tk, font
2+
import PySimpleGUI as sg
3+
root = Tk()
4+
font_tuple = font.families()
5+
#Creates a Empty list to hold font names
6+
FontList=[]
7+
fonts = [font.Font(family=f) for f in font.families()]
8+
monospace = (f for f in fonts if f.metrics("fixed"))
9+
# for font in font_tuple:
10+
# FontList.append(font)
11+
for font in monospace:
12+
FontList.append(font.actual('family'))
13+
root.destroy()
14+
print( '\n'.join( FontList ))
15+
16+
#size 28, 28 is optimized for my Android phone please tweak as per your screen
17+
#Scrolled popup to accommodate big list
18+
sg.popup_scrolled(FontList, title='All fonts installed using PySimpleGUI', size=(28,28), grab_anywhere=True)
19+

pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
testpaths = slip39
3+
addopts = -vv --doctest-modules --cov=slip39 --cov-config=.coveragerc

requirements-dev.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
build
2+
cx_Freeze >= 6.12
23
flake8
34
pip
4-
pytest
5-
setuptools
6-
wheel
75
pyinstaller >= 5.5
8-
cx_Freeze >= 6.12
6+
pytest >=7.2.0,<8
7+
pytest-cov >=4.0.0,<5
8+
setuptools
99
tabulate
10+
wheel

0 commit comments

Comments
 (0)