Skip to content

Commit 565ca56

Browse files
authored
Merge pull request #41 from pipermerriam/piper/solc-4.19
solc v0.4.18 and v0.4.19
2 parents 593f817 + 17d3947 commit 565ca56

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ matrix:
111111
env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.17
112112
- python: "3.5"
113113
env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.17
114+
# solc 0.4.18
115+
- python: "2.7"
116+
env: TOX_POSARGS="-e py27" SOLC_VERSION=v0.4.18
117+
- python: "3.4"
118+
env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.18
119+
- python: "3.5"
120+
env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.18
121+
# solc 0.4.19
122+
- python: "2.7"
123+
env: TOX_POSARGS="-e py27" SOLC_VERSION=v0.4.19
124+
- python: "3.4"
125+
env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.19
126+
- python: "3.5"
127+
env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.19
114128
cache:
115129
- pip: true
116130
before_install:

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,24 +191,26 @@ listed platforms.
191191
* `v0.4.15` (linux/osx)
192192
* `v0.4.16` (linux/osx)
193193
* `v0.4.17` (linux/osx)
194+
* `v0.4.18` (linux/osx)
195+
* `v0.4.19` (linux/osx)
194196

195197
Installation can be done via the command line:
196198

197199
```bash
198-
$ python -m solc.install v0.4.17
200+
$ python -m solc.install v0.4.19
199201
```
200202

201203
Or from python using the `install_solc` function.
202204

203205
```python
204206
>>> from solc import install_solc
205-
>>> install_solc('v0.4.17')
207+
>>> install_solc('v0.4.19')
206208
```
207209

208-
The installed binary can be found under your home directory. The `v0.4.17`
209-
binary would be located at `$HOME/.py-solc/solc-v0.4.17/bin/solc`. Older linux
210+
The installed binary can be found under your home directory. The `v0.4.19`
211+
binary would be located at `$HOME/.py-solc/solc-v0.4.19/bin/solc`. Older linux
210212
installs will also require that you set the environment variable
211-
`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.17/bin`
213+
`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.19/bin`
212214

213215

214216
## Import path remappings

solc/install.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
V0_4_15 = 'v0.4.15'
2525
V0_4_16 = 'v0.4.16'
2626
V0_4_17 = 'v0.4.17'
27+
V0_4_18 = 'v0.4.18'
28+
V0_4_19 = 'v0.4.19'
2729

2830

2931
LINUX = 'linux'
@@ -398,6 +400,8 @@ def install_from_static_linux(identifier):
398400
install_v0_4_15_linux = functools.partial(install_solc_from_static_linux, V0_4_15)
399401
install_v0_4_16_linux = functools.partial(install_solc_from_static_linux, V0_4_16)
400402
install_v0_4_17_linux = functools.partial(install_solc_from_static_linux, V0_4_17)
403+
install_v0_4_18_linux = functools.partial(install_solc_from_static_linux, V0_4_18)
404+
install_v0_4_19_linux = functools.partial(install_solc_from_static_linux, V0_4_19)
401405

402406

403407
def install_from_source(identifier):
@@ -418,6 +422,8 @@ def install_from_source(identifier):
418422
install_v0_4_15_osx = functools.partial(install_from_source, V0_4_15)
419423
install_v0_4_16_osx = functools.partial(install_from_source, V0_4_16)
420424
install_v0_4_17_osx = functools.partial(install_from_source, V0_4_17)
425+
install_v0_4_18_osx = functools.partial(install_from_source, V0_4_18)
426+
install_v0_4_19_osx = functools.partial(install_from_source, V0_4_19)
421427

422428

423429
INSTALL_FUNCTIONS = {
@@ -435,6 +441,8 @@ def install_from_source(identifier):
435441
V0_4_15: install_v0_4_15_linux,
436442
V0_4_16: install_v0_4_16_linux,
437443
V0_4_17: install_v0_4_17_linux,
444+
V0_4_18: install_v0_4_18_linux,
445+
V0_4_19: install_v0_4_19_linux,
438446
},
439447
OSX: {
440448
V0_4_8: install_v0_4_8_osx,
@@ -445,6 +453,8 @@ def install_from_source(identifier):
445453
V0_4_15: install_v0_4_15_osx,
446454
V0_4_16: install_v0_4_16_osx,
447455
V0_4_17: install_v0_4_17_osx,
456+
V0_4_18: install_v0_4_18_osx,
457+
V0_4_19: install_v0_4_19_osx,
448458
}
449459
}
450460

0 commit comments

Comments
 (0)