forked from pool/python-zdaemon
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
This commit is contained in:
@@ -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
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -19,13 +19,12 @@
|
||||
%{?sle15_python_module_pythons}
|
||||
%define modname zdaemon
|
||||
Name: python-%{modname}
|
||||
Version: 5.0
|
||||
Version: 5.1
|
||||
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}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9a5ec6c519a280bbcfa8f7e73f4e10d808e7b82710ab608e0f449bf3c06d43d5
|
||||
size 59149
|
||||
3
zdaemon-5.1.tar.gz
Normal file
3
zdaemon-5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:22e9fe5050eaebb9e03d9ad64e4f63ccd85e04c38fdb351cf113bef6f68db7a4
|
||||
size 60726
|
||||
Reference in New Issue
Block a user