Python 3.5 tolerance and note what Python versions Mythril accepts

pull/374/head
rocky 6 years ago
parent bcb051711f
commit 2f13ef85f3
  1. 6
      all_tests.sh
  2. 2
      myth
  3. 6
      mythril/__init__.py
  4. 2
      mythril/mythril.py
  5. 11
      setup.py
  6. 2
      tox.ini

@ -3,8 +3,8 @@
echo -n "Checking Python version... " echo -n "Checking Python version... "
python -c 'import sys python -c 'import sys
print(sys.version) print(sys.version)
assert sys.version_info[0:2] >= (3,6), \ assert sys.version_info[0:2] >= (3,5), \
"""Please make sure you are using Python 3.6.x. """Please make sure you are using Python 3.5 or later.
You ran with {}""".format(sys.version)' || exit $? You ran with {}""".format(sys.version)' || exit $?
echo "Checking solc version..." echo "Checking solc version..."
@ -15,7 +15,7 @@ out=$(solc --version) || {
case $out in case $out in
*Version:\ 0.4.2[1-9]* ) *Version:\ 0.4.2[1-9]* )
echo $out echo $out
break ;; ;;
* ) * )
echo $out echo $out
echo "Please make sure your solc version is at least 0.4.21" echo "Please make sure your solc version is at least 0.4.21"

@ -1,5 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: UTF-8 -*- # -*- coding: utf-8 -*-
"""mythril.py: Bug hunting on the Ethereum blockchain """mythril.py: Bug hunting on the Ethereum blockchain
http://www.github.com/b-mueller/mythril http://www.github.com/b-mueller/mythril
""" """

@ -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

@ -1,5 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: UTF-8 -*- # -*- coding: utf-8 -*-
"""mythril.py: Bug hunting on the Ethereum blockchain """mythril.py: Bug hunting on the Ethereum blockchain
http://www.github.com/b-mueller/mythril http://www.github.com/b-mueller/mythril

@ -12,7 +12,7 @@ VERSION = None
# deployment; otherwise the build will failed. # deployment; otherwise the build will failed.
version_path = (Path(__file__).parent / 'mythril' / 'version.py').absolute() 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): class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version""" """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 $ cd mythril
$ python setup.py install $ 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 Function signatures
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
@ -294,12 +294,9 @@ setup(
'License :: OSI Approved :: MIT License', '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.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
], ],
keywords='hacking disassembler security ethereum', keywords='hacking disassembler security ethereum',

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py36 envlist = py35,py36
[testenv] [testenv]
deps = deps =

Loading…
Cancel
Save