Skip to content

Commit

Permalink
build: fix tox requirements task and hypothesis setting with updated …
Browse files Browse the repository at this point in the history
…version (GridTools#1472)

Fix bugs appearing in the daily CI task:
- Fix `tox` config for `requirements-` tasks 
- Fix `hypothesis` config in cartesian tests
- Update requirements
  • Loading branch information
egparedes authored Feb 27, 2024
1 parent f59dc2c commit 68f5d53
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 78 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ repos:
## version = re.search('black==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"rev: '{version}' # version from constraints.txt")
##]]]
rev: '24.1.1' # version from constraints.txt
rev: '24.2.0' # version from constraints.txt
##[[[end]]]
hooks:
- id: black
Expand All @@ -73,7 +73,7 @@ repos:
# ## version = re.search('ruff==([0-9\.]*)', open("constraints.txt").read())[1]
# ## print(f"# rev: 'v{version}' # version from constraints.txt")
# ##]]]
# rev: 'v0.2.0' # version from constraints.txt
# rev: 'v0.2.2' # version from constraints.txt
# ##[[[end]]]
# hooks:
# - id: ruff
Expand Down Expand Up @@ -109,7 +109,7 @@ repos:
## print(f"- {pkg}==" + str(re.search(f'\n{pkg}==([0-9\.]*)', constraints)[1]))
##]]]
- darglint==1.8.1
- flake8-bugbear==24.1.17
- flake8-bugbear==24.2.6
- flake8-builtins==2.2.0
- flake8-debugger==4.1.2
- flake8-docstrings==1.7.0
Expand Down Expand Up @@ -178,27 +178,27 @@ repos:
##]]]
- astunparse==1.6.3
- attrs==23.2.0
- black==24.1.1
- black==24.2.0
- boltons==23.1.1
- cached-property==1.5.2
- click==8.1.7
- cmake==3.28.1
- cmake==3.28.3
- cytoolz==0.12.3
- deepdiff==6.7.1
- devtools==0.12.2
- factory-boy==3.3.0
- frozendict==2.4.0
- gridtools-cpp==2.3.2
- importlib-resources==6.1.1
- importlib-resources==6.1.2
- jinja2==3.1.3
- lark==1.1.9
- mako==1.3.2
- nanobind==1.8.0
- nanobind==1.9.2
- ninja==1.11.1.1
- numpy==1.24.4
- packaging==23.2
- pybind11==2.11.1
- setuptools==69.0.3
- setuptools==69.1.1
- tabulate==0.9.0
- typing-extensions==4.5.0
- xxhash==3.0.0
Expand Down
68 changes: 34 additions & 34 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,36 @@
#
aenum==3.1.15 # via dace
alabaster==0.7.13 # via sphinx
appnope==0.1.3 # via ipykernel, ipython
asttokens==2.4.1 # via devtools, stack-data
astunparse==1.6.3 ; python_version < "3.9" # via dace, gt4py (pyproject.toml)
attrs==23.2.0 # via flake8-bugbear, flake8-eradicate, gt4py (pyproject.toml), hypothesis, jsonschema, referencing
babel==2.14.0 # via sphinx
backcall==0.2.0 # via ipython
black==24.1.1 # via gt4py (pyproject.toml)
black==24.2.0 # via gt4py (pyproject.toml)
blinker==1.7.0 # via flask
boltons==23.1.1 # via gt4py (pyproject.toml)
build==1.0.3 # via pip-tools
cached-property==1.5.2 # via gt4py (pyproject.toml)
cachetools==5.3.2 # via tox
cachetools==5.3.3 # via tox
certifi==2024.2.2 # via requests
cffi==1.16.0 # via cryptography
cfgv==3.4.0 # via pre-commit
chardet==5.2.0 # via tox
charset-normalizer==3.3.2 # via requests
clang-format==17.0.6 # via -r requirements-dev.in, gt4py (pyproject.toml)
click==8.1.7 # via black, flask, gt4py (pyproject.toml), pip-tools
cmake==3.28.1 # via gt4py (pyproject.toml)
cmake==3.28.3 # via gt4py (pyproject.toml)
cogapp==3.3.0 # via -r requirements-dev.in
colorama==0.4.6 # via tox
comm==0.2.1 # via ipykernel
contourpy==1.1.1 # via matplotlib
coverage==7.4.1 # via -r requirements-dev.in, pytest-cov
cryptography==42.0.2 # via types-paramiko, types-pyopenssl, types-redis
coverage==7.4.3 # via -r requirements-dev.in, pytest-cov
cryptography==42.0.5 # via types-paramiko, types-pyopenssl, types-redis
cycler==0.12.1 # via matplotlib
cytoolz==0.12.3 # via gt4py (pyproject.toml)
dace==0.15.1 # via gt4py (pyproject.toml)
darglint==1.8.1 # via -r requirements-dev.in
debugpy==1.8.0 # via ipykernel
debugpy==1.8.1 # via ipykernel
decorator==5.1.1 # via ipython
deepdiff==6.7.1 # via gt4py (pyproject.toml)
devtools==0.12.2 # via gt4py (pyproject.toml)
Expand All @@ -47,12 +46,12 @@ eradicate==2.3.0 # via flake8-eradicate
exceptiongroup==1.2.0 # via hypothesis, pytest
execnet==2.0.2 # via pytest-cache, pytest-xdist
executing==2.0.1 # via devtools, stack-data
factory-boy==3.3.0 # via -r requirements-dev.in, pytest-factoryboy
faker==22.7.0 # via factory-boy
factory-boy==3.3.0 # via gt4py (pyproject.toml), pytest-factoryboy
faker==23.2.1 # via factory-boy
fastjsonschema==2.19.1 # via nbformat
filelock==3.13.1 # via tox, virtualenv
flake8==7.0.0 # via -r requirements-dev.in, flake8-bugbear, flake8-builtins, flake8-debugger, flake8-docstrings, flake8-eradicate, flake8-mutable, flake8-pyproject, flake8-rst-docstrings
flake8-bugbear==24.1.17 # via -r requirements-dev.in
flake8-bugbear==24.2.6 # via -r requirements-dev.in
flake8-builtins==2.2.0 # via -r requirements-dev.in
flake8-debugger==4.1.2 # via -r requirements-dev.in
flake8-docstrings==1.7.0 # via -r requirements-dev.in
Expand All @@ -61,19 +60,19 @@ flake8-mutable==1.2.0 # via -r requirements-dev.in
flake8-pyproject==1.2.3 # via -r requirements-dev.in
flake8-rst-docstrings==0.3.0 # via -r requirements-dev.in
flask==3.0.2 # via dace
fonttools==4.47.2 # via matplotlib
fonttools==4.49.0 # via matplotlib
fparser==0.1.4 # via dace
frozendict==2.4.0 # via gt4py (pyproject.toml)
gridtools-cpp==2.3.2 # via gt4py (pyproject.toml)
hypothesis==6.98.2 # via -r requirements-dev.in, gt4py (pyproject.toml)
identify==2.5.33 # via pre-commit
hypothesis==6.98.13 # via -r requirements-dev.in, gt4py (pyproject.toml)
identify==2.5.35 # via pre-commit
idna==3.6 # via requests
imagesize==1.4.1 # via sphinx
importlib-metadata==7.0.1 # via build, flask, jax, jupyter-client, sphinx
importlib-resources==6.1.1 ; python_version < "3.9" # via gt4py (pyproject.toml), jsonschema, jsonschema-specifications, matplotlib
importlib-resources==6.1.2 ; python_version < "3.9" # via gt4py (pyproject.toml), jsonschema, jsonschema-specifications, matplotlib
inflection==0.5.1 # via pytest-factoryboy
iniconfig==2.0.0 # via pytest
ipykernel==6.29.1 # via nbmake
ipykernel==6.29.3 # via nbmake
ipython==8.12.3 # via ipykernel
isort==5.13.2 # via -r requirements-dev.in
itsdangerous==2.1.2 # via flask
Expand All @@ -91,7 +90,7 @@ lark==1.1.9 # via gt4py (pyproject.toml)
mako==1.3.2 # via gt4py (pyproject.toml)
markdown-it-py==3.0.0 # via jupytext, mdit-py-plugins
markupsafe==2.1.5 # via jinja2, mako, werkzeug
matplotlib==3.7.4 # via -r requirements-dev.in
matplotlib==3.7.5 # via -r requirements-dev.in
matplotlib-inline==0.1.6 # via ipykernel, ipython
mccabe==0.7.0 # via flake8
mdit-py-plugins==0.4.0 # via jupytext
Expand All @@ -100,7 +99,7 @@ ml-dtypes==0.2.0 # via jax, jaxlib
mpmath==1.3.0 # via sympy
mypy==1.8.0 # via -r requirements-dev.in
mypy-extensions==1.0.0 # via black, mypy
nanobind==1.8.0 # via gt4py (pyproject.toml)
nanobind==1.9.2 # via gt4py (pyproject.toml)
nbclient==0.6.8 # via nbmake
nbformat==5.9.2 # via jupytext, nbclient, nbmake
nbmake==1.5.0 # via -r requirements-dev.in
Expand All @@ -117,8 +116,8 @@ pathspec==0.12.1 # via black
pexpect==4.9.0 # via ipython
pickleshare==0.7.5 # via ipython
pillow==10.2.0 # via matplotlib
pip-tools==7.3.0 # via -r requirements-dev.in
pipdeptree==2.13.2 # via -r requirements-dev.in
pip-tools==7.4.0 # via -r requirements-dev.in
pipdeptree==2.15.1 # via -r requirements-dev.in
pkgutil-resolve-name==1.3.10 # via jsonschema
platformdirs==4.2.0 # via black, jupyter-core, tox, virtualenv
pluggy==1.4.0 # via pytest, tox
Expand All @@ -136,8 +135,8 @@ pyflakes==3.2.0 # via flake8
pygments==2.17.2 # via -r requirements-dev.in, devtools, flake8-rst-docstrings, ipython, nbmake, sphinx
pyparsing==3.1.1 # via matplotlib
pyproject-api==1.6.1 # via tox
pyproject-hooks==1.0.0 # via build
pytest==8.0.0 # via -r requirements-dev.in, gt4py (pyproject.toml), nbmake, pytest-cache, pytest-cov, pytest-factoryboy, pytest-xdist
pyproject-hooks==1.0.0 # via build, pip-tools
pytest==8.0.2 # via -r requirements-dev.in, gt4py (pyproject.toml), nbmake, pytest-cache, pytest-cov, pytest-factoryboy, pytest-xdist
pytest-cache==1.0 # via -r requirements-dev.in
pytest-cov==4.1.0 # via -r requirements-dev.in
pytest-factoryboy==2.6.0 # via -r requirements-dev.in
Expand All @@ -149,8 +148,8 @@ pyzmq==25.1.2 # via ipykernel, jupyter-client
referencing==0.33.0 # via jsonschema, jsonschema-specifications
requests==2.31.0 # via dace, sphinx
restructuredtext-lint==1.4.0 # via flake8-rst-docstrings
rpds-py==0.17.1 # via jsonschema, referencing
ruff==0.2.1 # via -r requirements-dev.in
rpds-py==0.18.0 # via jsonschema, referencing
ruff==0.2.2 # via -r requirements-dev.in
scipy==1.10.1 # via gt4py (pyproject.toml), jax, jaxlib
setuptools-scm==8.0.4 # via fparser
six==1.16.0 # via asttokens, astunparse, python-dateutil
Expand All @@ -172,15 +171,15 @@ toml==0.10.2 # via jupytext
tomli==2.0.1 ; python_version < "3.11" # via -r requirements-dev.in, black, build, coverage, flake8-pyproject, mypy, pip-tools, pyproject-api, pyproject-hooks, pytest, setuptools-scm, tox
toolz==0.12.1 # via cytoolz
tornado==6.4 # via ipykernel, jupyter-client
tox==4.12.1 # via -r requirements-dev.in
tox==4.13.0 # via -r requirements-dev.in
traitlets==5.14.1 # via comm, ipykernel, ipython, jupyter-client, jupyter-core, matplotlib-inline, nbclient, nbformat
types-aiofiles==23.2.0.20240106 # via types-all
types-all==1.0.0 # via -r requirements-dev.in
types-annoy==1.17.8.4 # via types-all
types-atomicwrites==1.4.5.1 # via types-all
types-backports==0.1.3 # via types-all
types-backports-abc==0.5.2 # via types-all
types-bleach==6.1.0.1 # via types-all
types-bleach==6.1.0.20240222 # via types-all
types-boto==2.49.18.20240205 # via types-all
types-cachetools==5.3.0.7 # via types-all
types-certifi==2021.10.8.3 # via types-all
Expand All @@ -199,7 +198,7 @@ types-datetimerange==2.0.0.6 # via types-all
types-decorator==5.1.8.20240106 # via types-all
types-deprecated==1.2.9.20240106 # via types-all
types-docopt==0.6.11.4 # via types-all
types-docutils==0.20.0.20240201 # via types-all
types-docutils==0.20.0.20240227 # via types-all
types-emoji==2.1.0.3 # via types-all
types-enum34==1.1.8 # via types-all
types-fb303==1.0.0 # via types-all, types-scribe
Expand All @@ -210,6 +209,7 @@ types-freezegun==1.1.10 # via types-all
types-frozendict==2.0.9 # via types-all
types-futures==3.3.8 # via types-all
types-geoip2==3.0.0 # via types-all
types-html5lib==1.1.11.20240222 # via types-bleach
types-ipaddress==1.0.8 # via types-all, types-maxminddb
types-itsdangerous==1.1.6 # via types-all
types-jack-client==0.5.10.20240106 # via types-all
Expand All @@ -225,7 +225,7 @@ types-openssl-python==0.1.3 # via types-all
types-orjson==3.6.2 # via types-all
types-paramiko==3.4.0.20240205 # via types-all, types-pysftp
types-pathlib2==2.3.0 # via types-all
types-pillow==10.2.0.20240206 # via types-all
types-pillow==10.2.0.20240213 # via types-all
types-pkg-resources==0.1.3 # via types-all
types-polib==1.2.0.20240115 # via types-all
types-protobuf==4.24.0.20240129 # via types-all
Expand All @@ -244,13 +244,13 @@ types-python-slugify==8.0.2.20240127 # via types-all
types-pytz==2024.1.0.20240203 # via types-all, types-tzlocal
types-pyvmomi==8.0.0.6 # via types-all
types-pyyaml==6.0.12.12 # via types-all
types-redis==4.6.0.20240106 # via types-all
types-requests==2.31.0.20240125 # via types-all
types-redis==4.6.0.20240218 # via types-all
types-requests==2.31.0.20240218 # via types-all
types-retry==0.9.9.4 # via types-all
types-routes==2.5.0 # via types-all
types-scribe==2.0.0 # via types-all
types-setuptools==69.0.0.20240125 # via types-cffi
types-simplejson==3.19.0.2 # via types-all
types-setuptools==69.1.0.20240223 # via types-cffi
types-simplejson==3.19.0.20240218 # via types-all
types-singledispatch==4.1.0.0 # via types-all
types-six==1.16.21.20240106 # via types-all
types-tabulate==0.9.0.20240106 # via types-all
Expand All @@ -264,8 +264,8 @@ types-waitress==2.1.4.20240106 # via types-all
types-werkzeug==1.0.9 # via types-all, types-flask
types-xxhash==3.0.5.2 # via types-all
typing-extensions==4.5.0 # via black, faker, gt4py (pyproject.toml), ipython, mypy, pytest-factoryboy, setuptools-scm
urllib3==2.2.0 # via requests, types-requests
virtualenv==20.25.0 # via pre-commit, tox
urllib3==2.2.1 # via requests, types-requests
virtualenv==20.25.1 # via pre-commit, tox
wcwidth==0.2.13 # via prompt-toolkit
websockets==12.0 # via dace
werkzeug==3.0.1 # via flask
Expand All @@ -275,4 +275,4 @@ zipp==3.17.0 # via importlib-metadata, importlib-resources

# The following packages are considered to be unsafe in a requirements file:
pip==24.0 # via pip-tools
setuptools==69.0.3 # via gt4py (pyproject.toml), nodeenv, pip-tools, setuptools-scm
setuptools==69.1.1 # via gt4py (pyproject.toml), nodeenv, pip-tools, setuptools-scm
Loading

0 comments on commit 68f5d53

Please sign in to comment.