forked from pool/python-zdaemon
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 78e8dd899e | |||
| f8e82bae62 | |||
| 49295b3a0f | |||
| b7badd5798 | |||
| c20705f95a | |||
| 2d9a7c2d61 | |||
| 547556b3e7 |
@@ -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,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 15 11:39:36 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 5.2.1
|
||||||
|
* Replace ``pkg_resources`` with ``importlib.metadata`` to access
|
||||||
|
package metadata.
|
||||||
|
- Update BuildRequires from setup.py
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Wed Apr 10 07:27:55 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-zdaemon
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,18 +19,16 @@
|
|||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
%define modname zdaemon
|
%define modname zdaemon
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 5.0
|
Version: 5.2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Daemon process control library and tools
|
Summary: Daemon process control library and tools
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
URL: https://github.com/zopefoundation/zdaemon
|
URL: https://github.com/zopefoundation/zdaemon
|
||||||
Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz
|
||||||
Patch0: obs-timeout.patch
|
|
||||||
BuildRequires: %{python_module ZConfig}
|
BuildRequires: %{python_module ZConfig}
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module manuel}
|
BuildRequires: %{python_module manuel}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: %{python_module zc.customdoctests}
|
BuildRequires: %{python_module zc.customdoctests}
|
||||||
BuildRequires: %{python_module zope.testing}
|
BuildRequires: %{python_module zope.testing}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9a5ec6c519a280bbcfa8f7e73f4e10d808e7b82710ab608e0f449bf3c06d43d5
|
|
||||||
size 59149
|
|
||||||
3
zdaemon-5.2.1.tar.gz
Normal file
3
zdaemon-5.2.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f06c2c7caf519c760834f8fe26e5735950d5017f72d5c208dc8b1900140594cd
|
||||||
|
size 61428
|
||||||
Reference in New Issue
Block a user