[PR #107] [MERGED] Update factory-boy requirement from <3.3 to <3.4 #106

Closed
opened 2026-02-27 11:09:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/modoboa/modoboa-postfix-autoreply/pull/107
Author: @dependabot[bot]
Created: 7/20/2023
Status: Merged
Merged: 7/21/2023
Merged by: @tonioo

Base: masterHead: dependabot/pip/factory-boy-lt-3.4


📝 Commits (1)

  • f66c815 Update factory-boy requirement from <3.3 to <3.4

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 test-requirements.txt (+1 -1)

📄 Description

Updates the requirements on factory-boy to permit the latest version.

Changelog

Sourced from factory-boy's changelog.

3.3.0 (2023-07-19)

New:

- :issue:`366`: Add :class:`factory.django.Password` to generate Django :class:`~django.contrib.auth.models.User`
  passwords.
- :issue:`304`: Add :attr:`~factory.alchemy.SQLAlchemyOptions.sqlalchemy_session_factory` to dynamically
  create sessions for use by the :class:`~factory.alchemy.SQLAlchemyModelFactory`.
- Add support for Django 4.0
- Add support for Django 4.1
- Add support for Python 3.10
- Add support for Python 3.11

Bugfix:

- Make :meth:`~factory.django.mute_signals` mute signals during post-generation.
  • :issue:775: Change the signature for :meth:~factory.alchemy.SQLAlchemyModelFactory._save and :meth:~factory.alchemy.SQLAlchemyModelFactory._get_or_create to avoid argument names clashes with a field named session.

Deprecated:

- :class:`~factory.django.DjangoModelFactory` will stop issuing a second call to
  :meth:`~django.db.models.Model.save` on the created instance when :ref:`post-generation-hooks` return a value.

To help with the transition, :class:factory.django.DjangoModelFactory._after_postgeneration raises a :class:DeprecationWarning when calling :meth:~django.db.models.Model.save. Inspect your :class:~factory.django.DjangoModelFactory subclasses:

  • If the :meth:~django.db.models.Model.save call is not needed after :class:~factory.PostGeneration, set :attr:factory.django.DjangoOptions.skip_postgeneration_save to True in the factory meta.

  • Otherwise, the instance has been modified by :class:~factory.PostGeneration hooks and needs to be :meth:~django.db.models.Model.save\ d. Either:

    • call :meth:django.db.models.Model.save in the :class:~factory.PostGeneration hook that modifies the instance, or
    • override :class:~factory.django.DjangoModelFactory._after_postgeneration to :meth:~django.db.models.Model.save the instance.

Removed:

- Drop support for Django 2.2
- Drop support for Django 3.0
- Drop support for Django 3.1
- Drop support for Python 3.6

3.2.1 (2021-10-26)

... (truncated)

Commits
  • 38ecbae Preparing release 3.3.0
  • f52d6cd Introduce Transformer.Force
  • 5433048 Handle declarations in Transformers
  • d498bcd Factor "unwrapped evaluation" of declarations.
  • 53b34d5 Remove zip_safe flag from setup.cfg
  • 2b0efa7 Upgrade intersphinx mapping for Sphinx 8
  • 3c59001 Merge tag '3.2.1' into master
  • f12bf9b Skip post-generation save in test_class_decorator_related_model_with_post_hook
  • de8d51e Add changelog entry for #1004
  • 834afc1 Reuse existing models
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/modoboa/modoboa-postfix-autoreply/pull/107 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 7/20/2023 **Status:** ✅ Merged **Merged:** 7/21/2023 **Merged by:** [@tonioo](https://github.com/tonioo) **Base:** `master` ← **Head:** `dependabot/pip/factory-boy-lt-3.4` --- ### 📝 Commits (1) - [`f66c815`](https://github.com/modoboa/modoboa-postfix-autoreply/commit/f66c815017efdaa875cb777efe469493ad5a87f3) Update factory-boy requirement from <3.3 to <3.4 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `test-requirements.txt` (+1 -1) </details> ### 📄 Description Updates the requirements on [factory-boy](https://github.com/FactoryBoy/factory_boy) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/FactoryBoy/factory_boy/blob/master/docs/changelog.rst">factory-boy's changelog</a>.</em></p> <blockquote> <h2>3.3.0 (2023-07-19)</h2> <p><em>New:</em></p> <pre><code>- :issue:`366`: Add :class:`factory.django.Password` to generate Django :class:`~django.contrib.auth.models.User` passwords. - :issue:`304`: Add :attr:`~factory.alchemy.SQLAlchemyOptions.sqlalchemy_session_factory` to dynamically create sessions for use by the :class:`~factory.alchemy.SQLAlchemyModelFactory`. - Add support for Django 4.0 - Add support for Django 4.1 - Add support for Python 3.10 - Add support for Python 3.11 </code></pre> <p><em>Bugfix:</em></p> <pre><code>- Make :meth:`~factory.django.mute_signals` mute signals during post-generation. <ul> <li>:issue:<code>775</code>: Change the signature for :meth:<code>~factory.alchemy.SQLAlchemyModelFactory._save</code> and :meth:<code>~factory.alchemy.SQLAlchemyModelFactory._get_or_create</code> to avoid argument names clashes with a field named <code>session</code>. </code></pre></li> </ul> <p><em>Deprecated:</em></p> <pre><code>- :class:`~factory.django.DjangoModelFactory` will stop issuing a second call to :meth:`~django.db.models.Model.save` on the created instance when :ref:`post-generation-hooks` return a value. <p>To help with the transition, :class:<code>factory.django.DjangoModelFactory._after_postgeneration</code> raises a :class:<code>DeprecationWarning</code> when calling :meth:<code>~django.db.models.Model.save</code>. Inspect your :class:<code>~factory.django.DjangoModelFactory</code> subclasses:</p> <ul> <li> <p>If the :meth:<code>~django.db.models.Model.save</code> call is not needed after :class:<code>~factory.PostGeneration</code>, set :attr:<code>factory.django.DjangoOptions.skip_postgeneration_save</code> to <code>True</code> in the factory meta.</p> </li> <li> <p>Otherwise, the instance has been modified by :class:<code>~factory.PostGeneration</code> hooks and needs to be :meth:<code>~django.db.models.Model.save</code>\ d. Either:</p> <ul> <li>call :meth:<code>django.db.models.Model.save</code> in the :class:<code>~factory.PostGeneration</code> hook that modifies the instance, or</li> <li>override :class:<code>~factory.django.DjangoModelFactory._after_postgeneration</code> to :meth:<code>~django.db.models.Model.save</code> the instance. </code></pre></li> </ul> </li> </ul> <p><em>Removed:</em></p> <pre><code>- Drop support for Django 2.2 - Drop support for Django 3.0 - Drop support for Django 3.1 - Drop support for Python 3.6 </code></pre> <p>3.2.1 (2021-10-26)</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/38ecbaebf51d712d4836337f7c9ef949d64e33e6"><code>38ecbae</code></a> Preparing release 3.3.0</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/f52d6cdbe222f5f01d51be6ced1ccbd07c37e197"><code>f52d6cd</code></a> Introduce Transformer.Force</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/543304878949ececed808dd6fbfcd0549c349644"><code>5433048</code></a> Handle declarations in Transformers</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/d498bcd1773010ffdedc840b84902b0e091e7130"><code>d498bcd</code></a> Factor &quot;unwrapped evaluation&quot; of declarations.</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/53b34d504fad05dd1887a7eb0056ce9516fd4646"><code>53b34d5</code></a> Remove zip_safe flag from setup.cfg</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/2b0efa7fe0d1614cbd5c86062281a905efc3484d"><code>2b0efa7</code></a> Upgrade intersphinx mapping for Sphinx 8</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/3c59001b0bc36387e7a2d56ee2fb2a9018154ade"><code>3c59001</code></a> Merge tag '3.2.1' into master</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/f12bf9b405fea79bbbb46899a0f361a51e9cc079"><code>f12bf9b</code></a> Skip post-generation save in test_class_decorator_related_model_with_post_hook</li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/de8d51ee66b8adf9b17252717e2db92faa43dddd"><code>de8d51e</code></a> Add changelog entry for <a href="https://redirect.github.com/FactoryBoy/factory_boy/issues/1004">#1004</a></li> <li><a href="https://github.com/FactoryBoy/factory_boy/commit/834afc1f909cc2e29a70aacb6716c41bdb02ee97"><code>834afc1</code></a> Reuse existing models</li> <li>Additional commits viewable in <a href="https://github.com/FactoryBoy/factory_boy/compare/v1.0.4...3.3.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 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) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem closed this issue 2026-02-27 11:09:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-postfix-autoreply-modoboa#106
No description provided.