From b193a305a8014480579e9d54b69ddc0f166309df Mon Sep 17 00:00:00 2001 From: Perry Kundert Date: Mon, 18 Nov 2024 08:12:11 -0700 Subject: [PATCH] Add PyPI release of hdwallet-slip39 upgrade shim --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ GNUmakefile | 4 +++- README.md | 10 ++++++++++ setup.py | 4 ++-- 4 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..db67ce9 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/GNUmakefile b/GNUmakefile index 3b423f5..17b5862 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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 @@ -27,7 +29,7 @@ unit-%: $(PY3TEST) -k $* nix-%: - nix-shell --pure --run "make $*" + nix-shell $(NIX_OPTS) --run "make $*" build: clean wheel diff --git a/README.md b/README.md index 6bb9af3..2519395 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/setup.py b/setup.py index 7990ca8..9912180 100644 --- a/setup.py +++ b/setup.py @@ -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.", @@ -39,7 +39,7 @@ license="MIT", author="Meheret Tesfaye Batu", author_email="meherett.batu@gmail.com", - 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"