diff --git a/mockito-1.0.12.tar.gz b/mockito-1.0.12.tar.gz deleted file mode 100644 index a93bd31..0000000 --- a/mockito-1.0.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea264ebf1d3d0e8bef31f2d630dcd18fcc073dbc4a3b4050b80ac624f6e46788 -size 35406 diff --git a/mockito-1.1.1.tar.gz b/mockito-1.1.1.tar.gz new file mode 100644 index 0000000..03e6886 --- /dev/null +++ b/mockito-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:142f5e8865a422ad2d67b9c67a382e3296e8f1633dbccd0e322180fba7d5303d +size 36959 diff --git a/python-mockito.changes b/python-mockito.changes index 55cc43d..ecd8eb7 100644 --- a/python-mockito.changes +++ b/python-mockito.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Mon Apr 8 08:58:08 UTC 2019 - Tomáš Chvátal + +- Disable python3 building as the mockito is py2 only (git master + is py3 compatible so hopefully next release should be supported) + +------------------------------------------------------------------- +Fri Apr 5 12:38:51 UTC 2019 - Tomáš Chvátal + +- Update to 1.1.1: + * Added forget_invocations function. Thanks to @maximkulkin + * Fix: The context manager (with) has now a proper implementation + * Fix: Calling patch with two arguments can now be used with with + * Fix: Do not treat the placeholder arguments (Ellipsis, args, kwargs) as special on call time anymore. (T.i. they only have a meaning when stubbing or verifying.) + * Enhancement: Changed some truthy or equality tests to identity (is) tests. This reduces edge-cases where some user object defines __eq__ or __bool__. (Hello _numpy_!) +- Run tests + ------------------------------------------------------------------- Tue Dec 4 12:50:25 UTC 2018 - Matej Cepl diff --git a/python-mockito.spec b/python-mockito.spec index 8c9c50c..eca42e3 100644 --- a/python-mockito.spec +++ b/python-mockito.spec @@ -1,7 +1,7 @@ # # spec file for package python-mockito # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,17 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python3 1 Name: python-mockito -Version: 1.0.12 +Version: 1.1.1 Release: 0 Summary: Spying framework License: MIT Group: Development/Languages/Python -Url: http://mockito-python.readthedocs.io/en/latest/ +URL: https://github.com/kaste/mockito-python Source: https://files.pythonhosted.org/packages/source/m/mockito/mockito-%{version}.tar.gz +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,6 +50,9 @@ Mockito is a spying framework originally based on the Java library with the same %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc AUTHORS CHANGES.txt README.rst %license LICENSE