1
0

Accepting request 893466 from home:bnavigator:branches:devel:languages:python

- Update to v3.2.0
  * Add support for Django 3.1
  * Add support for Python 3.9
  * Drop support for Django 1.11. This version is not maintained
    anymore.
  * Drop support for Python 3.5. This version is not maintained
    anymore.
  Deprecated:
  * factory.use_strategy(). Use factory.FactoryOptions.strategy
    instead. The purpose of use_strategy() duplicates the factory
    option. Follow PEP 20: There should be one– and preferably only
    one –obvious way to do it.
  * use_strategy() will be removed in the next major version.
  Bug fix:
  * Calls to factory.Faker and factory.django.FileField within a
    Trait or Maybe no longer lead to a KeyError crash.
- Remove python2 build conditional: Not supported upstream

OBS-URL: https://build.opensuse.org/request/show/893466
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=21
This commit is contained in:
Dirk Mueller 2021-05-16 14:09:32 +00:00 committed by Git OBS Bridge
parent 0823e31173
commit 9815bc2571
4 changed files with 30 additions and 12 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ded73e49135c24bd4d3f45bf1eb168f8d290090f5cf4566b8df3698317dc9c08
size 156554

3
factory_boy-3.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:401cc00ff339a022f84d64a4339503d1689e8263a4478d876e58a3295b155c5b
size 153844

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Sun May 16 13:01:17 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to v3.2.0
* Add support for Django 3.1
* Add support for Python 3.9
* Drop support for Django 1.11. This version is not maintained
anymore.
* Drop support for Python 3.5. This version is not maintained
anymore.
Deprecated:
* factory.use_strategy(). Use factory.FactoryOptions.strategy
instead. The purpose of use_strategy() duplicates the factory
option. Follow PEP 20: There should be one and preferably only
one obvious way to do it.
* use_strategy() will be removed in the next major version.
Bug fix:
* Calls to factory.Faker and factory.django.FileField within a
Trait or Maybe no longer lead to a KeyError crash.
- Remove python2 build conditional: Not supported upstream
-------------------------------------------------------------------
Mon Oct 5 06:11:53 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-factory_boy
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,9 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
%define skip_python2 1
Name: python-factory_boy
Version: 3.1.0
Version: 3.2.0
Release: 0
Summary: Python test fixtures
License: MIT
@ -28,16 +28,12 @@ Source: https://files.pythonhosted.org/packages/source/f/factory_boy/fac
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Faker >= 0.7.0}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module setuptools >= 0.8}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Faker >= 0.7.0
BuildArch: noarch
%if %{with python2}
BuildRequires: python-ipaddress
%endif
%python_subpackages
%description
@ -60,11 +56,12 @@ sed -i -e '/test_alchemy/d' tests/__init__.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m unittest
%pyunittest -v
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/factory
%{python_sitelib}/factory_boy-%{version}*-info
%changelog