2016-10-17 12:51:21 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-flexmock
|
|
|
|
|
#
|
2025-01-21 11:44:12 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2016-10-17 12:51:21 +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.
|
|
|
|
|
|
2018-12-04 13:28:06 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-17 12:51:21 +00:00
|
|
|
#
|
|
|
|
|
|
2018-12-04 13:28:06 +00:00
|
|
|
|
2023-05-08 08:19:41 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2016-10-17 12:51:21 +00:00
|
|
|
Name: python-flexmock
|
2025-01-21 11:44:12 +00:00
|
|
|
Version: 0.12.2
|
2016-10-17 12:51:21 +00:00
|
|
|
Release: 0
|
2018-12-05 19:23:39 +00:00
|
|
|
Summary: Testing library for creating mocks, stubs and fakes
|
2018-12-04 13:28:06 +00:00
|
|
|
License: BSD-2-Clause
|
2018-12-04 17:13:37 +00:00
|
|
|
URL: https://github.com/bkabrda/flexmock
|
2025-01-21 11:44:12 +00:00
|
|
|
Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2025-06-17 04:20:03 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2019-03-12 15:41:28 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-09-07 20:31:52 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 17:13:37 +00:00
|
|
|
BuildArch: noarch
|
2017-09-07 20:31:52 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
2016-10-17 12:51:21 +00:00
|
|
|
%description
|
2018-12-05 19:23:39 +00:00
|
|
|
Flexmock is a testing library for Python for creating mocks,
|
2016-10-17 12:51:21 +00:00
|
|
|
stubs and fakes. The API is inspired by a Ruby library of the same name, but
|
|
|
|
|
Python flexmock is not a clone of the Ruby version. It omits a number of
|
|
|
|
|
redundancies in the Ruby flexmock API, alters some defaults, and introduces
|
|
|
|
|
a number of Python-only features.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-07-09 13:27:49 +00:00
|
|
|
%autosetup -n flexmock-%{version}
|
2016-10-17 12:51:21 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-06-17 04:20:03 +00:00
|
|
|
%pyproject_wheel
|
2016-10-17 12:51:21 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-06-17 04:20:03 +00:00
|
|
|
%pyproject_install
|
2017-09-07 20:31:52 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-10-17 12:51:21 +00:00
|
|
|
|
|
|
|
|
%check
|
2019-03-12 15:41:28 +00:00
|
|
|
%pytest
|
2016-10-17 12:51:21 +00:00
|
|
|
|
2017-09-07 20:31:52 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:13:37 +00:00
|
|
|
%license LICENSE
|
- update to 0.11.3:
* Add PEP 561 `py.typed` marker file.
* Re-organize unit tests.
* Add a warning about the usage of `.new_instances()` method in
the documentation.
* Run tests with testtools, subunit, TeamCity, and doctest
testrunners using tox.
* Test flexmock API examples using doctest.
* Re-add Sphinx support for generating man pages.
* Fix 404 page not loading CSS and Javascript resources in
documentation.
* Add Python 3.8, 3.9, 3.10, and 3.11 support.
* Add type annotations.
* **BREAKING CHANGE**: Flexmock needs to be imported explicitly
using `from flexmock import flexmock`.
* Many error messages have been improved.
* Drop Python 2.7, 3.4, 3.5 support.
* Drop Pytest 4.x support.
* **BREAKING CHANGE**: Removed support for calling `once`,
`twice`, `never`, and `mock` methods without parentheses.
* Fix `should_call` is broken if called on a fake object.
* Fix `and_raise` allows invalid arguments for an exception.
* Fix AttributeError raised when mocking a proxied object.
* Fix flexmock not mocking methods properly on derived classes.
* Fix with_args not working built-in functions.
- Initial package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=16
2023-11-27 18:53:20 +00:00
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
|
%{python_sitelib}/flexmock
|
2025-06-17 04:20:03 +00:00
|
|
|
%{python_sitelib}/flexmock-%{version}.dist-info
|
2016-10-17 12:51:21 +00:00
|
|
|
|
|
|
|
|
%changelog
|