Skip to content

Commit

Permalink
Add PyPI release of hdwallet-slip39 upgrade shim
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Nov 18, 2024
1 parent b92f0a6 commit c6f6ea1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
branches:
- master

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/python-hdwallet-slip39
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Build
run: |
python -m pip install -r requirements-dev.txt
python -m build .
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 3 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ VENV_NAME = $(GHUB_NAME)-$(VERSION)-$(PY3_V)
VENV = $(VENV_DIR)/$(VENV_NAME)
VENV_OPTS =

NIX_OPTS ?= # --pure

.PHONY: all test build build-check wheel install-dev install clean FORCE

all: build
Expand All @@ -27,7 +29,7 @@ unit-%:
$(PY3TEST) -k $*

nix-%:
nix-shell --pure --run "make $*"
nix-shell $(NIX_OPTS) --run "make $*"

build: clean wheel

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Hierarchical Deterministic Wallet

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

0 comments on commit c6f6ea1

Please sign in to comment.