bump `lightning-utilities` from <0.10 to <0.11 (#19586)

This commit is contained in:
Jirka Borovec 2024-03-07 17:20:57 +01:00 committed by GitHub
parent f23b3b1e7f
commit 0b88204c6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ fsspec[http] >=2022.5.0, <2023.11.0
croniter >=1.3.0, <1.5.0 # strict; TODO: for now until we find something more robust.
traitlets >=5.3.0, <5.12.0
arrow >=1.2.0, <1.3.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0
beautifulsoup4 >=4.8.0, <4.13.0
inquirer >=2.10.0, <3.2.0
psutil <5.9.6

View File

@ -6,4 +6,4 @@ torch >=1.13.0, <=2.2.0
fsspec[http] >=2022.5.0, <2023.11.0
packaging >=20.0, <=23.1
typing-extensions >=4.4.0, <4.10.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0

View File

@ -3,4 +3,4 @@
torchvision >=0.14.0, <0.18.0
torchmetrics >=0.10.0, <1.3.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0

View File

@ -9,4 +9,4 @@ fsspec[http] >=2022.5.0, <2023.11.0
torchmetrics >=0.7.0, <1.3.0 # needed for using fixed compare_version
packaging >=20.0, <=23.1
typing-extensions >=4.4.0, <4.10.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0

View File

@ -6,4 +6,4 @@ torchvision >=0.14.0, <0.18.0
gym[classic_control] >=0.17.0, <0.27.0
ipython[all] <8.15.0
torchmetrics >=0.10.0, <1.3.0
lightning-utilities >=0.8.0, <0.10.0
lightning-utilities >=0.8.0, <0.11.0

View File

@ -39,7 +39,7 @@ def _cli_entry_point() -> None:
if not (
ModuleAvailableCache("lightning.app")
if RequirementCache("lightning-utilities<0.10.0")
else RequirementCache(module="lightning.app") # type: ignore[call-arg]
else RequirementCache(module="lightning.app")
):
print("The `lightning` command requires additional dependencies: `pip install lightning[app]`")
sys.exit(1)

View File

@ -74,7 +74,7 @@ if not _UTILITIES_GREATER_EQUAL_0_10:
rank_zero_module.rank_zero_only.rank = getattr(rank_zero_module.rank_zero_only, "rank", _get_rank() or 0)
else:
rank_zero_only = rank_zero_module.rank_zero_only # type: ignore[assignment]
rank_zero_only = rank_zero_module.rank_zero_only
# add the attribute to the function but don't overwrite in case Trainer has already set it
rank_zero_only.rank = getattr(rank_zero_only, "rank", _get_rank() or 0)