diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/filelock-3.15.1.tar.gz b/filelock-3.15.1.tar.gz deleted file mode 100644 index 71f2a41..0000000 --- a/filelock-3.15.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58a2549afdf9e02e10720eaa4d4470f56386d7a6f72edd7d0596337af8ed7ad8 -size 17564 diff --git a/filelock-3.16.0.tar.gz b/filelock-3.16.0.tar.gz new file mode 100644 index 0000000..6d67c64 --- /dev/null +++ b/filelock-3.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81de9eb8453c769b63369f87f11131a7ab04e367f8d97ad39dc230daa07e3bec +size 18008 diff --git a/python-filelock.changes b/python-filelock.changes index a4a7f2c..c57a6ad 100644 --- a/python-filelock.changes +++ b/python-filelock.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Sun Sep 8 15:56:37 UTC 2024 - Dirk Müller + +- update to 3.16.0: + * Test Python 3.13 + * Add 3.13 to CI +- update to 3.15.4: + * Pass `file_lock` as positional argument +- update to 3.15.3: + * Add test for virtualenv stability + * Fix `TypeError: _CountedFileLock.__init__() got an unexpected + 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 diff --git a/python-filelock.spec b/python-filelock.spec index ed11799..c0e2bfc 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -17,9 +17,17 @@ # +%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 -Version: 3.15.1 +Name: python-filelock%{?pkg_suffix} +Version: 3.16.0 Release: 0 Summary: Platform Independent File Lock in Python License: Unlicense @@ -29,10 +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 wheel} +BuildRequires: %{python_module virtualenv} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros %if 0%{?python_version_nodots} < 311 @@ -53,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