15
0

- Deduplicate files in python_sitelib.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MiniMock?expand=0&rev=30
This commit is contained in:
2022-02-11 13:11:36 +00:00
committed by Git OBS Bridge
parent 07efe57667
commit a71045a23b
2 changed files with 7 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ License: MIT
URL: https://pypi.python.org/pypi/MiniMock
Source: https://files.pythonhosted.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-tools
BuildArch: noarch
@@ -52,6 +53,7 @@ When using doctest, mock objects can be very simple.
python3 -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/
python3 -O -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/
%endif
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand $python -B %{buildroot}%{$python_sitelib}/minimock.py