From 17d394741af9f28f428629e1122eec09197640cf Mon Sep 17 00:00:00 2001 From: Piper Merriam Date: Tue, 5 Dec 2017 15:09:54 -0700 Subject: [PATCH] solc v0.4.18 and v0.4.19 --- .travis.yml | 14 ++++++++++++++ README.md | 12 +++++++----- solc/install.py | 10 ++++++++++ 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd53dad..5dc5290 100644 --- a/.travis.yml +++ b/.travis.yml @@ -111,6 +111,20 @@ matrix: env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.17 - python: "3.5" env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.17 + # solc 0.4.18 + - python: "2.7" + env: TOX_POSARGS="-e py27" SOLC_VERSION=v0.4.18 + - python: "3.4" + env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.18 + - python: "3.5" + env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.18 + # solc 0.4.19 + - python: "2.7" + env: TOX_POSARGS="-e py27" SOLC_VERSION=v0.4.19 + - python: "3.4" + env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.19 + - python: "3.5" + env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.19 cache: - pip: true before_install: diff --git a/README.md b/README.md index 7a3b2dc..1a03039 100644 --- a/README.md +++ b/README.md @@ -191,24 +191,26 @@ listed platforms. * `v0.4.15` (linux/osx) * `v0.4.16` (linux/osx) * `v0.4.17` (linux/osx) +* `v0.4.18` (linux/osx) +* `v0.4.19` (linux/osx) Installation can be done via the command line: ```bash -$ python -m solc.install v0.4.17 +$ python -m solc.install v0.4.19 ``` Or from python using the `install_solc` function. ```python >>> from solc import install_solc ->>> install_solc('v0.4.17') +>>> install_solc('v0.4.19') ``` -The installed binary can be found under your home directory. The `v0.4.17` -binary would be located at `$HOME/.py-solc/solc-v0.4.17/bin/solc`. Older linux +The installed binary can be found under your home directory. The `v0.4.19` +binary would be located at `$HOME/.py-solc/solc-v0.4.19/bin/solc`. Older linux installs will also require that you set the environment variable -`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.17/bin` +`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.19/bin` ## Import path remappings diff --git a/solc/install.py b/solc/install.py index b572b91..3034afe 100644 --- a/solc/install.py +++ b/solc/install.py @@ -24,6 +24,8 @@ V0_4_15 = 'v0.4.15' V0_4_16 = 'v0.4.16' V0_4_17 = 'v0.4.17' +V0_4_18 = 'v0.4.18' +V0_4_19 = 'v0.4.19' LINUX = 'linux' @@ -398,6 +400,8 @@ def install_from_static_linux(identifier): install_v0_4_15_linux = functools.partial(install_solc_from_static_linux, V0_4_15) install_v0_4_16_linux = functools.partial(install_solc_from_static_linux, V0_4_16) install_v0_4_17_linux = functools.partial(install_solc_from_static_linux, V0_4_17) +install_v0_4_18_linux = functools.partial(install_solc_from_static_linux, V0_4_18) +install_v0_4_19_linux = functools.partial(install_solc_from_static_linux, V0_4_19) def install_from_source(identifier): @@ -418,6 +422,8 @@ def install_from_source(identifier): install_v0_4_15_osx = functools.partial(install_from_source, V0_4_15) install_v0_4_16_osx = functools.partial(install_from_source, V0_4_16) install_v0_4_17_osx = functools.partial(install_from_source, V0_4_17) +install_v0_4_18_osx = functools.partial(install_from_source, V0_4_18) +install_v0_4_19_osx = functools.partial(install_from_source, V0_4_19) INSTALL_FUNCTIONS = { @@ -435,6 +441,8 @@ def install_from_source(identifier): V0_4_15: install_v0_4_15_linux, V0_4_16: install_v0_4_16_linux, V0_4_17: install_v0_4_17_linux, + V0_4_18: install_v0_4_18_linux, + V0_4_19: install_v0_4_19_linux, }, OSX: { V0_4_8: install_v0_4_8_osx, @@ -445,6 +453,8 @@ def install_from_source(identifier): V0_4_15: install_v0_4_15_osx, V0_4_16: install_v0_4_16_osx, V0_4_17: install_v0_4_17_osx, + V0_4_18: install_v0_4_18_osx, + V0_4_19: install_v0_4_19_osx, } }