14
0

- Update to 2.11.1:

* Support for Django 2.1
  * Support for python 3.7
  * Various small bugfixes
- Add patch python37.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2018-10-18 10:23:18 +00:00
committed by Git OBS Bridge
parent cdf00eb4af
commit a2ed2f15b3
5 changed files with 98 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-factory_boy
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -12,24 +12,27 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-factory_boy
Version: 2.9.2
Version: 2.11.1
Release: 0
Summary: A test fixtures replacement
License: MIT
Group: Development/Languages/Python
Url: http://github.com/rbarrois/factory_boy
URL: http://github.com/rbarrois/factory_boy
Source: https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz
Patch0: python37.patch
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Faker >= 0.7.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-ipaddress
Requires: python-Faker >= 0.7.0
@@ -41,18 +44,27 @@ A test fixtures replacement based on thoughtbot's factory_girl for Ruby.
%prep
%setup -q -n factory_boy-%{version}
%patch0 -p1
# needs running mongo
rm tests/test_mongoengine.py
sed -i -e '/test_mongoengine/d' tests/__init__.py
# sqlalchemy hickups a lot
rm tests/test_alchemy.py
sed -i -e '/test_alchemy/d' tests/__init__.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%doc README.rst LICENSE
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog