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 b193a30
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
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
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
exec( vpy.read() )

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

0 comments on commit b193a30

Please sign in to comment.