Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Requirements Update #1175

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

edx-requirements-bot
Copy link
Contributor

@edx-requirements-bot edx-requirements-bot commented Jan 2, 2024

Python requirements update. Please review the changelogs for the upgraded packages.

NOTE: This pull request also includes the changes described below.

The tox quality environment is used to run quality tests (i.e. pylint, pycodestyle, and isort) on the codebase. This environment installs dependencies from both the test and quality requirement files.

This has caused a dependency resolution error with the importlib-metadata dependency. In the test requirements, importlib-metadata is a dependency of the logilab-common dependency, and this installs importlib-metadata=6.11.0. In the quality requirements, importlib-metadata is a dependency of the rstcheck and rstcheck-core dependencies, and this installs importlib-metadata=7.0.1. This causes a dependency resolution conflict when running the tox quality environment, because both the test and quality requirements files are installed in this environment, and versions 6.11.0 and 7.0.1 of importlib-metadata are requested, respectively.

The simplest solution is to remove the logilab-common dependency from the test requirements file, as it has no obvious purpose, particularly since this project does not explicitly install importlib-metadata and logilab-common, rstcheck, and rstcheck-core have very loose requirements ranges. This means we cannot easily ensure that the two importlib-metadata package versions match by modifying our versions of logilab-common, rstcheck, or rstcheck-core. It was also not possible to remove the test requirements from the tox quality environment, because then the quality checks fail with import errors for modules used in the tests (e.g. mock).

Deleted obsolete pull_requests:
#1174

@edx-requirements-bot
Copy link
Contributor Author

List of packages in the PR without any issue.

  • coverage changes from 7.3.2 to 7.4.0
  • coverage[toml] changes from 7.3.2 to 7.4.0
  • diff-cover changes from 8.0.1 to 8.0.2
  • django-ipware changes from 6.0.2 to 6.0.3
  • freezegun changes from 1.3.1 to 1.4.0
  • importlib-metadata changes from 7.0.0 to 7.0.1
  • isort changes from 5.13.1 to 5.13.2
  • prompt-toolkit changes from 3.0.42 to 3.0.43
  • psutil changes from 5.9.6 to 5.9.7
  • pycryptodomex changes from 3.19.0 to 3.19.1
  • pydantic changes from 2.5.2 to 2.5.3
  • pydantic-core changes from 2.14.5 to 2.14.6
  • pytest changes from 7.4.3 to 7.4.4
  • python-ipware changes from 2.0.0 to 2.0.1
  • tzdata changes from 2023.3 to 2023.4
  • xblock changes from 1.8.1 to 1.9.0

@edx-requirements-bot
Copy link
Contributor Author

These Packages need manual review..

  • [MAJOR] importlib-metadata changes from 6.11.0 to 7.0.1
  • [MAJOR] lxml changes from 4.9.3 to 5.0.0

@MichaelRoytman MichaelRoytman force-pushed the jenkins/upgrade-python-requirements-7515121 branch 2 times, most recently from 4413461 to faac27e Compare January 5, 2024 16:53
The tox quality environment is used to run quality tests (i.e. pylint, pycodestyle, and isort) on the codebase. This environment installs dependencies from both the test and quality requirement files.

This has caused a dependency resolution error with the importlib-metadata dependency. In the test requirements, importlib-metadata is a dependency of the logilab-common dependency, and this installs importlib-metadata=6.11.0. In the quality requirements, importlib-metadata is a dependency of the rstcheck and rstcheck-core dependencies, and this installs importlib-metadata=7.0.1. This causes a dependency resolution conflict when running the tox quality environment, because both the test and quality requirements files are installed in this environment, and versions 6.11.0 and 7.0.1 of importlib-metadata are requested, respectively.

The simplest solution is to remove the logilab-common dependency from the test requirements file, as it has no obvious purpose, particularly since this project does not explicitly install importlib-metadata and logilab-common, rstcheck, and rstcheck-core have very loose requirements ranges. This means we cannot easily ensure that the two importlib-metadata package versions match by modifying our versions of logilab-common, rstcheck, or rstcheck-core. It was also not possible to remove the test requirements from the tox quality environment, because then the quality checks fail with import errors for modules used in the tests (e.g. mock).
@MichaelRoytman MichaelRoytman force-pushed the jenkins/upgrade-python-requirements-7515121 branch from faac27e to 6492a59 Compare January 5, 2024 16:55
@MichaelRoytman MichaelRoytman merged commit ee3eb02 into master Jan 5, 2024
16 checks passed
@MichaelRoytman MichaelRoytman deleted the jenkins/upgrade-python-requirements-7515121 branch January 5, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants