2012-06-11 15:12:57 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-factory_boy
|
|
|
|
#
|
2023-02-01 21:48:41 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-06-11 15:12:57 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-18 12:23:18 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-06-11 15:12:57 +02:00
|
|
|
#
|
|
|
|
|
2012-11-23 12:08:12 +01:00
|
|
|
|
2023-04-26 22:38:48 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-06-11 15:12:57 +02:00
|
|
|
Name: python-factory_boy
|
2023-11-11 17:08:21 +01:00
|
|
|
Version: 3.3.0
|
2012-06-11 15:12:57 +02:00
|
|
|
Release: 0
|
2020-10-05 08:39:55 +02:00
|
|
|
Summary: Python test fixtures
|
2012-11-23 12:08:12 +01:00
|
|
|
License: MIT
|
2020-03-16 11:32:08 +01:00
|
|
|
URL: https://github.com/rbarrois/factory_boy
|
2020-10-05 08:39:55 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/factory_boy/factory_boy-%{version}.tar.gz
|
2017-10-06 15:58:25 +02:00
|
|
|
BuildRequires: %{python_module Faker >= 0.7.0}
|
2018-10-18 12:23:18 +02:00
|
|
|
BuildRequires: %{python_module Pillow}
|
2023-11-11 17:08:21 +01:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2019-06-07 14:07:43 +02:00
|
|
|
BuildRequires: %{python_module setuptools >= 0.8}
|
2021-12-28 23:54:49 +01:00
|
|
|
BuildRequires: %{python_module typing_extensions}
|
2018-10-18 12:23:18 +02:00
|
|
|
BuildRequires: fdupes
|
2017-10-06 15:58:25 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-02-01 21:48:41 +01:00
|
|
|
%if 0%{suse_version} >= 1550
|
|
|
|
BuildRequires: %{python_module Django}
|
|
|
|
%endif
|
2017-10-06 15:58:25 +02:00
|
|
|
Requires: python-Faker >= 0.7.0
|
2012-06-11 15:12:57 +02:00
|
|
|
BuildArch: noarch
|
2017-10-06 15:58:25 +02:00
|
|
|
%python_subpackages
|
2012-06-11 15:12:57 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A test fixtures replacement based on thoughtbot's factory_girl for Ruby.
|
|
|
|
|
|
|
|
%prep
|
2021-12-28 12:53:24 +01:00
|
|
|
%autosetup -p1 -n factory_boy-%{version}
|
2018-10-18 12:23:18 +02:00
|
|
|
# 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
|
2023-11-11 17:08:21 +01:00
|
|
|
# Fix wrong version
|
|
|
|
sed -i -e 's|"3.2.1.dev0"|"3.3.0"|g' tests/test_version.py
|
2012-06-11 15:12:57 +02:00
|
|
|
|
|
|
|
%build
|
2017-10-06 15:58:25 +02:00
|
|
|
%python_build
|
2012-06-11 15:12:57 +02:00
|
|
|
|
|
|
|
%install
|
2017-10-06 15:58:25 +02:00
|
|
|
%python_install
|
2018-10-18 12:23:18 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-06-11 15:12:57 +02:00
|
|
|
|
2012-11-23 12:08:12 +01:00
|
|
|
%check
|
2021-05-16 16:09:32 +02:00
|
|
|
%pyunittest -v
|
2012-11-23 12:08:12 +01:00
|
|
|
|
2017-10-06 15:58:25 +02:00
|
|
|
%files %{python_files}
|
2018-10-18 12:23:18 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2021-05-16 16:09:32 +02:00
|
|
|
%{python_sitelib}/factory
|
|
|
|
%{python_sitelib}/factory_boy-%{version}*-info
|
2012-06-11 15:12:57 +02:00
|
|
|
|
|
|
|
%changelog
|