python-factory_boy/python-factory_boy.spec
Jan Matejek cdf00eb4af Accepting request 532148 from home:scarabeus_iv:branches:devel:languages:python
- Update to version 2.9.2:
  * read the upstream ChangeLog for in detail list as there are
    too many changes
- Do not generate docu in the spec and make sure tests are run
- Switch to python singlespec

OBS-URL: https://build.opensuse.org/request/show/532148
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-factory_boy?expand=0&rev=7
2017-10-06 13:58:25 +00:00

59 lines
1.7 KiB
RPMSpec

#
# spec file for package python-factory_boy
#
# Copyright (c) 2017 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-factory_boy
Version: 2.9.2
Release: 0
Summary: A test fixtures replacement
License: MIT
Group: Development/Languages/Python
Url: http://github.com/rbarrois/factory_boy
Source: https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz
BuildRequires: %{python_module Faker >= 0.7.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: python2-ipaddress
Requires: python-Faker >= 0.7.0
BuildArch: noarch
%python_subpackages
%description
A test fixtures replacement based on thoughtbot's factory_girl for Ruby.
%prep
%setup -q -n factory_boy-%{version}
%build
%python_build
%install
%python_install
%check
%python_exec setup.py test
%files %{python_files}
%doc README.rst LICENSE
%{python_sitelib}/*
%changelog