Skip to content

Commit

Permalink
Increase minimum versions of awkward and dask-awkward; improve message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Oct 13, 2023
1 parent 9ea709b commit 80e392c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ classifiers = [
"Topic :: Utilities",
]
dependencies = [
"awkward>=2.4.5",
"awkward>=2.4.6",
"importlib-metadata;python_version<\"3.8\"",
"numpy",
"packaging",
Expand All @@ -51,7 +51,7 @@ dynamic = [
[project.optional-dependencies]
dev = [
"boost_histogram>=0.13",
"dask-awkward>=2023.10.0a1",
"dask-awkward>=2023.10.0",
"dask[array]",
"hist>=1.2",
"pandas",
Expand Down
8 changes: 4 additions & 4 deletions src/uproot/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def awkward():
to output as NumPy arrays, rather than Awkward arrays.
"""
) from err
if parse_version(awkward.__version__) >= parse_version("2.4.5"):
if parse_version(awkward.__version__) >= parse_version("2.4.6"):
return awkward
else:
raise ModuleNotFoundError(
"Uproot 5.x can only be used with Awkward 2.4.5 or newer; you have Awkward {}".format(
"Uproot 5.1+ can only be used with Awkward 2.4.6 or newer; you have Awkward {}".format(
awkward.__version__
)
)
Expand Down Expand Up @@ -320,11 +320,11 @@ def dask_awkward():
or
conda install -c conda-forge dask dask-awkward"""
) from err
if parse_version(dask_awkward.__version__) >= parse_version("2023.10.0a1"):
if parse_version(dask_awkward.__version__) >= parse_version("2023.10.0"):
return dask_awkward
else:
raise ModuleNotFoundError(
"Uproot 5.x can only be used with dask-awkward 2023.10.0a1 or newer; you have dask-awkward {}".format(
"Uproot 5.1+ can only be used with dask-awkward 2023.10.0 or newer; you have dask-awkward {}".format(
dask_awkward.__version__
)
)
Expand Down

0 comments on commit 80e392c

Please sign in to comment.