Skip to content

Commit

Permalink
Add support for geth versions 1.10.7 and 1.10.8
Browse files Browse the repository at this point in the history
Note: v1.10.7 is not recommended and 1.10.8 includes a hotfix and thus is preferred
  • Loading branch information
fselmo committed Aug 25, 2021
1 parent 1c94d1c commit e89432a
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 5 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
8 changes: 8 additions & 0 deletions geth/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 = {
Expand All @@ -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,
Expand All @@ -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,
}
}

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down

0 comments on commit e89432a

Please sign in to comment.