From f224d83a91d7ff5097dafaa715d53c6c1a88f502 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Wed, 20 Sep 2023 06:12:09 -0700 Subject: [PATCH] chore: tighten bounds for setuptools_scm (#3613) there is a regression in 8.0.0 which results in the following invalid code being generated for `vyper/version.py`: ```python from __future__ import annotations __version__ : str = version : str = '0.3.11' __version_tuple__ : 'tuple[int | str, ...]' = \ version_tuple : 'tuple[int | str, ...]' = (0, 3, 11) ``` this commit also removes some bad fuzzer deadlines. --- setup.py | 2 +- tests/ast/nodes/test_evaluate_binop_decimal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index c81b9bed4a..40efb436c5 100644 --- a/setup.py +++ b/setup.py @@ -99,7 +99,7 @@ def _global_version(version): "importlib-metadata", "wheel", ], - setup_requires=["pytest-runner", "setuptools_scm"], + setup_requires=["pytest-runner", "setuptools_scm>=7.1.0,<8.0.0"], tests_require=extras_require["test"], extras_require=extras_require, entry_points={ diff --git a/tests/ast/nodes/test_evaluate_binop_decimal.py b/tests/ast/nodes/test_evaluate_binop_decimal.py index c6c69626b8..3c8ba0888c 100644 --- a/tests/ast/nodes/test_evaluate_binop_decimal.py +++ b/tests/ast/nodes/test_evaluate_binop_decimal.py @@ -13,7 +13,7 @@ @pytest.mark.fuzzing -@settings(max_examples=50, deadline=1000) +@settings(max_examples=50, deadline=None) @given(left=st_decimals, right=st_decimals) @example(left=Decimal("0.9999999999"), right=Decimal("0.0000000001")) @example(left=Decimal("0.0000000001"), right=Decimal("0.9999999999")) @@ -52,7 +52,7 @@ def test_binop_pow(): @pytest.mark.fuzzing -@settings(max_examples=50, deadline=1000) +@settings(max_examples=50, deadline=None) @given( values=st.lists(st_decimals, min_size=2, max_size=10), ops=st.lists(st.sampled_from("+-*/%"), min_size=11, max_size=11),