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/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) 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