forked from pool/python-pytest-mockito
Accepting request 1275105 from devel:languages:python:pytest
- Switch to pyproject macros. - Be more explicit about the metadata directory name. OBS-URL: https://build.opensuse.org/request/show/1275105 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mockito?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 7 06:53:50 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- Be more explicit about the metadata directory name.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 23 09:06:19 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
Thu Dec 23 09:06:19 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-mockito
|
# spec file for package python-pytest-mockito
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2021 Fabrice Bauzac-Stehly
|
# Copyright (c) 2021 Fabrice Bauzac-Stehly
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,22 +17,18 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
|
|
||||||
# python-mockito is not available for Python 3.6
|
|
||||||
%define skip_python36 1
|
|
||||||
|
|
||||||
Name: python-pytest-mockito
|
Name: python-pytest-mockito
|
||||||
Version: 0.0.4
|
Version: 0.0.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Convenience plugin on top of mockito
|
Summary: Convenience plugin on top of mockito
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/kaste/pytest-mockito
|
URL: https://github.com/kaste/pytest-mockito
|
||||||
Source: https://github.com/kaste/pytest-mockito/archive/refs/tags/%{version}.tar.gz
|
Source: https://github.com/kaste/pytest-mockito/archive/refs/tags/%{version}.tar.gz
|
||||||
BuildRequires: %{python_module mockito}
|
BuildRequires: %{python_module mockito}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: ca-certificates
|
Requires: ca-certificates
|
||||||
@@ -53,10 +49,10 @@ For example:
|
|||||||
%autosetup -n pytest-mockito-%{version}
|
%autosetup -n pytest-mockito-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -65,7 +61,7 @@ For example:
|
|||||||
%files %python_files
|
%files %python_files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/pytest_mockito/
|
%{python_sitelib}/pytest_mockito
|
||||||
%{python_sitelib}/pytest_mockito-*
|
%{python_sitelib}/pytest_mockito-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user