./devel/py-factory_boy, Versatile test fixtures replacement

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.3.1, Package name: py312-factory_boy-3.3.1, Maintainer: pkgsrc-users

Versatile test fixtures replacement based
on thoughtbot's factory_bot for Ruby


Required to run:
[devel/py-setuptools] [devel/py-faker] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 160.082 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-08-20 10:07:41 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-factory_boy: updated to 3.3.1

3.3.1 (2024-08-18)

*New:*

- Add support for Django 4.2
- Add support for Django 5.1
- Add support for Python 3.12
- :issue:`903`: Add basic typing annotations
- Run the test suite against ``mongomock`` instead of an actual MongoDB server

*Bugfix:*

- :issue:`1031`: Do not require \ 
:attr:`~factory.alchemy.SQLAlchemyOptions.sqlalchemy_session` when
  :attr:`~factory.alchemy.SQLAlchemyOptions.sqlalchemy_session_factory` is provided.

*Removed:*

- Stop advertising and verifying support for Django 3.2, 4.0, 4.1
   2023-08-28 11:39:51 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-factory_boy: updated to 3.3.0

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
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-11-16 20:45:48 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-factory_boy: updated to 3.2.1

3.2.1

*New:*
- Add support for Django 3.2

*Bugfix:*

- Do not override signals receivers registered in a \ 
:meth:`~factory.django.mute_signals` context.
- 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``.
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-02-05 21:36:39 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-factory_boy: updated to 3.2.0

3.2.0:

*New:*

    - Add support for Django 3.1
    - Add support for Python 3.9

*Removed:*

    - Drop support for Django 1.11. This version `is not maintained anymore \ 
<https://www.djangoproject.com/download/#supported-versions>`__.
    - Drop support for Python 3.5. This version `is not maintained anymore \ 
<https://devguide.python.org/devcycle/#end-of-life-branches>`__.

*Deprecated:*

    - :func:`factory.use_strategy`. Use :attr:`factory.FactoryOptions.strategy` \ 
instead.
      The purpose of :func:`~factory.use_strategy` duplicates the factory \ 
option. Follow :pep:`20`: *There should be
      one-- and preferably only one --obvious way to do it.*

      :func:`~factory.use_strategy()` will be removed in the next major version.

*Bug fix:*

    - :issue:`785` :issue:`786` :issue:`787` :issue:`788` :issue:`790` \ 
:issue:`796`: Calls to :class:`factory.Faker`
      and :class:`factory.django.FileField` within a :class:`~factory.Trait` or \ 
:class:`~factory.Maybe` no longer lead to
      a ``KeyError`` crash.