# # spec file for package python-pretend # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define skip_python2 1 %define skip_python36 1 %define skip_python38 1 %define skip_python39 1 %define skip_python311 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-pretend Version: 1.0.9 Release: 3.2 Summary: A library for stubbing in Python License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/alex/pretend Source: https://files.pythonhosted.org/packages/source/p/pretend/pretend-%{version}.tar.gz Source1: https://raw.githubusercontent.com/alex/pretend/master/test_pretend.py BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages %description Pretend is a library to make stubbing with Python easier. %prep %setup -q -n pretend-%{version} cp %{SOURCE1} . %build %python_build %install %python_install %check %python_exec -m pytest %files %{python_files} %license LICENSE.rst %doc README.rst %{python_sitelib}/pretend* %{python_sitelib}/__pycache__/* %changelog * Fri Apr 21 2023 Dirk Müller - add sle15_python_module_pythons (jsc#PED-68) * Thu Apr 13 2023 Matej Cepl - Make calling of %%{sle15modernpython} optional. * Mon Jan 31 2022 Matej Cepl - Fix files list * Thu Feb 14 2019 John Vandenberg - Activate test suite - Update to v1.0.9 * Make 'stub' object callable * Build and doc enhancements * Tue Dec 4 2018 Matej Cepl - Remove superfluous devel dependency for noarch package * Thu Mar 16 2017 tbechtold@suse.com - Switch to singlespec approach * Mon Mar 31 2014 speilicke@suse.com - Initial version for v1.0.8