Switch to Python 3.7 (#2472)

* Add version info to installations

* Let's try a newer version?

* Use fixed yices release

* Really? No relative path support?

* Can't handle newer C compilers

Ugh we should really do something about that

* Let's try 3.8

* Back to 3.7

3.6 is EOL soon, so we can justify jumping up to a more recent version, but 3.8 might still be too new for some people.

* Find & Replace 3.6 -> 3.7

* Bump setup-python version

* Fix additional 3.6 usage
This commit is contained in:
Eric Hennenfent
2021-08-04 15:36:25 -07:00
committed by GitHub
parent 1f7b8dc4fc
commit 36b3024ff0
8 changed files with 35 additions and 27 deletions
+18 -12
View File
@@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.7
- name: Lint
if: github.event_name == 'pull_request'
env:
@@ -45,10 +45,10 @@ jobs:
type: ["ethereum_truffle", "ethereum_bench", "examples", "ethereum", "ethereum_vm", "native", "wasm", "wasm_sym", "other"]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.7
- name: Install NPM
uses: actions/setup-node@v1
with:
@@ -60,13 +60,19 @@ jobs:
#install utils
pip install coveralls
pip install -e ".[dev-noks]"
# Get version info
pip freeze
z3 --version
#install cvc4
sudo wget -O /usr/bin/cvc4 https://github.com/CVC4/CVC4/releases/download/1.7/cvc4-1.7-x86_64-linux-opt
sudo chmod +x /usr/bin/cvc4
cvc4 --version
#install yices
sudo add-apt-repository ppa:sri-csl/formal-methods
sudo apt-get update
sudo apt-get install yices2
sudo wget -O yices.tar.gz https://yices.csl.sri.com/releases/2.6.2/yices-2.6.2-x86_64-pc-linux-gnu-static-gmp.tar.gz
sudo tar -xzf yices.tar.gz
cd yices-2.6.2
sudo ./install-yices
yices --version
#install boolector
mkdir -p /tmp/build
cd /tmp/build
@@ -113,10 +119,10 @@ jobs:
needs: tests
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.7
- name: Build Dist
run: |
python3 -m pip install wheel
+3 -3
View File
@@ -14,10 +14,10 @@ jobs:
type: ["ethereum_truffle", "ethereum_bench", "ethereum", "ethereum_vm", "wasm", "wasm_sym", "other"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.7
- name: Install NPM
uses: actions/setup-node@v1
with:
+6 -6
View File
@@ -12,10 +12,10 @@ jobs:
type: ["ethereum_truffle", "ethereum_bench", "examples", "ethereum", "ethereum_vm", "native", "wasm", "wasm_sym", "other"]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.7
- name: Install NPM
uses: actions/setup-node@v1
with:
@@ -64,10 +64,10 @@ jobs:
needs: tests
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v1
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.7
- name: Build Dist
run: |
python3 -m pip install wheel
+1 -1
View File
@@ -217,7 +217,7 @@ for idx, val_list in enumerate(m.collect_returns()):
</details>
## Requirements
* Manticore requires Python 3.6 or greater
* Manticore requires Python 3.7 or greater
* Manticore officially supports the latest LTS version of Ubuntu provided by Github Actions
* Manticore has experimental support for EVM and WASM (but not native Linux binaries) on MacOS
* We recommend running with increased stack size. This can be done by running `ulimit -s 100000` or by passing `--ulimit stack=100000000:100000000` to `docker run`
+3 -1
View File
@@ -29,7 +29,9 @@ from manticore.utils import config
import copy
from manticore.core.smtlib.expression import *
prog = "../linux/simpleassert"
from pathlib import Path
prog = str(Path(__file__).parent.resolve().parent.joinpath("linux").joinpath("simpleassert"))
VERBOSITY = 0
+2 -2
View File
@@ -1,7 +1,7 @@
import sys
if sys.version_info < (3, 6):
print("Manticore requires Python 3.6 or higher.")
if sys.version_info < (3, 7):
print("Manticore requires Python 3.7 or higher.")
sys.exit(-1)
from .utils import config, log
+1 -1
View File
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.6
python_version = 3.7
files = manticore, tests
ignore_missing_imports = True
+1 -1
View File
@@ -61,7 +61,7 @@ setup(
author="Trail of Bits",
version=version,
packages=find_packages(exclude=["tests", "tests.*"]),
python_requires=">=3.6",
python_requires=">=3.7",
install_requires=[
"pyyaml",
"protobuf",