15
0
Files
python-flexmock/python-flexmock.spec
Dirk Mueller c760d7c15d - 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

61 lines
1.8 KiB
RPMSpec

#
# spec file for package python-flexmock
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-flexmock
Version: 0.11.3
Release: 0
Summary: Testing library for creating mocks, stubs and fakes
License: BSD-2-Clause
URL: https://github.com/bkabrda/flexmock
Source: https://files.pythonhosted.org/packages/source/f/flexmock/flexmock-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Flexmock is a testing library for Python for creating mocks,
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
%setup -q -n flexmock-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc README.md CHANGELOG.md
%{python_sitelib}/flexmock
%{python_sitelib}/flexmock-%{version}-py*.egg-info
%changelog