Skip to content

Atualiza wagtail para versão 7#106

Merged
pitangainnovare merged 5 commits intoscieloorg:mainfrom
pitangainnovare:update-wagtail-para-versão-7
Mar 9, 2026

Hidden character warning

The head ref may contain hidden characters: "update-wagtail-para-vers\u00e3o-7"
Merged

Atualiza wagtail para versão 7#106
pitangainnovare merged 5 commits intoscieloorg:mainfrom
pitangainnovare:update-wagtail-para-versão-7

Conversation

@pitangainnovare
Copy link
Contributor

This pull request updates several dependencies to newer versions and replaces the captcha package with django_recaptcha in the base settings. These changes will improve compatibility, security, and maintainability across the project.

Dependency upgrades:

  • Upgraded core Django dependency from django==5.0.7 to django==5.2.12, and updated related packages including django-compressor, django-celery-beat, django_celery_results, and django-stubs for improved security and compatibility. [1] [2] [3]
  • Updated Wagtail and related packages (wagtail, wagtailmenus, wagtail-localize, wagtail-modeladmin, wagtail-autocomplete) to their latest versions, ensuring continued support and access to new features.

Recaptcha integration changes:

  • Replaced the captcha package with django_recaptcha in config/settings/base.py for improved Recaptcha support.
  • Upgraded django-recaptcha and wagtail-django-recaptcha to newer versions for better compatibility and functionality.

Other dependency updates:

  • Upgraded rcssmin from 1.1.1 to 1.2.2 for improved CSS minification.

Version bump:

  • Updated project version from 1.13.1 to 1.14.0 in the VERSION file to reflect these changes.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the project from Wagtail 6.3.2 to Wagtail 7.3.1 and Django 5.0.7 to Django 5.2.12 (LTS), along with updating several related dependencies for compatibility. It also migrates the recaptcha integration from the old captcha app label to django_recaptcha, reflecting the breaking change in django-recaptcha 4.x.

Changes:

  • Upgraded Django from 5.0.7 to 5.2.12 and Wagtail from 6.3.2 to 7.3.1, along with their ecosystem packages (django-compressor, django-celery-beat, django_celery_results, wagtailmenus, wagtail-localize, wagtail-modeladmin, wagtail-autocomplete, django-stubs).
  • Replaced the captcha app label with django_recaptcha in INSTALLED_APPS to match the renamed app in django-recaptcha 4.1.0, and updated wagtail-django-recaptcha to 2.1.1.
  • Bumped project version from 1.13.1 to 1.14.0.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
requirements/base.txt Upgraded Django, Wagtail, and related package versions
requirements/local.txt Upgraded django-stubs to 5.2.9 for Django 5.2 compatibility
config/settings/base.py Changed captcha to django_recaptcha in INSTALLED_APPS
VERSION Bumped project version from 1.13.1 to 1.14.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# ------------------------------------------------------------------------------
mypy==1.6.1 # https://github.com/python/mypy
django-stubs==4.2.6 # https://github.com/typeddjango/django-stubs
django-stubs==5.2.9 # https://github.com/typeddjango/django-stubs
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading django-stubs from 4.2.6 to 5.2.9 likely requires a corresponding upgrade of mypy (line 10). The django-stubs 5.x series typically requires mypy >= 1.10.0, but mypy is still pinned at 1.6.1 on the line above. This version mismatch will likely cause installation or runtime errors when running type checks. Please also update mypy to a compatible version (e.g., mypy>=1.10.0).

Copilot uses AI. Check for mistakes.
@pitangainnovare pitangainnovare merged commit 57b69f4 into scieloorg:main Mar 9, 2026
2 checks passed
@pitangainnovare pitangainnovare deleted the update-wagtail-para-versão-7 branch March 9, 2026 13:05
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.

2 participants