Skip to content

Commit 5e3a3f0

Browse files
committed
only select first version when parsing
1 parent 2a47c4e commit 5e3a3f0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

hypothesis-python/docs/strategies.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ package that does all the Hypothesis-related setup work:
177177
178178
and then declare this as your ``"hypothesis"`` entry point:
179179

180-
.. code-block:: python
180+
.. code-block:: toml
181181
182182
# pyproject.toml
183183

hypothesis-python/scripts/basic-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $PYTEST tests/typing_extensions/
3636
pip uninstall -y typing_extensions
3737

3838
pip install ".[lark]"
39-
pip install "$(grep -oE 'lark>=([0-9.]+)' ../hypothesis-python/pyproject.toml | tr '>' =)"
39+
pip install "$(grep -m 1 -oE 'lark>=([0-9.]+)' ../hypothesis-python/pyproject.toml | tr '>' =)"
4040
$PYTEST -Wignore tests/lark/
4141
pip install "$(grep 'lark==' ../requirements/coverage.txt)"
4242
$PYTEST tests/lark/

hypothesis-python/scripts/other-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $PYTEST tests/test_annotated_types.py
4040
pip uninstall -y annotated-types
4141

4242
pip install ".[lark]"
43-
pip install "$(grep -oE 'lark>=([0-9.]+)' ../hypothesis-python/pyproject.toml | tr '>' =)"
43+
pip install "$(grep -m 1 -oE 'lark>=([0-9.]+)' ../hypothesis-python/pyproject.toml | tr '>' =)"
4444
$PYTEST -Wignore tests/lark/
4545
pip install "$(grep 'lark==' ../requirements/coverage.txt)"
4646
$PYTEST tests/lark/

hypothesis-python/tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ deps=
5353
allowlist_externals =
5454
bash
5555
commands=
56-
bash -c "pip install --only-binary=:all: numpy==$(grep 'numpy>=' pyproject.toml | grep -oE '[0-9.]+')"
56+
bash -c "pip install --only-binary=:all: numpy==$(grep -m 1 'numpy>=' pyproject.toml | grep -oE '[0-9.]+')"
5757
python -bb -X dev -m pytest tests/numpy/ -n auto
5858

5959
# This test job runs against the nightly version of `numpy`

0 commit comments

Comments
 (0)