From 0bd23859e54664e18c268f65f3c4199991f63ed9 Mon Sep 17 00:00:00 2001 From: Linlang <30293408+SunsetWolf@users.noreply.github.com> Date: Sat, 22 Oct 2022 17:32:56 +0800 Subject: [PATCH] fix_CI_error (#1325) --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 4527cf9109..8ce3b93f6e 100644 --- a/setup.py +++ b/setup.py @@ -154,6 +154,9 @@ def get_version(rel_path: str) -> str: "baostock", "yahooquery", "beautifulsoup4", + # The 5.0.0 version of importlib-metadata removed the deprecated endpoint, + # which prevented flake8 from working properly, so we restricted the version of importlib-metadata. + "importlib-metadata<5.0.0", "tianshou", "gym>=0.24", # If you do not put gym at the end, gym will degrade causing pytest results to fail. ],