From e89432a74b78562ebda2aa7806f98e59905fb25d Mon Sep 17 00:00:00 2001 From: Felipe Selmo Date: Tue, 24 Aug 2021 14:44:28 -0600 Subject: [PATCH] Add support for geth versions 1.10.7 and 1.10.8 Note: v1.10.7 is not recommended and 1.10.8 includes a hotfix and thus is preferred --- .circleci/config.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 8 +++---- geth/install.py | 8 +++++++ tox.ini | 2 +- 4 files changed, 63 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b42ce27f..3e263ab9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -451,6 +451,48 @@ jobs: environment: GETH_VERSION: v1.10.6 TOXENV: py37-install-geth-v1.10.6 + py35-install-geth-v1.10.7: + <<: *common_go_v_1_13 + docker: + - image: circleci/python:3.5 + environment: + GETH_VERSION: v1.10.7 + TOXENV: py35-install-geth-v1.10.7 + py36-install-geth-v1.10.7: + <<: *common_go_v_1_13 + docker: + - image: circleci/python:3.6 + environment: + GETH_VERSION: v1.10.7 + TOXENV: py36-install-geth-v1.10.7 + py37-install-geth-v1.10.7: + <<: *common_go_v_1_13 + docker: + - image: circleci/python:3.7 + environment: + GETH_VERSION: v1.10.7 + TOXENV: py37-install-geth-v1.10.7 + py35-install-geth-v1.10.8: + <<: *common_go_v_1_13 + docker: + - image: circleci/python:3.5 + environment: + GETH_VERSION: v1.10.8 + TOXENV: py35-install-geth-v1.10.8 + py36-install-geth-v1.10.8: + <<: *common_go_v_1_13 + docker: + - image: circleci/python:3.6 + environment: + GETH_VERSION: v1.10.8 + TOXENV: py36-install-geth-v1.10.8 + py37-install-geth-v1.10.8: + <<: *common_go_v_1_13 + docker: + - image: circleci/python:3.7 + environment: + GETH_VERSION: v1.10.8 + TOXENV: py37-install-geth-v1.10.8 py34-lint: <<: *common_go_v_1_13 @@ -558,6 +600,14 @@ workflows: - py36-install-geth-v1.10.6 - py37-install-geth-v1.10.6 + - py35-install-geth-v1.10.7 + - py36-install-geth-v1.10.7 + - py37-install-geth-v1.10.7 + + - py35-install-geth-v1.10.8 + - py36-install-geth-v1.10.8 + - py37-install-geth-v1.10.8 + - py35-lint - py36-lint - py37-lint diff --git a/README.md b/README.md index 5587d0c4..0ade469d 100644 --- a/README.md +++ b/README.md @@ -129,19 +129,19 @@ the current list of supported versions. Installation can be done via the command line: ```bash -$ python -m geth.install v1.10.6 +$ python -m geth.install v1.10.8 ``` Or from python using the `install_geth` function. ```python >>> from geth import install_geth ->>> install_geth('v1.10.6') +>>> install_geth('v1.10.8') ``` The installed binary can be found in the `$HOME/.py-geth` directory, under your -home directory. The `v1.10.6` binary would be located at -`$HOME/.py-geth/geth-v1.10.6/bin/geth`. +home directory. The `v1.10.8` binary would be located at +`$HOME/.py-geth/geth-v1.10.8/bin/geth`. # About `DevGethProcess` diff --git a/geth/install.py b/geth/install.py index 4e96c4b0..7bce93f2 100644 --- a/geth/install.py +++ b/geth/install.py @@ -29,6 +29,8 @@ V1_10_4 = 'v1.10.4' V1_10_5 = 'v1.10.5' V1_10_6 = 'v1.10.6' +V1_10_7 = 'v1.10.7' +V1_10_8 = 'v1.10.8' LINUX = 'linux' @@ -310,6 +312,8 @@ def install_from_source_code_release(identifier): install_v1_10_4 = functools.partial(install_from_source_code_release, V1_10_4) install_v1_10_5 = functools.partial(install_from_source_code_release, V1_10_5) install_v1_10_6 = functools.partial(install_from_source_code_release, V1_10_6) +install_v1_10_7 = functools.partial(install_from_source_code_release, V1_10_7) +install_v1_10_8 = functools.partial(install_from_source_code_release, V1_10_8) INSTALL_FUNCTIONS = { @@ -333,6 +337,8 @@ def install_from_source_code_release(identifier): V1_10_4: install_v1_10_4, V1_10_5: install_v1_10_5, V1_10_6: install_v1_10_6, + V1_10_7: install_v1_10_7, + V1_10_8: install_v1_10_8, }, OSX: { V1_9_14: install_v1_9_14, @@ -354,6 +360,8 @@ def install_from_source_code_release(identifier): V1_10_4: install_v1_10_4, V1_10_5: install_v1_10_5, V1_10_6: install_v1_10_6, + V1_10_7: install_v1_10_7, + V1_10_8: install_v1_10_8, } } diff --git a/tox.ini b/tox.ini index 4941d64d..cd08e8c9 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = py{35,36,37}-install-geth-{ v1.9.14, v1.9.15, v1.9.16, v1.9.17, v1.9.18, v1.9.19, v1.9.20, v1.9.21, v1.9.22, v1.9.23, v1.9.24, v1.9.25, v1.10.0, v1.10.1, - v1.10.2, v1.10.3, v1.10.4, v1.10.5, v1.10.6 + v1.10.2, v1.10.3, v1.10.4, v1.10.5, v1.10.6, v1.10.7, v1.10.8 }