!8 Upgrade to 2.3.1

From: @jxy_git 
Reviewed-by: @wm-wm-wm 
Signed-off-by: @wm-wm-wm
This commit is contained in:
openeuler-ci-bot 2022-07-29 02:32:00 +00:00 committed by Gitee
commit e439c9bd3c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 6 additions and 24 deletions

Binary file not shown.

BIN
python-daemon-2.3.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,20 +0,0 @@
diff --color -Nur python-daemon-2.3.0.orig/test/test_metadata.py python-daemon-2.3.0/test/test_metadata.py
--- python-daemon-2.3.0.orig/test/test_metadata.py 2021-02-20 21:45:31.000000000 -0800
+++ python-daemon-2.3.0/test/test_metadata.py 2021-08-07 14:13:30.307834642 -0700
@@ -28,6 +28,7 @@
import pkg_resources
import testtools.helpers
import testtools.matchers
+import extras
from . import scaffold
from .scaffold import unicode
@@ -44,7 +45,7 @@
def match(self, instance):
""" Assert the object `instance` has an attribute named `name`. """
result = None
- if not testtools.helpers.safe_hasattr(instance, self.attribute_name):
+ if not extras.safe_hasattr(instance, self.attribute_name):
result = AttributeNotFoundMismatch(instance, self.attribute_name)
return result

View File

@ -1,6 +1,6 @@
Name: python-daemon
Version: 2.2.4
Release: 3
Version: 2.3.1
Release: 1
Summary: Library to implement a well-behaved Unix daemon process
License: GPL-3.0-only and Apache-2.0
@ -9,7 +9,6 @@ Source0: https://files.pythonhosted.org/packages/05/97/210f94322675c83831
# Downstream-only patch, twine is unnecessary to build
# https://pagure.io/python-daemon/c/cc9e6a0321a547aacd568aa1e8c7d94a000d5d11
Patch0: remove-twine-dependency.patch
Patch1: python-daemon-safe_hasattr.patch
BuildArch: noarch
BuildRequires: python3-devel, python3-setuptools
@ -52,6 +51,9 @@ PYTHONPATH=$(pwd) %{__python3} -m unittest discover
%{python3_sitelib}/python_daemon-%{version}-py%{python3_version}.egg-info/
%changelog
* Fri Jul 29 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 2.3.1-1
- Update to 2.3.1
* Thu Jul 07 2022 yaoxin <yaoxin30@h-partners.com> - 2.2.4-3
- Resolve the compilation fails, due to python-testtools update to 2.5.0

View File

@ -1,4 +1,4 @@
version_control: pypi
src_repo: daemon
src_repo: python-daemon
tag_prefix: ^v
separator: "."