pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-factory_boy



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Dec 10 12:31:16 UTC 2020

Modified Files:
        pkgsrc/devel/py-factory_boy: Makefile PLIST distinfo

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
""""""""""""""""

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.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-factory_boy/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-factory_boy/PLIST \
    pkgsrc/devel/py-factory_boy/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-factory_boy/Makefile
diff -u pkgsrc/devel/py-factory_boy/Makefile:1.2 pkgsrc/devel/py-factory_boy/Makefile:1.3
--- pkgsrc/devel/py-factory_boy/Makefile:1.2    Wed May 20 07:04:37 2020
+++ pkgsrc/devel/py-factory_boy/Makefile        Thu Dec 10 12:31:16 2020
@@ -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"

Index: pkgsrc/devel/py-factory_boy/PLIST
diff -u pkgsrc/devel/py-factory_boy/PLIST:1.1 pkgsrc/devel/py-factory_boy/PLIST:1.2
--- pkgsrc/devel/py-factory_boy/PLIST:1.1       Tue May 19 18:36:32 2020
+++ pkgsrc/devel/py-factory_boy/PLIST   Thu Dec 10 12:31:16 2020
@@ -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/base.pyo
 ${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/random.pyo
 ${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
Index: pkgsrc/devel/py-factory_boy/distinfo
diff -u pkgsrc/devel/py-factory_boy/distinfo:1.1 pkgsrc/devel/py-factory_boy/distinfo:1.2
--- pkgsrc/devel/py-factory_boy/distinfo:1.1    Tue May 19 18:36:32 2020
+++ pkgsrc/devel/py-factory_boy/distinfo        Thu Dec 10 12:31:16 2020
@@ -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