From 70a977d77d02537766f8fbc211c6650f2d5afea781e8f32344419fb96f3b890a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 8 Sep 2024 15:57:35 +0000 Subject: [PATCH 1/3] - 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-filelock?expand=0&rev=44 --- filelock-3.15.1.tar.gz | 3 --- filelock-3.16.0.tar.gz | 3 +++ python-filelock.changes | 15 +++++++++++++++ python-filelock.spec | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) delete mode 100644 filelock-3.15.1.tar.gz create mode 100644 filelock-3.16.0.tar.gz 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..77e8359 100644 --- a/python-filelock.changes +++ b/python-filelock.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +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 + ------------------------------------------------------------------- Mon Jun 17 06:00:15 UTC 2024 - Dirk Müller diff --git a/python-filelock.spec b/python-filelock.spec index ed11799..f1b4c07 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} Name: python-filelock -Version: 3.15.1 +Version: 3.16.0 Release: 0 Summary: Platform Independent File Lock in Python License: Unlicense From 48824c5482f58ff7154fc5958896d0cba313d8b1dfa625f57e04f7172f609fd6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 8 Sep 2024 15:59:07 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-filelock?expand=0&rev=45 --- python-filelock.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-filelock.spec b/python-filelock.spec index f1b4c07..6de9507 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -32,6 +32,7 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module virtualenv} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros From 54c90598146d6363458ffeeefb050f521c9ab9191d616e36f0f4d41a506b0288 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 9 Sep 2024 08:56:54 +0000 Subject: [PATCH 3/3] - 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 --- _multibuild | 3 +++ python-filelock.changes | 1 + python-filelock.spec | 23 ++++++++++++++++++----- 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 _multibuild 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/python-filelock.changes b/python-filelock.changes index 77e8359..c57a6ad 100644 --- a/python-filelock.changes +++ b/python-filelock.changes @@ -12,6 +12,7 @@ Sun Sep 8 15:56:37 UTC 2024 - Dirk Müller 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 6de9507..c0e2bfc 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -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