pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-factory_boy py-factory_boy: updated to 3.1.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/a2a1cc6012d3
branches: trunk
changeset: 443310:a2a1cc6012d3
user: adam <adam%pkgsrc.org@localhost>
date: Thu Dec 10 12:31:16 2020 +0000
description:
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
""""""""""""""""
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.
diffstat:
devel/py-factory_boy/Makefile | 10 ++++++----
devel/py-factory_boy/PLIST | 17 +++++++----------
devel/py-factory_boy/distinfo | 10 +++++-----
3 files changed, 18 insertions(+), 19 deletions(-)
diffs (77 lines):
diff -r a92b21b0f707 -r a2a1cc6012d3 devel/py-factory_boy/Makefile
--- a/devel/py-factory_boy/Makefile Thu Dec 10 12:30:15 2020 +0000
+++ b/devel/py-factory_boy/Makefile Thu Dec 10 12:31:16 2020 +0000
@@ -1,17 +1,19 @@
-# $NetBSD: Makefile,v 1.2 2020/05/20 07:04:37 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2020/12/10 12:31:16 adam Exp $
-DISTNAME= factory_boy-2.12.0
+DISTNAME= factory_boy-3.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES= devel
+CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=f/factory_boy/}
-MAINTAINER= kethzer.dr%gmail.com@localhost
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://github.com/FactoryBoy/factory_boy
COMMENT= Versatile test fixtures replacement
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-faker>=0.7.0:../../devel/py-faker
+USE_LANGUAGES= # none
+
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-faker
.include "../../lang/python/egg.mk"
diff -r a92b21b0f707 -r a2a1cc6012d3 devel/py-factory_boy/PLIST
--- a/devel/py-factory_boy/PLIST Thu Dec 10 12:30:15 2020 +0000
+++ b/devel/py-factory_boy/PLIST Thu Dec 10 12:31:16 2020 +0000
@@ -1,4 +1,10 @@
-@comment $NetBSD: PLIST,v 1.1 2020/05/19 18:36:32 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/12/10 12:31:16 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/factory/__init__.py
${PYSITELIB}/factory/__init__.pyc
${PYSITELIB}/factory/__init__.pyo
@@ -11,9 +17,6 @@
${PYSITELIB}/factory/builder.py
${PYSITELIB}/factory/builder.pyc
${PYSITELIB}/factory/builder.pyo
-${PYSITELIB}/factory/compat.py
-${PYSITELIB}/factory/compat.pyc
-${PYSITELIB}/factory/compat.pyo
${PYSITELIB}/factory/declarations.py
${PYSITELIB}/factory/declarations.pyc
${PYSITELIB}/factory/declarations.pyo
@@ -47,9 +50,3 @@
${PYSITELIB}/factory/utils.py
${PYSITELIB}/factory/utils.pyc
${PYSITELIB}/factory/utils.pyo
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
diff -r a92b21b0f707 -r a2a1cc6012d3 devel/py-factory_boy/distinfo
--- a/devel/py-factory_boy/distinfo Thu Dec 10 12:30:15 2020 +0000
+++ b/devel/py-factory_boy/distinfo Thu Dec 10 12:31:16 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/05/19 18:36:32 wiz Exp $
+$NetBSD: distinfo,v 1.2 2020/12/10 12:31:16 adam Exp $
-SHA1 (factory_boy-2.12.0.tar.gz) = 29b59501719a2ef52025129bacfb66f86a796405
-RMD160 (factory_boy-2.12.0.tar.gz) = 7d4f1e2b18abade51262651b2db6c60adfc1e83e
-SHA512 (factory_boy-2.12.0.tar.gz) = f87963fb650df9b6e2e5bd7bea5fdc6c35d352839edfea7ff79f3ff236e85098879a506d132d63a47c3290d5beee925ab19943eb4ecdb522f33f8ffff69dc742
-Size (factory_boy-2.12.0.tar.gz) = 153557 bytes
+SHA1 (factory_boy-3.1.0.tar.gz) = 698f7afb6d5eaec2acdf6c5dda11c0ee6c479568
+RMD160 (factory_boy-3.1.0.tar.gz) = a6127aaf99ebb814699981f529b2b472d04b13da
+SHA512 (factory_boy-3.1.0.tar.gz) = eaeb620a6f427912908dd8bbf977956b9722685b475e099323cd614a0d08042f82695be09bfb86d31e213327f512307543d096344d58e59ad2f1ae01e6edbe64
+Size (factory_boy-3.1.0.tar.gz) = 156554 bytes
Home |
Main Index |
Thread Index |
Old Index