1
0

23 Commits

Author SHA256 Message Date
b3bf79a514 Accepting request 1286224 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1286224
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=10
2025-06-17 16:22:47 +00:00
61e521c827 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=22
2025-06-17 04:20:03 +00:00
4def9d6edf Accepting request 1239249 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1239249
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=9
2025-01-21 20:11:00 +00:00
980d5201d8 - Update to 0.12.2
* Fix typing of and_raise (exception instances are allowed).
  * Fix teardown for spying on derived class methods.
  * Remove python 3.6 mentions and add py-version config to pylint.
- Adjust URL to upstream source tarball on Github

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=20
2025-01-21 11:44:12 +00:00
a0c37ad03c Accepting request 1186412 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1186412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=8
2024-07-09 18:06:01 +00:00
1a9f30cfc8 Accepting request 1129215 from devel:languages:python
- 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/request/show/1129215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=7
2023-11-27 21:44:55 +00:00
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
1c27f92802 Accepting request 1085448 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1085448
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=6
2023-05-08 15:24:43 +00:00
d26780b351 Accepting request 1085421 from home:ojkastl_buildservice:Branch_devel_languages_python
add sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1085421
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=14
2023-05-08 08:19:41 +00:00
5c64be8a95 Accepting request 915211 from devel:languages:python
- Update to 0.10.8:
  * Fix with_args not working built-in functions. 

- Update to 0.10.7:
  - Fix ``with_args`` not working built-in functions and methods.
  - Fix previous pytest ``--durations`` fix not working.
- from version 0.10.6
  - Fix flexmock broken with Pytest 4 & 5.
  - Fix new_instances method not working with Python 2.7.
  - Fix multiple expectations for the same classmethod are not matched.
- from version 0.10.5
  - Improve error message on unmatched method signature expectation.
  - Fix using ``should_call`` passes wrong ``runtime_self``.
  - Fix pytest ``--durations`` flag when flexmock is installed.

OBS-URL: https://build.opensuse.org/request/show/915211
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=5
2021-09-03 19:26:06 +00:00
e4dc6307cd - Update to 0.10.8:
* Fix with_args not working built-in functions.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=13
2021-08-31 08:54:11 +00:00
ac8ca6571b Accepting request 914197 from home:glaubitz:branches:devel:languages:python
- Update to 0.10.7:
  - Fix ``with_args`` not working built-in functions and methods.
  - Fix previous pytest ``--durations`` fix not working.
- from version 0.10.6
  - Fix flexmock broken with Pytest 4 & 5.
  - Fix new_instances method not working with Python 2.7.
  - Fix multiple expectations for the same classmethod are not matched.
- from version 0.10.5
  - Improve error message on unmatched method signature expectation.
  - Fix using ``should_call`` passes wrong ``runtime_self``.
  - Fix pytest ``--durations`` flag when flexmock is installed.

OBS-URL: https://build.opensuse.org/request/show/914197
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=12
2021-08-29 06:03:51 +00:00
7d9eba9438 Accepting request 689382 from devel:languages:python
- Update to 0.10.4:
  - drop Python 2.6, 3.3 and Jython support
  - add Python 3.6 and 3.7 support
  - don't hide exception when flexmock is used as context manager
  - fix expectation reset for static methods on pypy 2
  - ensure original exception isn't suppressed in pytest hook

OBS-URL: https://build.opensuse.org/request/show/689382
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=4
2019-04-02 07:21:38 +00:00
Tomáš Chvátal
fccc883559 - Update to 0.10.4:
- drop Python 2.6, 3.3 and Jython support
  - add Python 3.6 and 3.7 support
  - don't hide exception when flexmock is used as context manager
  - fix expectation reset for static methods on pypy 2
  - ensure original exception isn't suppressed in pytest hook

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=10
2019-03-28 14:28:59 +00:00
5ca9e98ed0 Accepting request 684399 from devel:languages:python
- Update to 0.10.3:
  - fix compatibility with py.test 4.1
  - minor documentation fixes

OBS-URL: https://build.opensuse.org/request/show/684399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=3
2019-03-13 08:14:30 +00:00
Tomáš Chvátal
3bec86b792 - Update to 0.10.3:
- fix compatibility with py.test 4.1
  - minor documentation fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=8
2019-03-12 15:41:28 +00:00
24cc2dc6b8 Accepting request 655397 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/655397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=2
2018-12-13 18:47:16 +00:00
Todd R
b9e22110f0 Accepting request 654125 from home:jengelh:branches:devel:languages:python
- Trim bias from description.

OBS-URL: https://build.opensuse.org/request/show/654125
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=6
2018-12-05 19:23:39 +00:00
29e8986449 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=5
2018-12-04 17:13:37 +00:00
3fd1e73921 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=4
2018-12-04 13:28:06 +00:00
8660cd1701 Accepting request 522162 from devel:languages:python
singlespec version of python3-flexmock, which is already in openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/522162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flexmock?expand=0&rev=1
2017-09-13 20:30:38 +00:00
Todd R
4a42db70ae Accepting request 522161 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version.

OBS-URL: https://build.opensuse.org/request/show/522161
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=2
2017-09-07 20:31:52 +00:00
b5fba4018c Accepting request 435718 from home:alarrosa:branches:Archiving:Backup
Added requested changes

OBS-URL: https://build.opensuse.org/request/show/435718
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=1
2016-10-17 12:51:21 +00:00
4 changed files with 25 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7f329605039eb43fe549aa163eb34d302e6765a2f7fc841e6b992c01678cdfcc
size 104093

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8fa3424bab5447f0b2501c317e389a5114672b2c29d0cd1076371c4944d617d
size 107172

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Tue Jun 17 04:13:59 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Jan 21 09:17:16 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.12.2
* Fix typing of and_raise (exception instances are allowed).
* Fix teardown for spying on derived class methods.
* Remove python 3.6 mentions and add py-version config to pylint.
- Adjust URL to upstream source tarball on Github
-------------------------------------------------------------------
Fri Jul 5 13:21:48 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-flexmock
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,15 @@
%{?sle15_python_module_pythons}
Name: python-flexmock
Version: 0.12.1
Version: 0.12.2
Release: 0
Summary: Testing library for creating mocks, stubs and fakes
License: BSD-2-Clause
URL: https://github.com/bkabrda/flexmock
Source: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -42,10 +43,10 @@ a number of Python-only features.
%autosetup -n flexmock-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -55,6 +56,6 @@ a number of Python-only features.
%license LICENSE
%doc README.md CHANGELOG.md
%{python_sitelib}/flexmock
%{python_sitelib}/flexmock-%{version}-py*.egg-info
%{python_sitelib}/flexmock-%{version}.dist-info
%changelog