diff --git a/2.12.0.tar.gz b/2.12.0.tar.gz deleted file mode 100644 index aaf74f9..0000000 --- a/2.12.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:717c7f865f0228196f8170b09004c05e9576f78211986397abbabff565106c3f -size 142758 diff --git a/factory_boy-3.1.0.tar.gz b/factory_boy-3.1.0.tar.gz new file mode 100644 index 0000000..ef86234 --- /dev/null +++ b/factory_boy-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ded73e49135c24bd4d3f45bf1eb168f8d290090f5cf4566b8df3698317dc9c08 +size 156554 diff --git a/python-factory_boy.changes b/python-factory_boy.changes index f43ce8e..0c37e88 100644 --- a/python-factory_boy.changes +++ b/python-factory_boy.changes @@ -1,3 +1,55 @@ +------------------------------------------------------------------- +Mon Oct 5 06:11:53 UTC 2020 - John Vandenberg + +- Use PyPI tarball and revise test runner to python -m unittest +- Update to v3.1.0 + * Allow all types of declarations in :class:`factory.Faker` calls + enables references to other faker-defined attributes. +- from v3.0.1 + * Fix `import factory; factory.django.DjangoModelFactory` and + similar calls. +- from v3.0.0 + * Removed alias + + `from factory import DjangoModelFactory` to + `from factory.django import DjangoModelFactory` + + `from factory import MogoFactory` to + `from factory.mogo import MogoFactory` + + `from factory.fuzzy import get_random_state` to + `from factory.random import get_random_state` + + `from factory.fuzzy import set_random_state` to + `from factory.random import set_random_state` + + `from factory.fuzzy import reseed_random` to + `from factory.random import reseed_random` + * Drop support for Python 2 and 3.4 + * Drop support for Django 2.0 and 2.1 + * Remove deprecated `force_flush` from `SQLAlchemyModelFactory` + Use `sqlalchemy_session_persistence = "flush"` instead + * Drop deprecated `attributes()` from `factory.Factory`; use + `make_factory(dict, FactoryClass._meta.pre_declarations)` + * Drop deprecated `declarations()` from `factory.Factory`; use + `FactoryClass._meta.pre_declarations` instead + * Drop `factory.compat` module + * Add support for Python 3.8 + * Add support for Django 2.2 and 3.0 + * Report misconfiguration when `Factory` is used + as the `Factory.model` for another `Factory` + * Allow configuring the color palette of `factory.django.ImageField` + * `get_random_state()` now represents the state of Faker and + `factory_boy` fuzzy attributes + * Add SQLAlchemy ``get_or_create`` support + * Display a developer-friendly error message when providing a model + instead of a factory in a `factory.declarations.SubFactory` class + * Fix issue with SubFactory not preserving signal muting behaviour + of the used factory + * Fix issue with overriding params in a Trait + * Limit ``get_or_create`` behavior to fields specified in + `django_get_or_create` + * Re-raise `~django.db.IntegrityError` when `django_get_or_create` + with multiple fields fails to lookup model using user provided + keyword arguments + * TypeError masked by __repr__ AttributeError when initializing + `Maybe` with inconsistent phases + ------------------------------------------------------------------- Mon Mar 16 10:31:31 UTC 2020 - Tomáš Chvátal diff --git a/python-factory_boy.spec b/python-factory_boy.spec index e3ac3d8..c204b75 100644 --- a/python-factory_boy.spec +++ b/python-factory_boy.spec @@ -19,16 +19,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-factory_boy -Version: 2.12.0 +Version: 3.1.0 Release: 0 -Summary: A test fixtures replacement +Summary: Python test fixtures License: MIT URL: https://github.com/rbarrois/factory_boy -Source: https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/f/factory_boy/factory_boy-%{version}.tar.gz BuildRequires: %{python_module Django} BuildRequires: %{python_module Faker >= 0.7.0} BuildRequires: %{python_module Pillow} -BuildRequires: %{python_module flake8} BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools >= 0.8} BuildRequires: %{pythons} @@ -61,7 +60,7 @@ sed -i -e '/test_alchemy/d' tests/__init__.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%python_exec -m unittest %files %{python_files} %license LICENSE