From e5a6730e39ae709e80179379fef683b1020d2485776530782244e0a204bc6185 Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Wed, 6 May 2015 23:30:02 +0000
Subject: [PATCH] Accepting request 305341 from
home:benoit_monin:branches:devel:languages:python
- update to version 2.5.2
- add python-mock as BuildRequires for the tests
- add python-setuptools as BuildRequires: needed by setup.py
- build the documentation with the build_sphinx command
- pass -q to the test to avoid spamming the build log
- rename README to README.rst to follow upstream
OBS-URL: https://build.opensuse.org/request/show/305341
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=5
---
factory_boy-1.2.0.tar.gz | 3 -
factory_boy-2.5.2.tar.gz | 3 +
python-factory_boy.changes | 156 +++++++++++++++++++++++++++++++++++++
python-factory_boy.spec | 13 ++--
4 files changed, 166 insertions(+), 9 deletions(-)
delete mode 100644 factory_boy-1.2.0.tar.gz
create mode 100644 factory_boy-2.5.2.tar.gz
diff --git a/factory_boy-1.2.0.tar.gz b/factory_boy-1.2.0.tar.gz
deleted file mode 100644
index b2da2c4..0000000
--- a/factory_boy-1.2.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a5d69a4d7ca8fde1d52cabdce63d11dc2d753d3c533e400694e45f2a952d33b7
-size 32693
diff --git a/factory_boy-2.5.2.tar.gz b/factory_boy-2.5.2.tar.gz
new file mode 100644
index 0000000..14f720e
--- /dev/null
+++ b/factory_boy-2.5.2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd8306e64c3a115deca136685e945db88ffe171382012ec938ed241a20dd7eba
+size 81518
diff --git a/python-factory_boy.changes b/python-factory_boy.changes
index 272dacc..98ba386 100644
--- a/python-factory_boy.changes
+++ b/python-factory_boy.changes
@@ -1,3 +1,159 @@
+-------------------------------------------------------------------
+Mon May 4 16:15:37 UTC 2015 - benoit.monin@gmx.fr
+
+- update to version 2.5.2:
+ * Add support for Django 1.7/1.8
+ * Add support for mongoengine>=0.9.0 / pymongo>=2.1
+- additional changes from version 2.5.1:
+ * Respect custom managers in DjangoModelFactory (see issue #192)
+ * Allow passing declarations (e.g Sequence) as parameters to
+ FileField and ImageField.
+- additional changes from version 2.5.0:
+ * Add support for getting/setting factory.fuzzy‘s random state
+ (see issue #175, issue #185).
+ * Support lazy evaluation of iterables in
+ factory.fuzzy.FuzzyChoice (see issue #184).
+ * Support non-default databases at the factory level (see issue
+ #171)
+ * Make factory.django.FileField and factory.django.ImageField
+ non-post_generation, i.e normal fields also available in save()
+ (see issue #141).
+ * Avoid issues when using factory.django.mute_signals() on a base
+ factory class (see issue #183).
+ * Fix limitations of factory.StubFactory, that can now use
+ factory.SubFactory and co (see issue #131).
+ * Remove deprecated features from 2.4.0 (2014-06-21)
+ * Remove the auto-magical sequence setup (based on the latest
+ primary key value in the database) for Django and SQLAlchemy;
+ this relates to issues issue #170, issue #153, issue #111,
+ issue #103, issue #92, issue #78.
+ * Fix overriding deeply inherited attributes (set in one factory,
+ overridden in a subclass, used in a sub-sub-class).
+- additional changes from version 2.4.0:
+ * Add support for factory.fuzzy.FuzzyInteger.step, thanks to
+ ilya-pirogov (issue #120)
+ * Add mute_signals() decorator to temporarily disable some
+ signals, thanks to ilya-pirogov (issue #122)
+ * Add FuzzyFloat (issue #124)
+ * Declare target model and other non-declaration fields in a
+ class Meta section.
+ * Use of FACTORY_FOR and other FACTORY class-level attributes is
+ deprecated and will be removed in 2.5.
+- additional changes from version 2.3.1:
+ * Fix badly written assert containing state-changing code,
+ spotted by chsigi (issue #126)
+ * Don’t crash when handling objects whose __repr__ is
+ non-pure-ascii bytes on Py2, discovered by mbertheau (issue
+ #123) and strycore (issue #127)
+- additional changes from version 2.3.0:
+ * Add FuzzyText, thanks to jdufresne (issue #97)
+ * Add FuzzyDecimal, thanks to thedrow (issue #94)
+ * Add support for EmbeddedDocument, thanks to imiric (issue #100)
+- additional changes from version 2.2.1:
+ * Fixed sequence counter for DjangoModelFactory when a factory
+ inherits from another factory relating to an abstract model.
+- additional changes from version 2.2.0:
+ * Removed duplicated SQLAlchemyModelFactory lurking in factory
+ (issue #83)
+ * Properly handle sequences within object inheritance chains. If
+ FactoryA inherits from FactoryB, and their associated classes
+ share the same link, sequence counters will be shared (issue
+ #93)
+ * Properly handle nested SubFactory overrides
+ * The DjangoModelFactory now supports the FACTORY_FOR =
+ 'myapp.MyModel' syntax, making it easier to shove all factories
+ in a single module (issue #66).
+ * Add factory.debug() helper for easier backtrace analysis
+ * Adding factory support for mongoengine with MongoEngineFactory.
+- additional changes from version 2.1.2:
+ * The ABSTRACT_FACTORY keyword is now optional, and automatically
+ set to True if neither the Factory subclass nor its parent
+ declare the FACTORY_FOR attribute (issue #74)
+- additional changes from version 2.1.1:
+ * Properly retrieve the color keyword argument passed to
+ ImageField
+- additional changes from version 2.1.0:
+ * Add FuzzyDate thanks to saulshanabrook
+ * Add FuzzyDateTime and FuzzyNaiveDateTime.
+ * Add a factory_parent attribute to the LazyStub passed to
+ LazyAttribute, in order to access fields defined in wrapping
+ factories.
+ * Move DjangoModelFactory and MogoFactory to their own modules
+ (factory.django and factory.mogo)
+ * Add the reset_sequence() classmethod to Factory to ease
+ resetting the sequence counter for a given factory.
+ * Add debug messages to factory logger.
+ * Add a reset() method to Iterator (issue #63)
+ * Add support for the SQLAlchemy ORM through
+ SQLAlchemyModelFactory (issue #64, thanks to Romain Commandé)
+ * Add factory.django.FileField and factory.django.ImageField
+ hooks for related Django model fields (issue #52)
+ * Properly handle non-integer pks in DjangoModelFactory (issue
+ #57).
+ * Disable RelatedFactory generation when a specific value was
+ passed (issue #62, thanks to Gabe Koscky)
+ * Rename RelatedFactory‘s name argument to factory_related_name
+ (See issue #58)
+- additional changes from version 2.0.2:
+ * When FACTORY_DJANGO_GET_OR_CREATE is empty, use
+ Model.objects.create() instead of Model.objects.get_or_create.
+- additional changes from version 2.0.1:
+ * Don’t push defaults to get_or_create when
+ FACTORY_DJANGO_GET_OR_CREATE is not set.
+- additional changes from version 2.0.0:
+ * Allow overriding the base factory class for make_factory() and
+ friends.
+ * Add support for Python3 (Thanks to kmike and nkryptic)
+ * The default type for Sequence is now int
+ * Fields listed in FACTORY_HIDDEN_ARGS won’t be passed to the
+ associated class’ constructor
+ * Add support for get_or_create in DjangoModelFactory, through
+ FACTORY_DJANGO_GET_OR_CREATE.
+ * Add support for fuzzy attribute definitions.
+ * The Sequence counter can be overridden when calling a
+ generating function
+ * Add Dict and List declarations (Closes issue #18).
+ * Remove associated class discovery
+ * Remove InfiniteIterator and infinite_iterator()
+ * Remove CircularSubFactory
+ * Remove extract_prefix kwarg to post-generation hooks.
+ * Stop defaulting to Django’s Foo.objects.create() when
+ “creating” instances
+ * Remove STRATEGY_*
+ * Remove set_building_function() / set_creation_function()
+- additional changes from version 1.3.0:
+ * Rewrite the whole documentation
+ * Provide a dedicated MogoFactory subclass of Factory
+ * Better creation/building customization hooks at
+ factory.Factory._build() and factory.Factory.create()
+ * Add support for passing non-kwarg parameters to a Factory
+ wrapped class through FACTORY_ARG_PARAMETERS.
+ * Keep the FACTORY_FOR attribute in Factory classes
+ * Allow SubFactory to solve circular dependencies between
+ factories
+ * Enhance SelfAttribute to handle “container” attribute fetching
+ * Add a getter to Iterator declarations
+ * A Iterator may be prevented from cycling by setting its cycle
+ argument to False
+ * Allow overriding default arguments in a
+ PostGenerationMethodCall when generating an instance of the
+ factory
+ * An object created by a DjangoModelFactory will be saved again
+ after PostGeneration hooks execution
+ * InfiniteIterator is deprecated in favor of Iterator
+ * CircularSubFactory is deprecated in favor of SubFactory
+ * The extract_prefix argument to post_generation() is now
+ deprecated
+ * Usage of set_creation_function() and set_building_function()
+ are now deprecated
+ * Implicit associated class discovery is no longer supported, you
+ must set the FACTORY_FOR attribute on all Factory subclasses
+- add python-mock as BuildRequires for the tests
+- add python-setuptools as BuildRequires: needed by setup.py
+- build the documentation with the build_sphinx command
+- pass -q to the test to avoid spamming the build log
+- rename README to README.rst to follow upstream
+
-------------------------------------------------------------------
Fri Nov 23 11:06:19 UTC 2012 - saschpe@suse.de
diff --git a/python-factory_boy.spec b/python-factory_boy.spec
index 2070f5d..143d68b 100644
--- a/python-factory_boy.spec
+++ b/python-factory_boy.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-factory_boy
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-factory_boy
-Version: 1.2.0
+Version: 2.5.2
Release: 0
Summary: A test fixtures replacement
License: MIT
@@ -26,6 +26,8 @@ Url: http://github.com/rbarrois/factory_boy
Source: http://pypi.python.org/packages/source/f/factory_boy/factory_boy-%{version}.tar.gz
BuildRequires: python-Sphinx
BuildRequires: python-devel
+BuildRequires: python-mock
+BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@@ -41,18 +43,17 @@ A test fixtures replacement based on thoughtbot's factory_girl for Ruby.
%build
python setup.py build
-#python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
-cd docs && make html
+python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
-python setup.py test
+python setup.py -q test
%files
%defattr(-,root,root,-)
-%doc README docs/_build/html
+%doc README.rst build/sphinx/html
%{python_sitelib}/*
%changelog