diff --git a/all_tests.sh b/all_tests.sh index c6740889..61cd7d67 100755 --- a/all_tests.sh +++ b/all_tests.sh @@ -3,8 +3,8 @@ echo -n "Checking Python version... " python -c 'import sys print(sys.version) -assert sys.version_info[0:2] >= (3,6), \ -"""Please make sure you are using Python 3.6.x. +assert sys.version_info[0:2] >= (3,5), \ +"""Please make sure you are using Python 3.5 or later. You ran with {}""".format(sys.version)' || exit $? echo "Checking solc version..." @@ -15,7 +15,7 @@ out=$(solc --version) || { case $out in *Version:\ 0.4.2[1-9]* ) echo $out - break ;; + ;; * ) echo $out echo "Please make sure your solc version is at least 0.4.21" diff --git a/myth b/myth index 8a27925e..a45d431f 100755 --- a/myth +++ b/myth @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- """mythril.py: Bug hunting on the Ethereum blockchain http://www.github.com/b-mueller/mythril """ diff --git a/mythril/__init__.py b/mythril/__init__.py index e69de29b..c0494623 100644 --- a/mythril/__init__.py +++ b/mythril/__init__.py @@ -0,0 +1,6 @@ +# We use RsT document formatting in docstring. For example :param to mark parameters. +# See PEP 287 +__docformat__ = 'restructuredtext' + +# Accept mythril.VERSION to get mythril's current version number +from .version import VERSION # NOQA diff --git a/mythril/mythril.py b/mythril/mythril.py index 3e085c8e..b4dcaa13 100644 --- a/mythril/mythril.py +++ b/mythril/mythril.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- """mythril.py: Bug hunting on the Ethereum blockchain http://www.github.com/b-mueller/mythril diff --git a/setup.py b/setup.py index 68bd8e9f..2e1df705 100755 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ VERSION = None # deployment; otherwise the build will failed. version_path = (Path(__file__).parent / 'mythril' / 'version.py').absolute() -exec(open(version_path, 'r').read()) +exec(open(str(version_path), 'r').read()) class VerifyVersionCommand(install): """Custom command to verify that the git tag matches our version""" @@ -48,7 +48,7 @@ Or, clone the GitHub repo to install the newest master branch: $ cd mythril $ python setup.py install -Note that Mythril requires Python 3.5 to work. +Note that Mythril requires Python 3.5 or later to work. Function signatures ~~~~~~~~~~~~~~~~~~~ @@ -294,12 +294,9 @@ setup( 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ], keywords='hacking disassembler security ethereum', diff --git a/tox.ini b/tox.ini index e6e73a73..49a52d9d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36 +envlist = py35,py36 [testenv] deps =