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
This commit is contained in:
Daniel Sanchez 2024-01-31 09:53:04 +01:00 committed by GitHub
parent 7df4f9556f
commit 0f6bcf11b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 1 deletions

View File

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

4
.gitmodules vendored Normal file
View File

@ -0,0 +1,4 @@
[submodule "consensus-specs"]
path = eth-specs
url = git@github.com:ethereum/consensus-specs.git
branch = dev

1
eth-specs Submodule

@ -0,0 +1 @@
Subproject commit ae3ef6f330846cae283e7748f423ce54128ef6d4

5
install-eth-specs.sh Executable file
View File

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