From 0f6bcf11b1fcea5a02cf90ac79330de4aa495291 Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Date: Wed, 31 Jan 2024 09:53:04 +0100 Subject: [PATCH] Add eth-specs submodule (#60) * Added eth specs submodule * Rename to eth-specs instead * Added install script for ethspecs module * Use python and pip instead of 3 * Load eth-specs in ci * Add checkout submodules to ci * Make install script executable * Added missing install command in script * Added missing submodule * Move to eth-specs for building --- .github/workflows/ci.yml | 6 +++++- .gitmodules | 4 ++++ eth-specs | 1 + install-eth-specs.sh | 5 +++++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 eth-specs create mode 100755 install-eth-specs.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77c6d41..9dcacf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + submodules: true - name: Set up Python 3.x uses: actions/setup-python@v5 with: @@ -20,5 +22,7 @@ jobs: python-version: '3.x' - name: Install dependencies run: pip install -r requirements.txt + - name: Build and install eth-specs + run: ./install-eth-specs.sh - name: Run tests run: python -m unittest diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b02051b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "consensus-specs"] + path = eth-specs + url = git@github.com:ethereum/consensus-specs.git + branch = dev diff --git a/eth-specs b/eth-specs new file mode 160000 index 0000000..ae3ef6f --- /dev/null +++ b/eth-specs @@ -0,0 +1 @@ +Subproject commit ae3ef6f330846cae283e7748f423ce54128ef6d4 diff --git a/install-eth-specs.sh b/install-eth-specs.sh new file mode 100755 index 0000000..fd9c479 --- /dev/null +++ b/install-eth-specs.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +cd ./eth-specs +pip install -r requirements_preinstallation.txt +python setup.py sdist bdist_wheel +pip install dist/*.whl \ No newline at end of file