From c36106e63060c81760827fd1c740ea77ec3ba37a Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 10 Mar 2021 17:18:11 -0700 Subject: [PATCH] put snappy in 'generator' extra dep build and use for generator builds --- setup.py | 2 +- tests/generators/README.md | 2 +- tests/generators/bls/requirements.txt | 2 +- tests/generators/epoch_processing/requirements.txt | 2 +- tests/generators/finality/requirements.txt | 2 +- tests/generators/forks/requirements.txt | 2 +- tests/generators/genesis/requirements.txt | 2 +- tests/generators/operations/requirements.txt | 2 +- tests/generators/rewards/requirements.txt | 2 +- tests/generators/shuffling/requirements.txt | 2 +- tests/generators/ssz_generic/requirements.txt | 2 +- tests/generators/ssz_static/requirements.txt | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index 7923c0a44..aa74fcb05 100644 --- a/setup.py +++ b/setup.py @@ -576,6 +576,7 @@ setup( extras_require={ "test": ["pytest>=4.4", "pytest-cov", "pytest-xdist"], "lint": ["flake8==3.7.7", "mypy==0.750"], + "generator": ["python-snappy==0.5.4"], }, install_requires=[ "eth-utils>=1.3.0,<2", @@ -587,6 +588,5 @@ setup( "remerkleable==0.1.18", "ruamel.yaml==0.16.5", "lru-dict==1.1.6", - "python-snappy==0.5.4", ] ) diff --git a/tests/generators/README.md b/tests/generators/README.md index 0f1ed478f..6ccf9f118 100644 --- a/tests/generators/README.md +++ b/tests/generators/README.md @@ -79,7 +79,7 @@ It's recommended to extend the base-generator. Create a `requirements.txt` in the root of your generator directory: ``` pytest>=4.4 -../../../ +../../../[generator] ``` The config helper and pyspec is optional, but preferred. We encourage generators to derive tests from the spec itself in order to prevent code duplication and outdated tests. diff --git a/tests/generators/bls/requirements.txt b/tests/generators/bls/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/bls/requirements.txt +++ b/tests/generators/bls/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/epoch_processing/requirements.txt b/tests/generators/epoch_processing/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/epoch_processing/requirements.txt +++ b/tests/generators/epoch_processing/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/finality/requirements.txt b/tests/generators/finality/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/finality/requirements.txt +++ b/tests/generators/finality/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/forks/requirements.txt b/tests/generators/forks/requirements.txt index 816df6e63..735f863fa 100644 --- a/tests/generators/forks/requirements.txt +++ b/tests/generators/forks/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ \ No newline at end of file +../../../[generator] \ No newline at end of file diff --git a/tests/generators/genesis/requirements.txt b/tests/generators/genesis/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/genesis/requirements.txt +++ b/tests/generators/genesis/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/operations/requirements.txt b/tests/generators/operations/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/operations/requirements.txt +++ b/tests/generators/operations/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/rewards/requirements.txt b/tests/generators/rewards/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/rewards/requirements.txt +++ b/tests/generators/rewards/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/shuffling/requirements.txt b/tests/generators/shuffling/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/shuffling/requirements.txt +++ b/tests/generators/shuffling/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/ssz_generic/requirements.txt b/tests/generators/ssz_generic/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/ssz_generic/requirements.txt +++ b/tests/generators/ssz_generic/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator] diff --git a/tests/generators/ssz_static/requirements.txt b/tests/generators/ssz_static/requirements.txt index df386450b..182248686 100644 --- a/tests/generators/ssz_static/requirements.txt +++ b/tests/generators/ssz_static/requirements.txt @@ -1,2 +1,2 @@ pytest>=4.4 -../../../ +../../../[generator]