From 43e85f62cfc291a4c5a460f628a0a55a88e140bb0374e7ca6b90c9b34399b242 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 15 Dec 2023 21:31:29 +0000 Subject: [PATCH] - update to 3.0.1: * Declare dependency on Setuptools >= 62.4.0. * Refactor calculation of file descriptor ranges to close. * When the range of candidate file descriptors is very large, the code that computes file descriptors to close when the daemon starts attempted to allocate a large amount of memory and took a long time to compute. * Document a `ServiceRunner` class as an example of using `DaemonContext`. * Raise a TypeError if any `exclude` values are not valid file descriptors. * Remove the obsolete `runner` module. This module was deprecated starting in `python-daemon` version 2.1.2, and is now removed as unmaintained. - Update to 2.3.2 - Skip broken test - BuildRequire lowercase python-minimock - Add Provides for the old python-daemon name OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=42 --- python-daemon-2.3.2.tar.gz | 3 --- python-daemon-3.0.1.tar.gz | 3 +++ python-python-daemon.changes | 28 +++++++++++++++++++++++----- python-python-daemon.spec | 25 ++++++++++++++----------- 4 files changed, 40 insertions(+), 19 deletions(-) delete mode 100644 python-daemon-2.3.2.tar.gz create mode 100644 python-daemon-3.0.1.tar.gz diff --git a/python-daemon-2.3.2.tar.gz b/python-daemon-2.3.2.tar.gz deleted file mode 100644 index 741506e..0000000 --- a/python-daemon-2.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3deeb808e72b6b89f98611889e11cc33754f5b2c1517ecfa1aaf25f402051fb5 -size 83127 diff --git a/python-daemon-3.0.1.tar.gz b/python-daemon-3.0.1.tar.gz new file mode 100644 index 0000000..2a7a672 --- /dev/null +++ b/python-daemon-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5 +size 81337 diff --git a/python-python-daemon.changes b/python-python-daemon.changes index 6f5fc46..a61675f 100644 --- a/python-python-daemon.changes +++ b/python-python-daemon.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Fri Dec 15 21:27:04 UTC 2023 - Dirk Müller + +- update to 3.0.1: + * Declare dependency on Setuptools >= 62.4.0. + * Refactor calculation of file descriptor ranges to close. + * When the range of candidate file descriptors is very large, + the code that computes file descriptors to close when the + daemon starts attempted to allocate a large amount of memory + and took a long time to compute. + * Document a `ServiceRunner` class as an example of using + `DaemonContext`. + * Raise a TypeError if any `exclude` values are not valid file + descriptors. + * Remove the obsolete `runner` module. + This module was deprecated starting in `python-daemon` + version 2.1.2, and is now removed as unmaintained. + ------------------------------------------------------------------- Fri May 5 11:05:56 UTC 2023 - Johannes Kastl @@ -6,7 +24,7 @@ Fri May 5 11:05:56 UTC 2023 - Johannes Kastl ------------------------------------------------------------------- Fri Oct 28 20:27:24 UTC 2022 - Yogalakshmi Arunachalam -- Update to 2.3.2 +- Update to 2.3.2 Bugs Fixed: * Declare Twine as a development dependency (not a build dependency). Closes: Pagure #55. Thanks to Jason Andryuk for the report. @@ -84,7 +102,7 @@ Fri Feb 28 21:41:00 UTC 2020 - Dirk Mueller ------------------------------------------------------------------- Tue May 14 20:34:45 UTC 2019 - Jonathan -- Skip broken test +- Skip broken test ------------------------------------------------------------------- Wed Apr 24 11:01:35 CEST 2019 - Matej Cepl @@ -172,7 +190,7 @@ Thu Sep 3 14:17:06 UTC 2015 - toddrme2178@gmail.com * Specify development status Production/Stable in Trove classifiers. * Migrate to mock version 1.3 with corresponding API changes. * Use current Python concept of basestring to test for an attribute name. - + ------------------------------------------------------------------- Tue May 26 12:22:44 UTC 2015 - jkeil@suse.com @@ -294,7 +312,7 @@ Fri Nov 23 14:03:24 UTC 2012 - saschpe@suse.de ------------------------------------------------------------------- Wed Apr 18 09:00:59 UTC 2012 - bwiedemann@suse.com -- BuildRequire lowercase python-minimock +- BuildRequire lowercase python-minimock - to also work with the existing 11.4 package ------------------------------------------------------------------- @@ -307,7 +325,7 @@ Thu Jan 5 13:25:37 UTC 2012 - jmatejek@suse.com ------------------------------------------------------------------- Thu Nov 24 13:21:10 UTC 2011 - idoenmez@suse.de -- Add Provides for the old python-daemon name +- Add Provides for the old python-daemon name ------------------------------------------------------------------- Tue Sep 20 14:54:32 UTC 2011 - saschpe@suse.de diff --git a/python-python-daemon.spec b/python-python-daemon.spec index f06b6e4..d159056 100644 --- a/python-python-daemon.spec +++ b/python-python-daemon.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-python-daemon -Version: 2.3.2 +Version: 3.0.1 Release: 0 Summary: Library to implement a well-behaved Unix daemon process License: Apache-2.0 AND GPL-3.0-only @@ -28,23 +28,25 @@ Source: https://files.pythonhosted.org/packages/source/p/python-daemon/p BuildRequires: %{python_module docutils} BuildRequires: %{python_module importlib_resources} BuildRequires: %{python_module lockfile >= 0.10} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} BuildRequires: %{python_module testscenarios >= 0.4} BuildRequires: %{python_module testtools} -BuildRequires: %{python_module twine} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-lockfile >= 0.10 +Requires: python-setuptools >= 62.4.0 BuildArch: noarch %python_subpackages %description -This library implements the well-behaved daemon specification of PEP 3143, "Standard daemon -process library". +This library implements the well-behaved daemon specification of PEP 3143, +"Standard daemon process library". -A well-behaved Unix daemon process is tricky to get right, but the required steps are much the -same for every daemon program. A DaemonContext instance holds the behaviour and configured -process environment for the program; use the instance as a context manager to enter a daemon state. +A well-behaved Unix daemon process is tricky to get right, but the required +steps are much the same for every daemon program. A DaemonContext instance +holds the behaviour and configured process environment for the program; use the +instance as a context manager to enter a daemon state. %prep %autosetup -p1 -n python-daemon-%{version} @@ -52,10 +54,10 @@ process environment for the program; use the instance as a context manager to en sed -i '/docutils/d' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -64,6 +66,7 @@ sed -i '/docutils/d' setup.py %files %{python_files} %license LICENSE.ASF-2 LICENSE.GPL-3 %doc README ChangeLog doc/* -%{python_sitelib}/* +%{python_sitelib}/daemon +%{python_sitelib}/python_daemon-%{version}.dist-info %changelog