2011-08-31 14:06:20 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-MiniMock
|
|
|
|
|
#
|
2022-02-11 13:09:05 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-08-31 14:06:20 +00: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.
|
2011-09-01 15:26:50 +00:00
|
|
|
|
2018-12-04 13:40:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-31 14:06:20 +00:00
|
|
|
#
|
|
|
|
|
|
2011-09-01 15:26:50 +00:00
|
|
|
|
2017-08-31 06:18:20 +00:00
|
|
|
%define oldpython python
|
2022-02-16 23:41:07 +00:00
|
|
|
%define skip_python2 1
|
|
|
|
|
%define modname minimock
|
2024-03-11 21:36:28 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-08-31 14:06:20 +00:00
|
|
|
Name: python-MiniMock
|
2022-02-16 23:41:07 +00:00
|
|
|
Version: 1.3.0
|
2013-05-02 09:11:24 +00:00
|
|
|
Release: 0
|
2017-09-04 05:31:49 +00:00
|
|
|
Summary: A mock library for Python
|
2011-08-31 14:06:20 +00:00
|
|
|
License: MIT
|
2022-02-16 23:41:07 +00:00
|
|
|
URL: https://github.com/lowks/minimock/
|
|
|
|
|
Source: https://github.com/lowks/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module pip}
|
2017-08-31 06:18:20 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-02-16 23:41:07 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2022-02-11 13:11:36 +00:00
|
|
|
BuildRequires: fdupes
|
2017-08-31 06:18:20 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-03-11 21:36:28 +00:00
|
|
|
BuildRequires: %{python_module tools}
|
2011-08-31 14:06:20 +00:00
|
|
|
BuildArch: noarch
|
2017-08-31 06:18:20 +00:00
|
|
|
%ifpython2
|
|
|
|
|
Provides: %{oldpython}-minimock = %{version}
|
|
|
|
|
Obsoletes: %{oldpython}-minimock < %{version}
|
2011-08-31 14:06:20 +00:00
|
|
|
%endif
|
2017-08-31 06:18:20 +00:00
|
|
|
%python_subpackages
|
2011-08-31 14:06:20 +00:00
|
|
|
|
|
|
|
|
%description
|
2017-09-04 05:31:49 +00:00
|
|
|
Minimock is a library for doing Mock objects with doctest.
|
2011-08-31 14:06:20 +00:00
|
|
|
When using doctest, mock objects can be very simple.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-02-16 23:41:07 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2011-08-31 14:06:20 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-02-16 23:41:07 +00:00
|
|
|
%pyproject_wheel
|
2011-08-31 14:06:20 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-02-16 23:41:07 +00:00
|
|
|
%pyproject_install
|
2022-02-11 13:11:36 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-08-31 06:18:20 +00:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%python_expand $python -B %{buildroot}%{$python_sitelib}/minimock.py
|
2011-08-31 14:06:20 +00:00
|
|
|
|
2017-08-31 06:18:20 +00:00
|
|
|
%files %{python_files}
|
2022-02-16 23:41:07 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc CHANGELOG.txt README.rst
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/minimock*
|
|
|
|
|
%{python_sitelib}/minimock.py
|
|
|
|
|
%{python_sitelib}/minimock-*-info
|
2011-08-31 14:06:20 +00:00
|
|
|
|
|
|
|
|
%changelog
|