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)