diff --git a/locket-0.2.0.tar.gz b/locket-0.2.0.tar.gz deleted file mode 100644 index a214126..0000000 --- a/locket-0.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1fee63c1153db602b50154684f5725564e63a0f6d09366a1cb13dffcec179fb4 -size 3506 diff --git a/locket-1.0.0-gh.tar.gz b/locket-1.0.0-gh.tar.gz new file mode 100644 index 0000000..0a2b774 --- /dev/null +++ b/locket-1.0.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1017278428998ac23c0716660587eeb39f069493d39922b7f5ae6c39c62f86c6 +size 6541 diff --git a/python-locket.changes b/python-locket.changes index 98d5571..2d3bf5b 100644 --- a/python-locket.changes +++ b/python-locket.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Fri Jun 24 21:37:54 UTC 2022 - Ben Greiner + +- Update to 1.0.0 + * No release notes. From git log: + * Fix #5: make sure it is sane to use different timeouts on the + same file + * Close file when acquire() fails + * Raise LockError when calling release on an unlocked lock + * Use time.monotonic() when available +- Enable test suite -- by requiring untested spur.py :( + ------------------------------------------------------------------- Tue Dec 4 12:50:05 UTC 2018 - Matej Cepl diff --git a/python-locket.spec b/python-locket.spec index e21d43f..239b697 100644 --- a/python-locket.spec +++ b/python-locket.spec @@ -1,7 +1,7 @@ # # spec file for package python-locket # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,14 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-locket -Version: 0.2.0 +Version: 1.0.0 Release: 0 Summary: File-based locks for Python License: BSD-2-Clause Group: Development/Languages/Python -Url: http://github.com/mwilliamson/locket.py -Source: https://files.pythonhosted.org/packages/source/l/locket/locket-%{version}.tar.gz +URL: https://github.com/mwilliamson/locket.py +Source: https://github.com/mwilliamson/locket.py/archive/refs/tags/%{version}.tar.gz#/locket-%{version}-gh.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module spur} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -50,7 +52,7 @@ module in the standard library. Specifically, their behaviour is: * Behaviour of locks after `fork` is undefined. %prep -%setup -q -n locket-%{version} +%setup -q -n locket.py-%{version} %build %python_build @@ -59,9 +61,13 @@ module in the standard library. Specifically, their behaviour is: %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/locket +%{python_sitelib}/locket-%{version}*-info %changelog