Skip to content

Commit

Permalink
chore: tighten bounds for setuptools_scm (vyperlang#3613)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
charles-cooper authored Sep 20, 2023
1 parent 1711569 commit f224d83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down
4 changes: 2 additions & 2 deletions tests/ast/nodes/test_evaluate_binop_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit f224d83

Please sign in to comment.