Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-factory_boy for openSUSE:Factory checked in at 2021-12-30 15:55:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-factory_boy (Old) and /work/SRC/openSUSE:Factory/.python-factory_boy.new.1896 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-factory_boy" Thu Dec 30 15:55:20 2021 rev:16 rq:942993 version:3.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-factory_boy/python-factory_boy.changes 2021-05-16 23:44:20.697085742 +0200 +++ /work/SRC/openSUSE:Factory/.python-factory_boy.new.1896/python-factory_boy.changes 2021-12-30 15:55:27.756656489 +0100 @@ -1,0 +2,10 @@ +Tue Dec 28 22:54:39 UTC 2021 - Matej Cepl <mc...@suse.com> + +- Add missing BR typing_extensions + +------------------------------------------------------------------- +Mon Dec 27 18:24:13 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Add tests-skip-django-py36.patch -- no Django 4 for python36 + +------------------------------------------------------------------- New: ---- tests-skip-django-py36.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-factory_boy.spec ++++++ --- /var/tmp/diff_new_pack.Jkjp3C/_old 2021-12-30 15:55:28.348656945 +0100 +++ /var/tmp/diff_new_pack.Jkjp3C/_new 2021-12-30 15:55:28.352656948 +0100 @@ -25,13 +25,15 @@ License: MIT URL: https://github.com/rbarrois/factory_boy Source: https://files.pythonhosted.org/packages/source/f/factory_boy/factory_boy-%{version}.tar.gz -BuildRequires: %{python_module Django} +# PATCH-FEATURE-OPENSUSE tests-skip-django-py36.patch -- don't test django on python36: no python36-Django 4, c...@bnavigator.de +Patch0: tests-skip-django-py36.patch BuildRequires: %{python_module Faker >= 0.7.0} BuildRequires: %{python_module Pillow} BuildRequires: %{python_module setuptools >= 0.8} -BuildRequires: %{pythons} +BuildRequires: %{python_module typing_extensions} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: %{python_module Django if (%python-base without python36-base)} Requires: python-Faker >= 0.7.0 BuildArch: noarch %python_subpackages @@ -40,7 +42,7 @@ A test fixtures replacement based on thoughtbot's factory_girl for Ruby. %prep -%setup -q -n factory_boy-%{version} +%autosetup -p1 -n factory_boy-%{version} # needs running mongo rm tests/test_mongoengine.py sed -i -e '/test_mongoengine/d' tests/__init__.py ++++++ tests-skip-django-py36.patch ++++++ Index: factory_boy-3.2.0/tests/test_django.py =================================================================== --- factory_boy-3.2.0.orig/tests/test_django.py +++ factory_boy-3.2.0/tests/test_django.py @@ -7,11 +7,14 @@ import os import unittest from unittest import mock -import django -from django import test as django_test -from django.conf import settings -from django.db.models import signals -from django.test import utils as django_test_utils +try: + import django + from django import test as django_test + from django.conf import settings + from django.db.models import signals + from django.test import utils as django_test_utils +except ImportError: + raise unittest.SkipTest("No Django installed") import factory.django Index: factory_boy-3.2.0/tests/test_using.py =================================================================== --- factory_boy-3.2.0.orig/tests/test_using.py +++ factory_boy-3.2.0/tests/test_using.py @@ -11,6 +11,7 @@ import unittest import factory from factory import errors +nodjango = not hasattr(factory, 'django') from . import utils @@ -141,6 +142,7 @@ class SimpleBuildTestCase(unittest.TestC self.assertEqual(obj.id, None) self.assertEqual(obj.foo, 'bar') + @unittest.skipIf(nodjango, "No Django installed") def test_create_custom_base(self): obj = factory.create(FakeModel, foo='bar', FACTORY_CLASS=factory.django.DjangoModelFactory) self.assertEqual(obj.id, 2) @@ -156,6 +158,7 @@ class SimpleBuildTestCase(unittest.TestC self.assertEqual(obj.id, None) self.assertEqual(obj.foo, 'bar') + @unittest.skipIf(nodjango, "No Django installed") def test_create_batch_custom_base(self): objs = factory.create_batch( FakeModel, @@ -196,6 +199,7 @@ class SimpleBuildTestCase(unittest.TestC self.assertEqual(obj.id, None) self.assertEqual(obj.foo, 'bar') + @unittest.skipIf(nodjango, "No Django installed") def test_generate_create_custom_base(self): obj = factory.generate( FakeModel, @@ -231,6 +235,7 @@ class SimpleBuildTestCase(unittest.TestC self.assertEqual(obj.id, None) self.assertEqual(obj.foo, 'bar') + @unittest.skipIf(nodjango, "No Django installed") def test_generate_batch_create_custom_base(self): objs = factory.generate_batch( FakeModel, @@ -267,6 +272,7 @@ class SimpleBuildTestCase(unittest.TestC self.assertEqual(obj.id, None) self.assertEqual(obj.foo, 'bar') + @unittest.skipIf(nodjango, "No Django installed") def test_simple_generate_create_custom_base(self): obj = factory.simple_generate(FakeModel, True, foo='bar', FACTORY_CLASS=factory.django.DjangoModelFactory) self.assertEqual(obj.id, 2) @@ -292,6 +298,7 @@ class SimpleBuildTestCase(unittest.TestC self.assertEqual(obj.id, None) self.assertEqual(obj.foo, 'bar') + @unittest.skipIf(nodjango, "No Django installed") def test_simple_generate_batch_create_custom_base(self): objs = factory.simple_generate_batch( FakeModel, @@ -2046,6 +2053,7 @@ class BetterFakeModel: self.id = None +@unittest.skipIf(nodjango, "No Django installed") class DjangoModelFactoryTestCase(unittest.TestCase): def test_simple(self): class FakeModelFactory(factory.django.DjangoModelFactory):