14
0

- update to 18.9.0:

* Various changes.
- drop use-read_file-not-readfp.patch (upstream)
- Fix URL in spec file: cherrypy.org -> cherrypy.dev
  * Simplify the passthrough of parameters to CPWebCase.getPage to cheroot.
  highly time sensitive.
- minor spec improvement

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CherryPy?expand=0&rev=64
This commit is contained in:
2024-01-14 17:30:00 +00:00
committed by Git OBS Bridge
parent 1e09b6004c
commit 4957f532f5
5 changed files with 16 additions and 41 deletions

View File

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

BIN
CherryPy-18.9.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Jan 14 17:18:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 18.9.0:
* Various changes.
- drop use-read_file-not-readfp.patch (upstream)
-------------------------------------------------------------------
Wed Nov 22 03:23:15 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-CherryPy
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,14 +24,12 @@
%{?sle15_python_module_pythons}
Name: python-CherryPy
Version: 18.8.0
Version: 18.9.0
Release: 0
Summary: Object-Oriented HTTP framework
License: BSD-3-Clause
URL: https://www.cherrypy.dev
Source: https://files.pythonhosted.org/packages/source/C/CherryPy/CherryPy-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/cherrypy/cherrypy/pull/1959
Patch0: use-read_file-not-readfp.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel}

View File

@@ -1,30 +0,0 @@
From d2bc527c12a74675d67ba5fbf9de0d014af929cb Mon Sep 17 00:00:00 2001
From: Dan Radez <dradez@redhat.com>
Date: Tue, 12 Apr 2022 09:40:46 -0400
Subject: [PATCH] Replace readfp with read_file
Getting Deprecation Warning in python 3.11:
DeprecationWarning: This method will be removed in Python 3.12.
Use 'parser.read_file()' instead.
https://github.com/python/cpython/commit/e8659b47dece5a272111c0af5e340c364a9f807b#diff-ca80d44aeeadd5e4966195b99aff106abb3e7b0b5356b7499125ee021bd84777R757
If I'm reading this correct read_file has been around since Python 2.7
https://github.com/python/cpython/commit/a492362f9a2a44e411147fd7b2886466bb0bb17f
---
cherrypy/lib/reprconf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cherrypy/lib/reprconf.py b/cherrypy/lib/reprconf.py
index 76381d7b7..536b94173 100644
--- a/cherrypy/lib/reprconf.py
+++ b/cherrypy/lib/reprconf.py
@@ -188,7 +188,7 @@ def as_dict(self, raw=False, vars=None):
def dict_from_file(self, file):
if hasattr(file, 'read'):
- self.readfp(file)
+ self.read_file(file)
else:
self.read(file)
return self.as_dict()