Skip to content

Conversation

@miohtama
Copy link
Contributor

What was wrong?

If solc did not find any contracs in given folder JSON output was not properly managed.

How was it fixed?

Raise an exception if solc doesn't find any contracts.

Updates regarding solc installation instructions, .gitignore.

Cute Animal Picture

Deerp

…o install solc. Watch out for py.test / tox caches.
def test_compile_empty_folder():
"""Execute compile on a folder without contracts."""

with tempfile.TemporaryDirectory() as tmpdirname:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isn't python2 compatable.

You can do this with the tmpdir fixture provided by pytest.

def test_things(tmpdir):
    dir_that_will_be_auto_cleaned_up = str(tmpdir.mkdir('some-dir'))
    ...  # do things.

@pipermerriam
Copy link
Member

Also two linting errors.

/home/travis/build/pipermerriam/py-solc/solc/exceptions.py:10:55: W292 no newline at end of file
/home/travis/build/pipermerriam/py-solc/solc/main.py:46:8: E713 test for membership should be 'not in'

@pipermerriam
Copy link
Member

Just the two small cleanup items and I'll get this merged and released.

@miohtama
Copy link
Contributor Author

Done.

@pipermerriam pipermerriam merged commit 95e996c into ethereum:master Jul 31, 2016
@pipermerriam
Copy link
Member

Available as 0.3.0 on pypi and in the releases section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants