Compare commits

5 Commits

Author SHA256 Message Date
fe8385d787 Accepting request 1281337 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1281337
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zdaemon?expand=0&rev=28
2025-05-31 17:15:57 +00:00
f0b7d92ca1 - Update to 5.2
* Add support for Python 3.13.
  * Drop support for Python 3.7, 3.8.
  * Fix a deprecation warning by using logger.warning
    rather than logger.warn (fixes #40).
  * Fix logging to compute the message lazily.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zdaemon?expand=0&rev=45
2025-05-30 09:29:58 +00:00
df47100db0 Accepting request 1199499 from devel:languages:python
- update to 5.1:
  * Add support for Python 3.12.
  * Fix SIGCHLD/wait raise condition associated with the start-
    test-program option. For details see #33.
- drop obs-timeout.patch (obsolete)

OBS-URL: https://build.opensuse.org/request/show/1199499
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zdaemon?expand=0&rev=27
2024-09-09 12:44:46 +00:00
5a23fe8dc9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zdaemon?expand=0&rev=43 2024-09-08 16:44:18 +00:00
bfa1d327e9 - update to 5.1:
* Add support for Python 3.12.
  * Fix SIGCHLD/wait raise condition associated with the start-
    test-program option. For details see #33.
- drop obs-timeout.patch (obsolete)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zdaemon?expand=0&rev=42
2024-09-08 16:42:49 +00:00
5 changed files with 24 additions and 88 deletions

View File

@@ -1,82 +0,0 @@
Index: zdaemon-4.3/src/zdaemon/tests/tests.py
===================================================================
--- zdaemon-4.3.orig/src/zdaemon/tests/tests.py
+++ zdaemon-4.3/src/zdaemon/tests/tests.py
@@ -264,77 +264,6 @@ def test_log_rotation():
"""
-def test_start_test_program():
- """
- >>> write('t.py',
- ... '''
- ... import time
- ... time.sleep(1)
- ... open('x', 'w').close()
- ... time.sleep(99)
- ... ''')
-
- >>> write('conf',
- ... '''
- ... <runner>
- ... program %s t.py
- ... start-test-program cat x
- ... </runner>
- ... ''' % sys.executable)
-
- >>> import os
-
- >>> system("./zdaemon -Cconf start")
- . .
- daemon process started, pid=21446
-
- >>> os.path.exists('x')
- True
- >>> os.remove('x')
-
- >>> system("./zdaemon -Cconf restart")
- . . .
- daemon process restarted, pid=19622
- >>> os.path.exists('x')
- True
-
- >>> system("./zdaemon -Cconf stop")
- <BLANKLINE>
- daemon process stopped
- """
-
-
-def test_start_timeout():
- """
- >>> write('t.py',
- ... '''
- ... import time
- ... time.sleep(9)
- ... ''')
-
- >>> write('conf',
- ... '''
- ... <runner>
- ... program %s t.py
- ... start-test-program cat x
- ... start-timeout 1
- ... </runner>
- ... ''' % sys.executable)
-
- >>> import time
- >>> start = time.time()
-
- >>> system("./zdaemon -Cconf start")
- <BLANKLINE>
- Program took too long to start
- Failed: 1
-
- >>> system("./zdaemon -Cconf stop")
- <BLANKLINE>
- daemon process stopped
- """
-
-
def DAEMON_MANAGER_MODE_leak():
"""
Zdaemon used an environment variable to flag that it's running in

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Fri May 30 08:54:24 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 5.2
* Add support for Python 3.13.
* Drop support for Python 3.7, 3.8.
* Fix a deprecation warning by using logger.warning
rather than logger.warn (fixes #40).
* Fix logging to compute the message lazily.
-------------------------------------------------------------------
Sun Sep 8 16:41:50 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.1:
* Add support for Python 3.12.
* Fix SIGCHLD/wait raise condition associated with the start-
test-program option. For details see #33.
- drop obs-timeout.patch (obsolete)
-------------------------------------------------------------------
Wed Apr 10 07:27:55 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-zdaemon
#
# Copyright (c) 2024 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
@@ -19,13 +19,12 @@
%{?sle15_python_module_pythons}
%define modname zdaemon
Name: python-%{modname}
Version: 5.0
Version: 5.2
Release: 0
Summary: Daemon process control library and tools
License: ZPL-2.1
URL: https://github.com/zopefoundation/zdaemon
Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz
Patch0: obs-timeout.patch
BuildRequires: %{python_module ZConfig}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module manuel}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a5ec6c519a280bbcfa8f7e73f4e10d808e7b82710ab608e0f449bf3c06d43d5
size 59149

3
zdaemon-5.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8bba436df695e16b5f269a3280da27d4e53a6701120a93000c3fd00c14b8a89
size 61303