14
0

- 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
This commit is contained in:
2023-12-15 21:31:29 +00:00
committed by Git OBS Bridge
parent d6618caed8
commit 43e85f62cf
4 changed files with 40 additions and 19 deletions

View File

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

View File

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

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Fri Dec 15 21:27:04 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <kastl@b1-systems.de> Fri May 5 11:05:56 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>

View File

@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-python-daemon Name: python-python-daemon
Version: 2.3.2 Version: 3.0.1
Release: 0 Release: 0
Summary: Library to implement a well-behaved Unix daemon process Summary: Library to implement a well-behaved Unix daemon process
License: Apache-2.0 AND GPL-3.0-only 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 docutils}
BuildRequires: %{python_module importlib_resources} BuildRequires: %{python_module importlib_resources}
BuildRequires: %{python_module lockfile >= 0.10} BuildRequires: %{python_module lockfile >= 0.10}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pip}
BuildRequires: %{python_module testscenarios >= 0.4} BuildRequires: %{python_module testscenarios >= 0.4}
BuildRequires: %{python_module testtools} BuildRequires: %{python_module testtools}
BuildRequires: %{python_module twine} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-lockfile >= 0.10 Requires: python-lockfile >= 0.10
Requires: python-setuptools >= 62.4.0
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
This library implements the well-behaved daemon specification of PEP 3143, "Standard daemon This library implements the well-behaved daemon specification of PEP 3143,
process library". "Standard daemon process library".
A well-behaved Unix daemon process is tricky to get right, but the required steps are much the A well-behaved Unix daemon process is tricky to get right, but the required
same for every daemon program. A DaemonContext instance holds the behaviour and configured steps are much the same for every daemon program. A DaemonContext instance
process environment for the program; use the instance as a context manager to enter a daemon state. holds the behaviour and configured process environment for the program; use the
instance as a context manager to enter a daemon state.
%prep %prep
%autosetup -p1 -n python-daemon-%{version} %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 sed -i '/docutils/d' setup.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -64,6 +66,7 @@ sed -i '/docutils/d' setup.py
%files %{python_files} %files %{python_files}
%license LICENSE.ASF-2 LICENSE.GPL-3 %license LICENSE.ASF-2 LICENSE.GPL-3
%doc README ChangeLog doc/* %doc README ChangeLog doc/*
%{python_sitelib}/* %{python_sitelib}/daemon
%{python_sitelib}/python_daemon-%{version}.dist-info
%changelog %changelog