1
0

- split into test multibuild to avoid cycle over virtualenv

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-filelock?expand=0&rev=46
This commit is contained in:
2024-09-09 08:56:54 +00:00
committed by Git OBS Bridge
parent aa4be953b0
commit 8abd4711f0
3 changed files with 22 additions and 5 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -12,6 +12,7 @@ Sun Sep 8 15:56:37 UTC 2024 - Dirk Müller <dmueller@suse.com>
keyword argument 'timeout'`
- update to 3.15.2:
* Use a metaclass to implement the singleton pattern
- split into test multibuild to avoid cycle over virtualenv
-------------------------------------------------------------------
Mon Jun 17 06:00:15 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -17,8 +17,16 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define pkg_suffix -test
%bcond_without test
%else
%define pkg_suffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-filelock
Name: python-filelock%{?pkg_suffix}
Version: 3.16.0
Release: 0
Summary: Platform Independent File Lock in Python
@@ -29,11 +37,13 @@ BuildRequires: %{python_module asyncio}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module virtualenv}
BuildRequires: %{python_module wheel}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} < 311
@@ -54,17 +64,20 @@ inter-process communication.
%build
%pyproject_wheel
%if !%{with test}
%install
%pyproject_install
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
%pytest -rs
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/filelock
%{python_sitelib}/filelock-%{version}*-info
%else
%check
%pytest -rs
%endif
%changelog