Skip to content

Commit

Permalink
Support for pytest 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Feb 19, 2024
1 parent d2c548c commit 4190cdc
Show file tree
Hide file tree
Showing 16 changed files with 1,014 additions and 829 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
toxenv: ["test", "pytest7"]
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand All @@ -59,7 +60,7 @@ jobs:
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools tox
- name: Run tests
run: python -m tox --recreate -e test
run: python -m tox --recreate -e ${{ matrix.toxenv }}

release:
runs-on: ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions deps/check.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
# pip-compile --annotation-style=line --output-file=deps/check.txt deps/check.in
#
attrs==23.2.0 # via flake8-bugbear
autoflake==2.2.1 # via shed
autoflake==2.3.0 # via shed
bandit==1.7.7 # via flake8-bandit
black==24.1.1 # via shed
black==24.2.0 # via shed
click==8.1.7 # via black
com2ann==0.3.0 # via shed
flake8==7.0.0 # via -r deps/check.in, flake8-bandit, flake8-bugbear, flake8-builtins, flake8-comprehensions, flake8-docstrings, flake8-print, pep8-naming
flake8-bandit==4.1.1 # via -r deps/check.in
flake8-bugbear==24.1.17 # via -r deps/check.in
flake8-bugbear==24.2.6 # via -r deps/check.in
flake8-builtins==2.2.0 # via -r deps/check.in
flake8-comprehensions==3.14.0 # via -r deps/check.in
flake8-docstrings==1.7.0 # via -r deps/check.in
Expand All @@ -33,15 +33,15 @@ pycodestyle==2.11.1 # via flake8, flake8-print
pydocstyle==6.3.0 # via flake8-docstrings
pyflakes==3.2.0 # via autoflake, flake8
pygments==2.17.2 # via rich
pyupgrade==3.15.0 # via shed
pyupgrade==3.15.1 # via shed
pyyaml==6.0.1 # via bandit, libcst
rich==13.7.0 # via bandit
shed==2024.1.1 # via -r deps/check.in
snowballstemmer==2.2.0 # via pydocstyle
stevedore==5.1.0 # via bandit
tokenize-rt==5.2.0 # via pyupgrade
tomli==2.0.1 # via autoflake, black, mypy
types-requests==2.31.0.20240125 # via -r deps/check.in
types-requests==2.31.0.20240218 # via -r deps/check.in
typing-extensions==4.9.0 # via black, libcst, mypy, typing-inspect
typing-inspect==0.9.0 # via libcst
urllib3==2.2.0 # via types-requests
urllib3==2.2.1 # via types-requests
18 changes: 9 additions & 9 deletions deps/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
alabaster==0.7.16 # via sphinx
attrs==23.2.0 # via hypothesis
babel==2.14.0 # via sphinx
black==24.1.1 # via hypofuzz (setup.py), hypothesis
black==24.2.0 # via hypofuzz (setup.py), hypothesis
blinker==1.7.0 # via flask
certifi==2024.2.2 # via requests
charset-normalizer==3.3.2 # via requests
Expand All @@ -19,8 +19,8 @@ dash-html-components==2.0.0 # via dash
dash-table==5.0.0 # via dash
docutils==0.20.1 # via myst-parser, pybtex-docutils, sphinx, sphinx-rtd-theme, sphinxcontrib-bibtex
exceptiongroup==1.2.0 # via hypothesis, pytest
flask==3.0.1 # via dash
hypothesis[cli]==6.97.4 # via hypofuzz (setup.py)
flask==3.0.2 # via dash
hypothesis[cli]==6.98.8 # via hypofuzz (setup.py)
idna==3.6 # via requests
imagesize==1.4.1 # via sphinx
importlib-metadata==7.0.1 # via dash
Expand All @@ -30,24 +30,24 @@ jinja2==3.1.3 # via flask, myst-parser, sphinx
latexcodec==2.0.1 # via pybtex
libcst==1.1.0 # via hypofuzz (setup.py)
markdown-it-py==3.0.0 # via mdit-py-plugins, myst-parser, rich
markupsafe==2.1.4 # via jinja2, werkzeug
markupsafe==2.1.5 # via jinja2, werkzeug
mdit-py-plugins==0.4.0 # via myst-parser
mdurl==0.1.2 # via markdown-it-py
mypy-extensions==1.0.0 # via black, typing-inspect
myst-parser==2.0.0 # via -r deps/docs.in
nest-asyncio==1.6.0 # via dash
numpy==1.26.3 # via pandas
numpy==1.26.4 # via pandas
packaging==23.2 # via black, plotly, pytest, sphinx
pandas==2.2.0 # via hypofuzz (setup.py)
pathspec==0.12.1 # via black
platformdirs==4.2.0 # via black
plotly==5.18.0 # via dash
plotly==5.19.0 # via dash
pluggy==1.4.0 # via pytest
psutil==5.9.8 # via hypofuzz (setup.py)
pybtex==0.24.0 # via pybtex-docutils, sphinxcontrib-bibtex
pybtex-docutils==1.0.3 # via sphinxcontrib-bibtex
pygments==2.17.2 # via rich, sphinx
pytest==8.0.0 # via hypofuzz (setup.py)
pytest==8.0.1 # via hypofuzz (setup.py)
python-dateutil==2.8.2 # via pandas
pytz==2024.1 # via pandas
pyyaml==6.0.1 # via libcst, myst-parser, pybtex
Expand All @@ -72,8 +72,8 @@ tenacity==8.2.3 # via plotly
tomli==2.0.1 # via black, pytest
typing-extensions==4.9.0 # via black, dash, libcst, typing-inspect
typing-inspect==0.9.0 # via libcst
tzdata==2023.4 # via pandas
urllib3==2.2.0 # via requests
tzdata==2024.1 # via pandas
urllib3==2.2.1 # via requests
werkzeug==3.0.1 # via dash, flask
zipp==3.17.0 # via importlib-metadata

Expand Down
2 changes: 2 additions & 0 deletions deps/test-old.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r ./test.in
pytest < 8.0
64 changes: 64 additions & 0 deletions deps/test-old.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --annotation-style=line --output-file=deps/test-old.txt deps/test-old.in setup.py
#
attrs==23.2.0 # via hypothesis
black==24.2.0 # via hypofuzz (setup.py), hypothesis
blinker==1.7.0 # via flask
certifi==2024.2.2 # via requests
charset-normalizer==3.3.2 # via requests
click==8.1.7 # via black, flask, hypothesis
coverage[toml]==7.4.1 # via hypofuzz (setup.py), pytest-cov
dash==2.15.0 # via hypofuzz (setup.py)
dash-core-components==2.0.0 # via dash
dash-html-components==2.0.0 # via dash
dash-table==5.0.0 # via dash
exceptiongroup==1.2.0 # via hypothesis, pytest
execnet==2.0.2 # via pytest-xdist
flask==3.0.2 # via dash
hypothesis[cli]==6.98.8 # via hypofuzz (setup.py)
idna==3.6 # via requests
importlib-metadata==7.0.1 # via dash
iniconfig==2.0.0 # via pytest
itsdangerous==2.1.2 # via flask
jinja2==3.1.3 # via flask
libcst==1.1.0 # via hypofuzz (setup.py)
markdown-it-py==3.0.0 # via rich
markupsafe==2.1.5 # via jinja2, werkzeug
mdurl==0.1.2 # via markdown-it-py
mypy-extensions==1.0.0 # via black, typing-inspect
nest-asyncio==1.6.0 # via dash
numpy==1.26.4 # via pandas, pyarrow
packaging==23.2 # via black, plotly, pytest
pandas==2.2.0 # via hypofuzz (setup.py)
pathspec==0.12.1 # via black
platformdirs==4.2.0 # via black
plotly==5.19.0 # via dash
pluggy==1.4.0 # via pytest
psutil==5.9.8 # via hypofuzz (setup.py)
pyarrow==15.0.0 # via -r deps/./test.in
pygments==2.17.2 # via rich
pytest==7.4.4 # via -r deps/./test.in, -r deps/test-old.in, hypofuzz (setup.py), pytest-cov, pytest-xdist
pytest-cov==4.1.0 # via -r deps/./test.in
pytest-xdist==3.5.0 # via -r deps/./test.in
python-dateutil==2.8.2 # via pandas
pytz==2024.1 # via pandas
pyyaml==6.0.1 # via libcst
requests==2.31.0 # via dash, hypofuzz (setup.py)
retrying==1.3.4 # via dash
rich==13.7.0 # via hypothesis
six==1.16.0 # via python-dateutil, retrying
sortedcontainers==2.4.0 # via hypothesis
tenacity==8.2.3 # via plotly
tomli==2.0.1 # via black, coverage, pytest
typing-extensions==4.9.0 # via black, dash, libcst, typing-inspect
typing-inspect==0.9.0 # via libcst
tzdata==2024.1 # via pandas
urllib3==2.2.1 # via requests
werkzeug==3.0.1 # via dash, flask
zipp==3.17.0 # via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# setuptools
2 changes: 2 additions & 0 deletions deps/test.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
pytest
pytest-cov
pytest-xdist

pyarrow # avoid Pandas deprecation warning via plotly/dash
19 changes: 10 additions & 9 deletions deps/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# pip-compile --annotation-style=line --output-file=deps/test.txt deps/test.in setup.py
#
attrs==23.2.0 # via hypothesis
black==24.1.1 # via hypofuzz (setup.py), hypothesis
black==24.2.0 # via hypofuzz (setup.py), hypothesis
blinker==1.7.0 # via flask
certifi==2024.2.2 # via requests
charset-normalizer==3.3.2 # via requests
Expand All @@ -17,29 +17,30 @@ dash-html-components==2.0.0 # via dash
dash-table==5.0.0 # via dash
exceptiongroup==1.2.0 # via hypothesis, pytest
execnet==2.0.2 # via pytest-xdist
flask==3.0.1 # via dash
hypothesis[cli]==6.97.4 # via hypofuzz (setup.py)
flask==3.0.2 # via dash
hypothesis[cli]==6.98.8 # via hypofuzz (setup.py)
idna==3.6 # via requests
importlib-metadata==7.0.1 # via dash
iniconfig==2.0.0 # via pytest
itsdangerous==2.1.2 # via flask
jinja2==3.1.3 # via flask
libcst==1.1.0 # via hypofuzz (setup.py)
markdown-it-py==3.0.0 # via rich
markupsafe==2.1.4 # via jinja2, werkzeug
markupsafe==2.1.5 # via jinja2, werkzeug
mdurl==0.1.2 # via markdown-it-py
mypy-extensions==1.0.0 # via black, typing-inspect
nest-asyncio==1.6.0 # via dash
numpy==1.26.3 # via pandas
numpy==1.26.4 # via pandas, pyarrow
packaging==23.2 # via black, plotly, pytest
pandas==2.2.0 # via hypofuzz (setup.py)
pathspec==0.12.1 # via black
platformdirs==4.2.0 # via black
plotly==5.18.0 # via dash
plotly==5.19.0 # via dash
pluggy==1.4.0 # via pytest
psutil==5.9.8 # via hypofuzz (setup.py)
pyarrow==15.0.0 # via -r deps/test.in
pygments==2.17.2 # via rich
pytest==8.0.0 # via -r deps/test.in, hypofuzz (setup.py), pytest-cov, pytest-xdist
pytest==8.0.1 # via -r deps/test.in, hypofuzz (setup.py), pytest-cov, pytest-xdist
pytest-cov==4.1.0 # via -r deps/test.in
pytest-xdist==3.5.0 # via -r deps/test.in
python-dateutil==2.8.2 # via pandas
Expand All @@ -54,8 +55,8 @@ tenacity==8.2.3 # via plotly
tomli==2.0.1 # via black, coverage, pytest
typing-extensions==4.9.0 # via black, dash, libcst, typing-inspect
typing-inspect==0.9.0 # via libcst
tzdata==2023.4 # via pandas
urllib3==2.2.0 # via requests
tzdata==2024.1 # via pandas
urllib3==2.2.1 # via requests
werkzeug==3.0.1 # via dash, flask
zipp==3.17.0 # via importlib-metadata

Expand Down
3 changes: 3 additions & 0 deletions docs-src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
HypoFuzz uses [calendar-based versioning](https://calver.org/), with a
`YY-MM-patch` format.

## 24.02.3
Fixed compatibility with Pytest 8.x ([#32](https://github.com/Zac-HD/hypofuzz/issues/32)).

## 24.02.2
Fixed a dashboard bug ([#31](https://github.com/Zac-HD/hypofuzz/issues/31)).

Expand Down
2 changes: 1 addition & 1 deletion src/hypofuzz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Adaptive fuzzing for property-based tests using Hypothesis."""

__version__ = "24.2.2"
__version__ = "24.2.3"
__all__: list = []
Loading

0 comments on commit 4190cdc

Please sign in to comment.