From 9c89a1b91e5a009d327c595f7e817a9ca8919d49 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 2 Mar 2026 12:26:02 -0500 Subject: [PATCH] build: Constrain astroid to fix make upgrade. The latest version of pylint pins back astroid to an older version. This hold back is not caught in the docs requirements file and since both the docs and testing file are required in the development.in file, we fail to compile development.txt because of conflicting dependencies. Holding astroid back until pylint releases a new version that works with the latest version of astroid. Created https://github.com/openedx/openedx-platform/issues/38066 to undo this. --- requirements/constraints.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 3e91a3d2e7..ee608faee3 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -148,3 +148,22 @@ pact-python<3.0.0 # building requirements with Python 3.12 # https://github.com/openedx/edx-platform/issues/37880 sphinx-autoapi<3.6.1 + +# Date 2026-03-02 +# setuptools 82.0.0 removed pkg_resources from its distribution, but fs (pyfilesystem2) +# still uses pkg_resources for namespace package declarations. This constraint can be +# removed once pyfilesystem2 drops its pkg_resources usage. +# https://github.com/PyFilesystem/pyfilesystem2/issues/577 +# Issue for unpinning: https://github.com/openedx/openedx-platform/issues/38068 +setuptools<82 + +# Date 2026-03-02 +# The latest version of pylint pins back astroid to an older version. +# This holdback is not caught in the docs requirements file and since both the docs +# and testing file are required in the development.in file, we fail to compile +# development.txt because of conflicting dependencies. +# +# Holding astroid back until pylint releases a new version that works with the latest +# version of astroid. +# https://github.com/openedx/openedx-platform/issues/38066 +astroid==4.0.4