From 24038b15e55623361be3290a21e83a72bfc9416779668fd97b48c2cef44185d4 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 10 Apr 2025 05:41:04 +0000 Subject: [PATCH] - Update to 2.7.1: * Wait for the IOLoop to be stopped before attempting to close it * Release since we have many bug fixes. - Update Source URL. - Drop patch python-livereload-no-python2.patch, included upstream. - Drop {Build,}Requires on six. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-livereload?expand=0&rev=11 --- 2.6.3.tar.gz | 3 -- python-livereload-no-python2.patch | 85 ------------------------------ python-livereload.changes | 10 ++++ python-livereload.spec | 19 +++---- v2.7.1.tar.gz | 3 ++ 5 files changed, 20 insertions(+), 100 deletions(-) delete mode 100644 2.6.3.tar.gz delete mode 100644 python-livereload-no-python2.patch create mode 100644 v2.7.1.tar.gz diff --git a/2.6.3.tar.gz b/2.6.3.tar.gz deleted file mode 100644 index 0a8e892..0000000 --- a/2.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d31d598d8dea0445e5d53e592e5fce5befd2265b001ce8995462200d3d247bf -size 29407 diff --git a/python-livereload-no-python2.patch b/python-livereload-no-python2.patch deleted file mode 100644 index 29e66b9..0000000 --- a/python-livereload-no-python2.patch +++ /dev/null @@ -1,85 +0,0 @@ -Index: python-livereload-2.6.3/Makefile -=================================================================== ---- python-livereload-2.6.3.orig/Makefile -+++ python-livereload-2.6.3/Makefile -@@ -15,7 +15,7 @@ clean-pyc: - find . -name '*~' -exec rm -f {} + - - install: -- python setup.py install -+ python3 setup.py install - - docs: - $(MAKE) -C docs html -Index: python-livereload-2.6.3/livereload/server.py -=================================================================== ---- python-livereload-2.6.3.orig/livereload/server.py -+++ python-livereload-2.6.3/livereload/server.py -@@ -27,11 +27,10 @@ from tornado.log import LogFormatter - from .handlers import LiveReloadHandler, LiveReloadJSHandler - from .handlers import ForceReloadHandler, StaticFileHandler - from .watcher import get_watcher_class --from six import string_types, PY3 - - import sys - --if sys.version_info >= (3, 7) or sys.version_info.major == 2: -+if sys.version_info >= (3, 7): - import errno - else: - from os import errno -Index: python-livereload-2.6.3/livereload/watcher.py -=================================================================== ---- python-livereload-2.6.3.orig/livereload/watcher.py -+++ python-livereload-2.6.3/livereload/watcher.py -@@ -13,12 +13,7 @@ import glob - import logging - import os - import time --import sys -- --if sys.version_info.major < 3: -- import inspect --else: -- from inspect import signature -+from inspect import signature - - try: - import pyinotify -@@ -109,11 +104,7 @@ class Watcher(object): - name = getattr(func, '__name__', 'anonymous') - logger.info( - "Running task: {} (delay: {})".format(name, delay)) -- if sys.version_info.major < 3: -- sig_len = len(inspect.getargspec(func)[0]) -- else: -- sig_len = len(signature(func).parameters) -- if sig_len > 0 and isinstance(changed, list): -+ if len(signature(func).parameters) > 0 and isinstance(changed, list): - func(changed) - else: - func() -@@ -206,10 +197,7 @@ class Watcher(object): - - def get_changed_glob_files(self, path, ignore=None): - """Check if glob path has any changed filepaths.""" -- if sys.version_info[0] >=3 and sys.version_info[1] >=5: -- files = glob.glob(path, recursive=True) -- else: -- files = glob.glob(path) -+ files = glob.glob(path, recursive=True) - changed_files = [f for f in files if self.is_file_changed(f, ignore)] - return changed_files - -Index: python-livereload-2.6.3/setup.py -=================================================================== ---- python-livereload-2.6.3.orig/setup.py -+++ python-livereload-2.6.3/setup.py -@@ -35,7 +35,6 @@ setup( - install_requires=[ - 'tornado;python_version>"2.7"', - 'tornado<6;python_version=="2.7"', -- 'six', - ], - license='BSD', - include_package_data=True, diff --git a/python-livereload.changes b/python-livereload.changes index 3840bb8..727d73e 100644 --- a/python-livereload.changes +++ b/python-livereload.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Apr 10 05:40:38 UTC 2025 - Steve Kowalik + +- Update to 2.7.1: + * Wait for the IOLoop to be stopped before attempting to close it + * Release since we have many bug fixes. +- Update Source URL. +- Drop patch python-livereload-no-python2.patch, included upstream. +- Drop {Build,}Requires on six. + ------------------------------------------------------------------- Thu Jul 6 11:51:12 UTC 2023 - ecsos diff --git a/python-livereload.spec b/python-livereload.spec index d927c6d..ca9b708 100644 --- a/python-livereload.spec +++ b/python-livereload.spec @@ -1,7 +1,7 @@ # # spec file for package python-livereload # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,26 +18,21 @@ %{?sle15_python_module_pythons} Name: python-livereload -Version: 2.6.3 +Version: 2.7.1 Release: 0 Summary: Livereload server in python License: BSD-2-Clause -Group: Development/Languages/Python URL: https://livereload.readthedocs.io/en/latest/ -Source: https://github.com/lepture/python-livereload/archive/%{version}.tar.gz -# https://github.com/lepture/python-livereload/commit/5165fedf96b161bf146fa31893c2e99b78570977 -Patch0: python-livereload-no-python2.patch +Source: https://github.com/lepture/python-livereload/archive/refs/tags/v%{version}.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module six} BuildRequires: %{python_module tornado} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-six Requires: python-tornado Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -67,10 +62,10 @@ Reload webpages on changes, without hitting refresh in your browser. %python_uninstall_alternative livereload %files %{python_files} -%doc README.rst +%doc README.md %license LICENSE %python_alternative %{_bindir}/livereload -%{python_sitelib}/livereload/ -%{python_sitelib}/livereload-%{version}*-info +%{python_sitelib}/livereload +%{python_sitelib}/livereload-%{version}.dist-info %changelog diff --git a/v2.7.1.tar.gz b/v2.7.1.tar.gz new file mode 100644 index 0000000..41bf72a --- /dev/null +++ b/v2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:075008c7cd8c322cac04dd370a86404f11bc614898399acc6075fcf8e4e8e304 +size 26793