Skip to content

Commit c6f6ea1

Browse files
committed
Add PyPI release of hdwallet-slip39 upgrade shim
1 parent b92f0a6 commit c6f6ea1

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
pypi-publish:
10+
name: Upload release to PyPI
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/python-hdwallet-slip39
15+
permissions:
16+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
- name: Build
23+
run: |
24+
python -m pip install -r requirements-dev.txt
25+
python -m build .
26+
- name: Publish package distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

GNUmakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ VENV_NAME = $(GHUB_NAME)-$(VERSION)-$(PY3_V)
1212
VENV = $(VENV_DIR)/$(VENV_NAME)
1313
VENV_OPTS =
1414

15+
NIX_OPTS ?= # --pure
16+
1517
.PHONY: all test build build-check wheel install-dev install clean FORCE
1618

1719
all: build
@@ -27,7 +29,7 @@ unit-%:
2729
$(PY3TEST) -k $*
2830

2931
nix-%:
30-
nix-shell --pure --run "make $*"
32+
nix-shell $(NIX_OPTS) --run "make $*"
3133

3234
build: clean wheel
3335

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Hierarchical Deterministic Wallet
22

3+
> Note: This hdwallet-slip39 package is a temporary upgrade shim for the great hdwallet package
4+
> https://pypi.org/project/hdwallet/.
5+
6+
> Use it only until the upstream hdwallet package merges support for BSC, Nix, etc in :
7+
> https://github.com/meherett/python-hdwallet/pull/1020
8+
9+
> Until then, substitute "hdwallet-slip39" for "hdwallet" in your "pip install" or requirements.txt
10+
> Both supply the hdwallet package, eg. "import hdwallet". Specify version >= 2.3 to ensure you are
11+
> using this shim.
12+
313
[![Build Status](https://app.travis-ci.com/meherett/python-hdwallet.svg?branch=master)](https://app.travis-ci.com/meherett/python-hdwallet)
414
[![PyPI Version](https://img.shields.io/pypi/v/hdwallet.svg?color=blue)](https://pypi.org/project/hdwallet)
515
[![Documentation Status](https://readthedocs.org/projects/hdwallet/badge/?version=master)](https://hdwallet.readthedocs.io)

0 commit comments

Comments
 (0)