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

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


Branch: CURRENT, Version: 3.2.1nb1, Package name: py39-factory_boy-3.2.1nb1, 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: 149.886 KB

Version history: (Expand)


CVS history: (Expand)


   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.
   2020-12-10 13:31:16 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-factory_boy: updated to 3.1.0

3.1.0 (2020-10-02)
------------------

*New:*

    - Allow all types of declarations in :class:`factory.Faker` calls - enables \ 
references to other faker-defined attributes.

3.0.1 (2020-08-13)
------------------

*Bugfix:*

    - :issue:`769`: Fix ``import factory; factory.django.DjangoModelFactory`` \ 
and similar calls.

3.0.0 (2020-08-12)
------------------

Breaking changes
"""""""""""""&q \ 
uot;""

The following aliases were removed:

+------------------------------------------------+------------------------------ \ 
---------------------+
| Broken alias                                   | New import                    \ 
                    |
+================================================+============================== \ 
=====================+
| ``from factory import DjangoModelFactory``     | ``from factory.django import \ 
DjangoModelFactory`` |
+------------------------------------------------+------------------------------ \ 
---------------------+
| ``from factory import MogoFactory``            | ``from factory.mogo import \ 
MogoFactory``          |
+------------------------------------------------+------------------------------ \ 
---------------------+
| ``from factory.fuzzy import get_random_state`` | ``from factory.random import \ 
get_random_state``   |
+------------------------------------------------+------------------------------ \ 
---------------------+
| ``from factory.fuzzy import set_random_state`` | ``from factory.random import \ 
set_random_state``   |
+------------------------------------------------+------------------------------ \ 
---------------------+
| ``from factory.fuzzy import reseed_random``    | ``from factory.random import \ 
reseed_random``      |
+------------------------------------------------+------------------------------ \ 
---------------------+

*Removed:*

    - Drop support for Python 2 and 3.4. These versions `are not maintained \ 
anymore <https://devguide.python.org/devcycle/#end-of-life-branches>`__.
    - Drop support for Django 2.0 and 2.1. These versions `are not maintained \ 
anymore <https://www.djangoproject.com/download/#supported-versions>`__.
    - Remove deprecated ``force_flush`` from ``SQLAlchemyModelFactory`` options. Use
      ``sqlalchemy_session_persistence = "flush"`` instead.
    - Drop deprecated ``attributes()`` from :class:`~factory.Factory` subclasses; use
      ``factory.make_factory(dict, FactoryClass._meta.pre_declarations)`` instead.
    - Drop deprecated ``declarations()`` from :class:`~factory.Factory` \ 
subclasses; use ``FactoryClass._meta.pre_declarations`` instead.
    - Drop ``factory.compat`` module.

*New:*

    - Add support for Python 3.8
    - Add support for Django 2.2 and 3.0
    - Report misconfiguration when a :py:class:`~factory.Factory` is used as the \ 
:py:attr:`~factory.Factory.model` for another :py:class:`~factory.Factory`.
    - Allow configuring the color palette of :py:class:`~factory.django.ImageField`.
    - :py:meth:`get_random_state()` now represents the state of Faker and \ 
``factory_boy`` fuzzy attributes.
    - Add SQLAlchemy ``get_or_create`` support

*Improvements:*

    - :issue:`561`: Display a developer-friendly error message when providing a \ 
model instead of a factory in a :class:`~factory.declarations.SubFactory` class.

*Bugfix:*

    - Fix issue with SubFactory not preserving signal muting behaviour of the \ 
used factory, thanks `Patrick Stein <https://github.com/PFStein>`_.
    - Fix issue with overriding params in a Trait, thanks `Grégoire Rocher \ 
<https://github.com/cecedille1>`_.
    - :issue:`598`: Limit ``get_or_create`` behavior to fields specified in \ 
``django_get_or_create``.
    - :issue:`606`: Re-raise :class:`~django.db.IntegrityError` when \ 
``django_get_or_create`` with multiple fields fails to lookup model using user \ 
provided keyword arguments.
    - :issue:`630`: TypeError masked by __repr__ AttributeError when \ 
initializing ``Maybe`` with inconsistent phases.
   2020-05-22 03:14:04 by Joerg Sonnenberger | Files touched by this commit (1)
Log message:
Remove garbage
   2020-05-20 09:04:37 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-factory_boy: mark as for python 3.x only due to py-faker