Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-mockito for 
openSUSE:Factory checked in at 2025-11-18 15:32:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-mockito (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-mockito.new.2061 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-mockito"

Tue Nov 18 15:32:26 2025 rev:4 rq:1318403 version:0.0.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-mockito/python-pytest-mockito.changes  
    2025-05-07 19:19:30.210753280 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-mockito.new.2061/python-pytest-mockito.changes
    2025-11-18 15:35:05.339420873 +0100
@@ -1,0 +2,12 @@
+Tue Nov 18 06:41:09 UTC 2025 - Daniel Garcia <[email protected]>
+
+- Update to 0.0.5:
+  - Compatibility with python 3.14
+  - Wrap exception for a clean error message
+
+-------------------------------------------------------------------
+Mon Nov 17 09:25:35 UTC 2025 - Daniel Garcia <[email protected]>
+
+- Skip failing tests in python 3.14, gh#kaste/pytest-mockito#2
+
+-------------------------------------------------------------------

Old:
----
  0.0.4.tar.gz

New:
----
  0.0.5.tar.gz
  _scmsync.obsinfo
  build.specials.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-mockito.spec ++++++
--- /var/tmp/diff_new_pack.vwA09g/_old  2025-11-18 15:35:06.539471405 +0100
+++ /var/tmp/diff_new_pack.vwA09g/_new  2025-11-18 15:35:06.543471573 +0100
@@ -18,7 +18,7 @@
 
 
 Name:           python-pytest-mockito
-Version:        0.0.4
+Version:        0.0.5
 Release:        0
 Summary:        Convenience plugin on top of mockito
 License:        MIT
@@ -27,7 +27,7 @@
 BuildRequires:  %{python_module mockito}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -47,6 +47,9 @@
 
 %prep
 %autosetup -n pytest-mockito-%{version}
+# Replace the dynamic version that's calculated with hatch-vcs without
+# as git checkout
+sed -i 's/dynamic.*/version="%{version}"/' pyproject.toml
 
 %build
 %pyproject_wheel

++++++ 0.0.4.tar.gz -> 0.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mockito-0.0.4/.github/workflows/ci.yml 
new/pytest-mockito-0.0.5/.github/workflows/ci.yml
--- old/pytest-mockito-0.0.4/.github/workflows/ci.yml   1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-mockito-0.0.5/.github/workflows/ci.yml   2025-11-17 
15:47:23.000000000 +0100
@@ -0,0 +1,60 @@
+name: CI
+
+on:
+  push:
+    branches: [ master, main ]
+    tags: [ "*" ]
+  pull_request:
+
+jobs:
+  test:
+    name: Test (Python ${{ matrix.python-version }})
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v5
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Install uv
+        uses: astral-sh/setup-uv@v3
+
+      - name: Install dependencies
+        run: uv sync --group dev
+
+      - name: Run tests
+        run: uv run pytest
+
+  publish:
+    name: Publish to PyPI
+    needs: test
+    runs-on: ubuntu-latest
+    if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Set up Python 3.13
+        uses: actions/setup-python@v5
+        with:
+          python-version: "3.13"
+
+      - name: Install uv
+        uses: astral-sh/setup-uv@v3
+
+      - name: Build distributions
+        run: uv build
+
+      - name: Publish to PyPI
+        uses: pypa/[email protected]
+        with:
+          password: ${{ secrets.PYPI_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mockito-0.0.4/.gitignore 
new/pytest-mockito-0.0.5/.gitignore
--- old/pytest-mockito-0.0.4/.gitignore 2017-09-25 13:47:45.000000000 +0200
+++ new/pytest-mockito-0.0.5/.gitignore 2025-11-17 15:47:23.000000000 +0100
@@ -1,2 +1,3 @@
 *.pyc
-*.egg-info/
\ No newline at end of file
+*.egg-info/
+uv.lock
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mockito-0.0.4/.travis.yml 
new/pytest-mockito-0.0.5/.travis.yml
--- old/pytest-mockito-0.0.4/.travis.yml        2017-09-25 13:47:45.000000000 
+0200
+++ new/pytest-mockito-0.0.5/.travis.yml        1970-01-01 01:00:00.000000000 
+0100
@@ -1,21 +0,0 @@
-language: python
-python:
-- '2.7'
-- '3.3'
-- '3.4'
-- '3.5'
-- '3.6'
-install:
-- pip install pytest --upgrade
-- pip install .
-script:
-- py.test tests
-deploy:
-  provider: pypi
-  user: herrkaste
-  password:
-    secure: 
mjtqU413O5h4IYhB9iZVy5FqTGwqclvBrQXewQDps+uJJIuyhCVB7EYmWf+yBt22BF+iJtde/z9yJkuLm+wvsLRvg7YJRcNDbKlGJeOiNgcR6fiBUAKcTm3MTNXyKZhQ9YvTO2Hpk2Be+18867HIyC7K2IiUi+AYY/YwX7GCoQnXTRjQ4GGmAOnUW+bGFIQNjWz7j40UQMfofkW5br+j1OERD2OGK60VcNWb6hQPLB+KQRbQ7fxkf7ODkov3rixb5VaFQqhjxgfubGMSLSA9h3S21n8STGTxgJZnnyjmI1+4FbD+VtbZLTQivaqfkexqxt/EAdU5S6mITCSbajoXMn0qTW10vMCn6dSlhBrob/1JINi9Wu2c9tj6PDeQ0hO1MJKL00wNSFdyrkgef7qsgdByPunJjkjT9Ihfsi9GUSWz4OvmIYjfbejzwNqWuEgBa4iLDKTNYsOVJHIIgJX3Z93k/O11JlalZtwSOou9CNB8CC3u1anZbA2ZahUIJV7DfcaoDzXiC2V2Zm2gNOxUeaHFHJekSLlTErCQiFNr3uQL31J10EvX2AvuOPAwdSdrUDIkcTq52o0Jq47eRoDV/27bOiXxDLfAhbPTcLzSrneI5ITu9Q7YhP1fs7sYaWeNv2II4veQz+Ei0vWjeLVcvDue5JzVZPbdmIqh4zErIXs=
-  on:
-    tags: true
-    distributions: sdist bdist_wheel
-    repo: kaste/pytest-mockito
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mockito-0.0.4/MANIFEST.in 
new/pytest-mockito-0.0.5/MANIFEST.in
--- old/pytest-mockito-0.0.4/MANIFEST.in        2017-09-25 13:47:45.000000000 
+0200
+++ new/pytest-mockito-0.0.5/MANIFEST.in        1970-01-01 01:00:00.000000000 
+0100
@@ -1,3 +0,0 @@
-include README.rst
-include LICENSE
-include setup.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mockito-0.0.4/pyproject.toml 
new/pytest-mockito-0.0.5/pyproject.toml
--- old/pytest-mockito-0.0.4/pyproject.toml     1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-mockito-0.0.5/pyproject.toml     2025-11-17 15:47:23.000000000 
+0100
@@ -0,0 +1,45 @@
+[build-system]
+requires = ["hatchling", "hatch-vcs"]
+build-backend = "hatchling.build"
+
+[project]
+name = "pytest-mockito"
+dynamic = ["version"]
+description = "Base fixtures for mockito"
+readme = "README.rst"
+requires-python = ">=3.8"
+license = { text = "MIT" }
+authors = [
+  { name = "herr kaste", email = "[email protected]" },
+]
+dependencies = [
+  "pytest>=6",
+  "mockito>=1.0.6",
+]
+classifiers = [
+  "Development Status :: 5 - Production/Stable",
+  "Intended Audience :: Developers",
+  "License :: OSI Approved :: MIT License",
+  "Operating System :: POSIX",
+  "Operating System :: Microsoft :: Windows",
+  "Operating System :: MacOS :: MacOS X",
+  "Topic :: Software Development :: Testing",
+  "Topic :: Software Development :: Quality Assurance",
+  "Topic :: Utilities",
+  "Programming Language :: Python",
+]
+
+[project.urls]
+Homepage = "https://github.com/kaste/pytest-mockito";
+
+[project.entry-points.pytest11]
+mockito = "pytest_mockito.plugin"
+
+[tool.uv]
+package = true
+
+[dependency-groups]
+dev = ["pytest"]
+
+[tool.hatch.version]
+source = "vcs"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mockito-0.0.4/pytest_mockito/plugin.py 
new/pytest-mockito-0.0.5/pytest_mockito/plugin.py
--- old/pytest-mockito-0.0.4/pytest_mockito/plugin.py   2017-09-25 
13:47:45.000000000 +0200
+++ new/pytest-mockito-0.0.5/pytest_mockito/plugin.py   2025-11-17 
15:47:23.000000000 +0100
@@ -1,47 +1,70 @@
 
 import pytest
+from _pytest.outcomes import Failed
 
 
[email protected]
-def unstub_():
-    from mockito import unstub
-    yield unstub
-    unstub()
+_PLUGIN_FIXTURES = {"unstub", "when", "when2", "expect", "patch", "spy2"}
 
[email protected]
-def unstub(unstub_):
-    from mockito import verifyStubbedInvocationsAreUsed
-    yield unstub_
 
-    verifyStubbedInvocationsAreUsed()
[email protected](hookwrapper=True)
+def pytest_runtest_call(item):
+    from mockito import (
+        unstub, verifyStubbedInvocationsAreUsed, verifyNoUnwantedInteractions
+    )
+
+    # Let pytest (and other plugins) run the actual test call.
+    outcome = yield
+
+    fixturenames = getattr(item, "fixturenames", ())
+    used_fixtures = _PLUGIN_FIXTURES.intersection(fixturenames)
+
+    exc = None
+    if used_fixtures:
+        try:
+            verifyStubbedInvocationsAreUsed()
+            if "expect" in fixturenames:
+                verifyNoUnwantedInteractions()
+        except Exception as e:
+            exc = e
+        finally:
+            unstub()
+
+    if exc is not None:
+        # Turn the mockito verification error into a clean pytest failure.
+        outcome.force_exception(Failed(str(exc), pytrace=False))
+
+
[email protected]
+def unstub():
+    from mockito import unstub
+    return unstub
 
 
 @pytest.fixture
 def when(unstub):
     from mockito import when
-    yield when
+    return when
 
 
 @pytest.fixture
 def when2(unstub):
     from mockito import when2
-    yield when2
+    return when2
 
 
 @pytest.fixture
 def expect(unstub):
-    from mockito import expect, verifyNoUnwantedInteractions
-    yield expect
-    verifyNoUnwantedInteractions()
+    from mockito import expect
+    return expect
 
 
 @pytest.fixture
 def patch(unstub):
     from mockito import patch
-    yield patch
+    return patch
 
 
 @pytest.fixture
 def spy2(unstub):
     from mockito import spy2
-    yield spy2
+    return spy2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-mockito-0.0.4/setup.py 
new/pytest-mockito-0.0.5/setup.py
--- old/pytest-mockito-0.0.4/setup.py   2017-09-25 13:47:45.000000000 +0200
+++ new/pytest-mockito-0.0.5/setup.py   1970-01-01 01:00:00.000000000 +0100
@@ -1,29 +0,0 @@
-from setuptools import setup
-
-setup(
-    name="pytest-mockito",
-    version='0.0.4',
-    description='Base fixtures for mockito',
-    long_description=open('README.rst').read(),
-    license='MIT',
-    author='herr kaste',
-    author_email='[email protected]',
-    url='https://github.com/kaste/pytest-mockito',
-    platforms=['linux', 'osx', 'win32'],
-    packages=['pytest_mockito'],
-    entry_points={'pytest11': ['mockito = pytest_mockito.plugin'], },
-    zip_safe=False,
-    install_requires=['pytest>=3', 'mockito>=1.0.6'],
-    classifiers=[
-        'Development Status :: 4 - Beta',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: MIT License',
-        'Operating System :: POSIX',
-        'Operating System :: Microsoft :: Windows',
-        'Operating System :: MacOS :: MacOS X',
-        'Topic :: Software Development :: Testing',
-        'Topic :: Software Development :: Quality Assurance',
-        'Topic :: Utilities',
-        'Programming Language :: Python',
-    ],
-)

++++++ _scmsync.obsinfo ++++++
mtime: 1763448684
commit: bb8120d20a76a2f9c24cefcf84e7218e52d673f53862ada72a50f5b5f3c7bac3
url: https://src.opensuse.org/python-pytest/python-pytest-mockito.git
revision: bb8120d20a76a2f9c24cefcf84e7218e52d673f53862ada72a50f5b5f3c7bac3
projectscmsync: https://src.opensuse.org/python-pytest/_ObsPrj.git

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2025-11-18 07:52:10.000000000 +0100
@@ -0,0 +1 @@
+.osc

Reply via email to