From d3eb0e3ed6155beadc383002908093849958b4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Gallou=C3=A9dec?= <45557362+qgallouedec@users.noreply.github.com> Date: Mon, 3 Oct 2022 12:03:51 +0200 Subject: [PATCH] Fix importlib dependency (#1088) * Set requirement ``importlib-metadata~=4.13`` * Update changelog --- docs/misc/changelog.rst | 1 + setup.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index 5f98147..738b676 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -36,6 +36,7 @@ Bug Fixes: - Removed ``forward()`` abstract method declaration from ``common.policies.BaseModel`` (already defined in ``torch.nn.Module``) to fix type errors in subclasses (@Rocamonde) - Fixed the return type of ``.load()`` and ``.learn()`` methods in ``BaseAlgorithm`` so that they now use ``TypeVar`` (@Rocamonde) - Fixed an issue where keys with different tags but the same key raised an error in ``common.logger.HumanOutputFormat`` (@Rocamonde and @AdamGleave) +- Set importlib-metadata version to `~=4.13` Deprecations: ^^^^^^^^^^^^^ diff --git a/setup.py b/setup.py index 8c410a3..fd1ee47 100644 --- a/setup.py +++ b/setup.py @@ -94,6 +94,8 @@ setup( "pytype", # Lint code "flake8>=3.8", + # flake8 not compatible with importlib-metadata>5.0 + "importlib-metadata~=4.13", # Find likely bugs "flake8-bugbear", # Sort imports