Skip to content

Commit 3f95cc3

Browse files
authored
Merge pull request #34 from pipermerriam/piper/cover-up-to-solc-0.4.16
increase coverage up to solc 0.4.16
2 parents e1e0e5c + e786ead commit 3f95cc3

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ env:
3131
- SOLC_VERSION=v0.4.12 TOX_POSARGS=$ALL_STDLIB_AND_GEVENT_TESTS
3232
# solc 0.4.13
3333
- SOLC_VERSION=v0.4.13 TOX_POSARGS=$ALL_STDLIB_AND_GEVENT_TESTS
34+
# solc 0.4.14
35+
- SOLC_VERSION=v0.4.14 TOX_POSARGS=$ALL_STDLIB_AND_GEVENT_TESTS
36+
# solc 0.4.15
37+
- SOLC_VERSION=v0.4.15 TOX_POSARGS=$ALL_STDLIB_AND_GEVENT_TESTS
38+
# solc 0.4.16
39+
- SOLC_VERSION=v0.4.16 TOX_POSARGS=$ALL_STDLIB_AND_GEVENT_TESTS
3440
# linting
3541
- TOX_POSARGS="-e flake8"
3642
cache:

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,28 @@ listed platforms.
133133
* `v0.4.9` (linux)
134134
* `v0.4.11` (linux/osx)
135135
* `v0.4.12` (linux/osx)
136+
* `v0.4.13` (linux/osx)
137+
* `v0.4.14` (linux/osx)
138+
* `v0.4.15` (linux/osx)
139+
* `v0.4.16` (linux/osx)
136140

137141
Installation can be done via the command line:
138142

139143
```bash
140-
$ python -m solc.install v0.4.12
144+
$ python -m solc.install v0.4.16
141145
```
142146

143147
Or from python using the `install_solc` function.
144148

145149
```python
146150
>>> from solc import install_solc
147-
>>> install_solc('v0.4.12')
151+
>>> install_solc('v0.4.16')
148152
```
149153

150-
The installed binary can be found under your home directory. The `v0.4.12`
151-
binary would be located at `$HOME/.py-solc/solc-v0.4.12/bin/solc`. Older linux
154+
The installed binary can be found under your home directory. The `v0.4.16`
155+
binary would be located at `$HOME/.py-solc/solc-v0.4.16/bin/solc`. Older linux
152156
installs will also require that you set the environment variable
153-
`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.12/bin`
157+
`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.16/bin`
154158

155159

156160
## Import path remappings

solc/install.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
V0_4_11 = 'v0.4.11'
2121
V0_4_12 = 'v0.4.12'
2222
V0_4_13 = 'v0.4.13'
23+
V0_4_14 = 'v0.4.14'
24+
V0_4_15 = 'v0.4.15'
25+
V0_4_16 = 'v0.4.16'
2326

2427

2528
LINUX = 'linux'
@@ -390,6 +393,9 @@ def install_from_static_linux(identifier):
390393
install_v0_4_11_linux = functools.partial(install_solc_from_static_linux, V0_4_11)
391394
install_v0_4_12_linux = functools.partial(install_solc_from_static_linux, V0_4_12)
392395
install_v0_4_13_linux = functools.partial(install_solc_from_static_linux, V0_4_13)
396+
install_v0_4_14_linux = functools.partial(install_solc_from_static_linux, V0_4_14)
397+
install_v0_4_15_linux = functools.partial(install_solc_from_static_linux, V0_4_15)
398+
install_v0_4_16_linux = functools.partial(install_solc_from_static_linux, V0_4_16)
393399

394400

395401
def install_from_source(identifier):
@@ -406,6 +412,9 @@ def install_from_source(identifier):
406412
install_v0_4_11_osx = functools.partial(install_from_source, V0_4_11)
407413
install_v0_4_12_osx = functools.partial(install_from_source, V0_4_12)
408414
install_v0_4_13_osx = functools.partial(install_from_source, V0_4_13)
415+
install_v0_4_14_osx = functools.partial(install_from_source, V0_4_14)
416+
install_v0_4_15_osx = functools.partial(install_from_source, V0_4_15)
417+
install_v0_4_16_osx = functools.partial(install_from_source, V0_4_16)
409418

410419

411420
INSTALL_FUNCTIONS = {
@@ -419,12 +428,18 @@ def install_from_source(identifier):
419428
V0_4_11: install_v0_4_11_linux,
420429
V0_4_12: install_v0_4_12_linux,
421430
V0_4_13: install_v0_4_13_linux,
431+
V0_4_14: install_v0_4_14_linux,
432+
V0_4_15: install_v0_4_15_linux,
433+
V0_4_16: install_v0_4_16_linux,
422434
},
423435
OSX: {
424436
V0_4_8: install_v0_4_8_osx,
425437
V0_4_11: install_v0_4_11_osx,
426438
V0_4_12: install_v0_4_12_osx,
427439
V0_4_13: install_v0_4_13_osx,
440+
V0_4_14: install_v0_4_14_osx,
441+
V0_4_15: install_v0_4_15_osx,
442+
V0_4_16: install_v0_4_16_osx,
428443
}
429444
}
430445

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def contracts_dir(tmpdir):
1616
@pytest.fixture()
1717
def supported_solc_version():
1818
solc_version = get_solc_version()
19-
if solc_version not in Spec('>=0.4.1,<=0.4.13,!=0.4.10,!=0.4.3,!=0.4.4,!=0.4.5'):
19+
if solc_version not in Spec('>=0.4.1,<=0.4.16,!=0.4.10,!=0.4.3,!=0.4.4,!=0.4.5'):
2020
raise AssertionError("Unsupported compiler version: {0}".format(solc_version))
2121

2222
return solc_version

0 commit comments

Comments
 (0)