Skip to content

Commit 60d78cc

Browse files
committed
Add PyPI release of hdwallet-slip39 upgrade shim
1 parent 377f4d0 commit 60d78cc

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
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)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
exec( vpy.read() )
3131

3232
setup(
33-
name="hdwallet",
33+
name="hdwallet-slip39",
3434
version=__version__,
3535
description="Python-based library for the implementation of a hierarchical deterministic wallet "
3636
"generator for more than 140+ multiple cryptocurrencies.",
@@ -39,7 +39,7 @@
3939
license="MIT",
4040
author="Meheret Tesfaye Batu",
4141
author_email="[email protected]",
42-
url="https://github.com/meherett/python-hdwallet",
42+
url="https://github.com/pjkundert/python-hdwallet",
4343
project_urls=project_urls,
4444
keywords=[
4545
"cryptography", "cli", "wallet", "bip32", "bip44", "bip39", "hdwallet", "cryptocurrencies", "bitcoin", "ethereum"

0 commit comments

Comments
 (0)