From 7044900277f9b0a7a20c7353a878c638bd420c11 Mon Sep 17 00:00:00 2001 From: Matt Krueger Date: Tue, 18 Apr 2023 17:57:57 -0500 Subject: [PATCH 1/2] add publish makefile --- make/publish.mk | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 make/publish.mk diff --git a/make/publish.mk b/make/publish.mk new file mode 100644 index 0000000..744fd7e --- /dev/null +++ b/make/publish.mk @@ -0,0 +1,37 @@ +# publish - build package and publish + +# publish to pypi +publish: release + $(call require_pypi_config) + @set -e;\ + if [ "$(version)" != "$(pypi_version)" ]; then \ + $(call verify_action,publish to PyPi) \ + echo publishing $(dist_name) $(version) to PyPI...;\ + flit publish;\ + else \ + echo $(dist_name) $(version) is up-to-date on PyPI;\ + fi + +# check current pypi version +pypi-check: + $(call require_pypi_config) + @echo '$(dist_name) local=$(version) pypi=$(call check_pypi_version)' + +# clean up publish generated files +publish-clean: + rm -f .dist + rm -rf .tox + +# functions +define require_pypi_config = +$(if $(wildcard ~/.pypirc),,$(error publish failed; ~/.pypirc required)) +endef + +pypi_version := $(shell pip install $(dist_name)==fnord.plough.plover.xyzzy 2>&1 |\ + awk -F'[,() ]' '/^ERROR: Could not find a version .* \(from versions:.*\)/{print $$(NF-1)}') + +define check_null = +$(if $(1),$(1),$(error $(2))) +endef + +check_pypi_version = $(call check_null,$(pypi_version),PyPi version query failed) From e89b0e6a74c88570e4207de83002dd01294cd0f3 Mon Sep 17 00:00:00 2001 From: Matt Krueger Date: Tue, 18 Apr 2023 17:58:02 -0500 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=202.1.5=20=E2=86=92=202.1.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- VERSION | 2 +- rstms_etherscan_python/version.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index d938a0e..f9ad1c0 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.1.5 +current_version = 2.1.6 commit = True tag = True diff --git a/VERSION b/VERSION index cd57a8b..399088b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.5 +2.1.6 diff --git a/rstms_etherscan_python/version.py b/rstms_etherscan_python/version.py index 0b167e6..edc60b3 100644 --- a/rstms_etherscan_python/version.py +++ b/rstms_etherscan_python/version.py @@ -1 +1 @@ -__version__ = "2.1.5" +__version__ = "2.1.6" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy