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 #83

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

edx-requirements-bot
Copy link
Contributor

@edx-requirements-bot edx-requirements-bot commented Sep 25, 2023

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

Deleted obsolete pull_requests:
#82

Fixing test cases:

Here is the screenshot of 2 errors occurring while running mypy:

These errors started occurring with the updated version of mypy and django-stubs

Screenshot 2023-09-26 at 9 34 52 AM

Error:

error: "Type[Model]" has no attribute "DoesNotExist" [attr-defined]

Ways to fix it are discussed here:
typeddjango/django-stubs#1697 (comment)

Error:

error: "Type[Model]" has no attribute "objects" [attr-defined]

Ways to fix it are discussed here:
typeddjango/django-stubs#1684

There are different ways to avoid this error, listed below:

  1. Replace the line with the following as recommended here:
self.tag_class_model._default_manager.get(pk=instance_id)
  1. Silence the error on this particular line:
return self.tag_class_model.objects.get(pk=instance_id) # type: ignore[attr-defined]
  1. Perhaps disable specific kinds of errors in configuration/globally

@edx-requirements-bot edx-requirements-bot requested a review from a team September 25, 2023 00:44
@edx-requirements-bot
Copy link
Contributor Author

List of packages in the PR without any issue.

  • astroid changes from 2.15.5 to 2.15.7
  • celery changes from 5.3.1 to 5.3.4
  • chardet changes from 5.1.0 to 5.2.0
  • click changes from 8.1.6 to 8.1.7
  • code-annotations changes from 1.3.0 to 1.5.0
  • coverage[toml] changes from 7.2.7 to 7.3.1
  • cryptography changes from 41.0.3 to 41.0.4
  • diff-cover changes from 7.6.0 to 7.7.0
  • dill changes from 0.3.6 to 0.3.7
  • distlib changes from 0.3.6 to 0.3.7
  • django changes from 3.2.19 to 3.2.21
  • django-debug-toolbar changes from 4.1.0 to 4.2.0
  • django-stubs changes from 4.2.3 to 4.2.4
  • edx-drf-extensions changes from 8.8.0 to 8.10.0
  • edx-opaque-keys changes from 2.4.0 to 2.5.1
  • exceptiongroup changes from 1.1.1 to 1.1.3
  • filelock changes from 3.12.2 to 3.12.4
  • import-linter changes from 1.9.0 to 1.12.0
  • importlib-metadata changes from 6.7.0 to 6.8.0
  • jaraco-classes changes from 3.2.3 to 3.3.0
  • keyring changes from 24.0.0 to 24.2.0
  • kombu changes from 5.3.1 to 5.3.2
  • mock changes from 5.0.2 to 5.1.0
  • mysqlclient changes from 2.1.1 to 2.2.0
  • path changes from 16.6.0 to 16.7.1
  • platformdirs changes from 3.6.0 to 3.10.0
  • pluggy changes from 1.0.0 to 1.3.0
  • pycodestyle changes from 2.10.0 to 2.11.0
  • pydata-sphinx-theme changes from 0.13.3 to 0.14.1
  • pygments changes from 2.15.1 to 2.16.1
  • pylint changes from 2.17.4 to 2.17.5
  • pytest changes from 7.3.2 to 7.4.2
  • pytz changes from 2023.3 to 2023.3.post1
  • pyyaml changes from 6.0 to 6.0.1
  • rich changes from 13.4.2 to 13.5.3
  • soupsieve changes from 2.4.1 to 2.5
  • sphinxcontrib-django changes from 2.3 to 2.4
  • tomlkit changes from 0.11.8 to 0.12.1
  • tox-battery changes from 0.6.1 to 0.6.2
  • types-pytz changes from 2023.3.0.1 to 2023.3.1.1
  • types-pyyaml changes from 6.0.12.11 to 6.0.12.12
  • types-requests changes from 2.31.0.2 to 2.31.0.4
  • typing-extensions changes from 4.6.3 to 4.8.0
  • urllib3 changes from 2.0.4 to 2.0.5
  • virtualenv changes from 20.23.1 to 20.24.5
  • wheel changes from 0.40.0 to 0.41.2
  • zipp changes from 3.15.0 to 3.17.0

@edx-requirements-bot
Copy link
Contributor Author

These Packages need manual review..

  • [NEW] backports-zoneinfo[tzdata] (0.2.1) added to the requirements
  • [REMOVED] bleach (6.0.0) removed from the requirements
  • [MAJOR] build changes from 0.10.0 to 1.0.3
  • [MAJOR] edx-i18n-tools changes from 0.9.2 to 1.2.0
  • [MAJOR] grimp changes from 2.4 to 3.0
  • [NEW] importlib-metadata (6.8.0) added to the requirements
  • [NEW] importlib-resources (6.1.0) added to the requirements
  • [MAJOR] more-itertools changes from 9.1.0 to 10.1.0
  • [MAJOR] newrelic changes from 8.9.0 to 9.0.0
  • [NEW] nh3 (0.2.14) added to the requirements
  • [MAJOR] pip-tools changes from 6.13.0 to 7.3.0
  • [MAJOR] readme-renderer changes from 40.0 to 42.0
  • [REMOVED] webencodings (0.5.1) removed from the requirements
  • [NEW] zipp (3.17.0) added to the requirements

@farhan farhan force-pushed the jenkins/upgrade-python-requirements-69519f4 branch 2 times, most recently from 1f341fa to c8b05aa Compare September 26, 2023 05:06
@farhan farhan requested review from ormsbee and feanil September 26, 2023 05:16
@edx-requirements-bot
Copy link
Contributor Author

Closing obsolete PR.

@edx-requirements-bot edx-requirements-bot deleted the jenkins/upgrade-python-requirements-69519f4 branch October 2, 2023 00:20
@farhan farhan restored the jenkins/upgrade-python-requirements-69519f4 branch October 2, 2023 04:27
@farhan farhan reopened this Oct 2, 2023
@farhan farhan force-pushed the jenkins/upgrade-python-requirements-69519f4 branch from 2b2ba54 to c04aada Compare October 4, 2023 05:07
@farhan farhan force-pushed the jenkins/upgrade-python-requirements-69519f4 branch 3 times, most recently from 4ba5e8c to 76014b7 Compare October 4, 2023 05:49
@farhan farhan force-pushed the jenkins/upgrade-python-requirements-69519f4 branch from 76014b7 to 8954d07 Compare October 4, 2023 05:52
@farhan farhan merged commit be9033a into main Oct 4, 2023
6 checks passed
@farhan farhan deleted the jenkins/upgrade-python-requirements-69519f4 branch October 4, 2023 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants