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

Update django-recaptcha requirement from <4.0.0,>=3.0.0 to >=3.0.0,<5.0.0 #2166

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 14, 2024

Updates the requirements on django-recaptcha to permit the latest version.

Release notes

Sourced from django-recaptcha's releases.

4.0.0 - package namespace rename

Package namespace renamed!

The package namespace captcha has been renamed to django_recaptcha to avoid conflicts with other captcha packages.

Please see the full CHANGELOG for all changes and upgrade considerations

What's Changed

New Contributors

Full Changelog: django-recaptcha/django-recaptcha@3.0.0...4.0.0

Changelog

Sourced from django-recaptcha's changelog.

4.0.0 (2023-11-14)

[!IMPORTANT] > BREAKING: package namespace renamed from captcha to django_recaptcha. See upgrade considerations section below for instructions (#317)

  • Removed: support for Django 4.0 and 2.2
  • Removed: support for Python 3.7
  • Added: support for Django 4.1 and 4.2
  • Added: support for Python 3.11
  • Added: support for the action parameter in the ReCaptchaV3 widget (#304, #309 and #310)
  • Added: Arabic translations (#313)
  • Added: Indonesian translations (#301)
  • Added: Ukrainian translations (#315)
  • Fixed: don't display a form field label when using the ReCaptchaV3 widget as it is invisible (#294)
  • Fixed: execute ReCaptcha V3 validation on form submit instead of on page load to avoid captcha errors if the form takes more than 2 minutes to complete (#296)
  • Fixed: avoid outputting duplicate class attribute in widget html when a custom class attribute is passed to the widget (#275)
  • Docs: update testing instructions (#300)
  • Docs: add example unittest for RECAPTCHA_TESTING (#289)

Upgrade considerations from v3 to v4

Package namespace renamed

The package namespace has been renamed from captcha to django_recaptcha to avoid namespace conflicts with other captcha packages. This means that you will need to update your imports and INSTALLED_APPS setting.

Action required: update your imports like this:

# Old
-from captcha.fields import ReCaptchaField
-from captcha.widgets import ReCaptchaV2Checkbox, ReCaptchaV2Invisible, ReCaptchaV3
# New
+from django_recaptcha.fields import ReCaptchaField
+from django_recaptcha.widgets import ReCaptchaV2Checkbox, ReCaptchaV2Invisible, ReCaptchaV3

Action required: update your Django settings like this:

INSTALLED_APPS = [
    # ...
    # Old
-    "captcha",
    # New
+    "django_recaptcha",
    # ...
]

ReCaptchaV3 widget no longer supplies a default action to the ReCaptcha API

... (truncated)

Commits
  • 7d48eec Add missing workflow_call CI trigger
  • 2cec24c Update publish workflow to use Trusted Publishing
  • 3a54c75 Fill in release date for v4.0.0
  • e0cccd1 Fix some really stupid typos
  • 57de001 Add Storm Heg to maintainers
  • a3f47f5 Add v4 upgrade considerations to changelog
  • 081c832 Add changelog entries for v4.0.0
  • 8389f36 Update setup.py author
  • 8048460 BREAKING: remove action=form default from ReCaptcha V3 widget
  • f5ff004 Update setup.py long description
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Updates the requirements on [django-recaptcha](https://github.com/torchbox/django-recaptcha) to permit the latest version.
- [Release notes](https://github.com/torchbox/django-recaptcha/releases)
- [Changelog](https://github.com/django-recaptcha/django-recaptcha/blob/main/CHANGELOG.md)
- [Commits](django-recaptcha/django-recaptcha@3.0.0...4.0.0)

---
updated-dependencies:
- dependency-name: django-recaptcha
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 14, 2024
@longhotsummer
Copy link
Contributor

@Sandravaphilips pls can you check what we need to do to upgrade this to version 4, based on what we did in peachjam to integrate django-recaptcha, and the upgrade notes for version 4.

Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 30, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/pip/django-recaptcha-gte-3.0.0-and-lt-5.0.0 branch September 30, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants