forked from pool/python-Paste
Compare commits
9 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5a2dcf82c8 | |||
| 09b6293c48 | |||
| fc6a4c89b3 | |||
| f182842cfd | |||
| 488e0bd60d | |||
| bad79e1c9e | |||
| 45536bfbd6 | |||
| 127de413cf | |||
| 514e61ca11 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:556e3c24208fcfae269684fc3b888f46783c80208516bcecc410c00c7f678fef
|
|
||||||
size 637286
|
|
||||||
BIN
paste-3.10.1.tar.gz
LFS
Normal file
BIN
paste-3.10.1.tar.gz
LFS
Normal file
Binary file not shown.
79
paste-pr105-partial-pkg_resources-remove.patch
Normal file
79
paste-pr105-partial-pkg_resources-remove.patch
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
From 54a63ecf15c3deb934dc36f00bed829b9d071c80 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gil Forcada Codinachs <gil.gnome@gmail.com>
|
||||||
|
Date: Mon, 3 Mar 2025 18:07:11 +0100
|
||||||
|
Subject: [PATCH] chore: drop pkg_resources usage
|
||||||
|
|
||||||
|
---
|
||||||
|
paste/util/template.py | 7 ++++---
|
||||||
|
tests/cgiapp_data/form.cgi | 9 ---------
|
||||||
|
2 files changed, 4 insertions(+), 12 deletions(-)
|
||||||
|
|
||||||
|
Index: paste-3.10.1/paste/util/template.py
|
||||||
|
===================================================================
|
||||||
|
--- paste-3.10.1.orig/paste/util/template.py
|
||||||
|
+++ paste-3.10.1/paste/util/template.py
|
||||||
|
@@ -682,12 +682,13 @@ strings.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def fill_command(args=None):
|
||||||
|
- import sys, optparse, pkg_resources, os
|
||||||
|
+ import sys, optparse, os
|
||||||
|
+ from importlib.metadata import distribution
|
||||||
|
if args is None:
|
||||||
|
args = sys.argv[1:]
|
||||||
|
- dist = pkg_resources.get_distribution('Paste')
|
||||||
|
+ dist = distribution('Paste')
|
||||||
|
parser = optparse.OptionParser(
|
||||||
|
- version=str(dist),
|
||||||
|
+ version=dist.version,
|
||||||
|
usage=_fill_command_usage)
|
||||||
|
parser.add_option(
|
||||||
|
'-o', '--output',
|
||||||
|
Index: paste-3.10.1/tests/cgiapp_data/form.cgi
|
||||||
|
===================================================================
|
||||||
|
--- paste-3.10.1.orig/tests/cgiapp_data/form.cgi
|
||||||
|
+++ paste-3.10.1/tests/cgiapp_data/form.cgi
|
||||||
|
@@ -4,20 +4,11 @@ print('Content-type: text/plain')
|
||||||
|
print('')
|
||||||
|
|
||||||
|
import sys
|
||||||
|
-import warnings
|
||||||
|
from os.path import dirname
|
||||||
|
|
||||||
|
base_dir = dirname(dirname(dirname(__file__)))
|
||||||
|
sys.path.insert(0, base_dir)
|
||||||
|
|
||||||
|
-with warnings.catch_warnings():
|
||||||
|
- warnings.simplefilter("ignore", category=DeprecationWarning)
|
||||||
|
- try:
|
||||||
|
- import pkg_resources
|
||||||
|
- except ImportError:
|
||||||
|
- # Ignore
|
||||||
|
- pass
|
||||||
|
-
|
||||||
|
from paste.util.field_storage import FieldStorage
|
||||||
|
|
||||||
|
class FormFieldStorage(FieldStorage):
|
||||||
|
Index: paste-3.10.1/tests/__init__.py
|
||||||
|
===================================================================
|
||||||
|
--- paste-3.10.1.orig/tests/__init__.py
|
||||||
|
+++ paste-3.10.1/tests/__init__.py
|
||||||
|
@@ -3,5 +3,3 @@ import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
||||||
|
-
|
||||||
|
-import pkg_resources
|
||||||
|
Index: paste-3.10.1/paste/__init__.py
|
||||||
|
===================================================================
|
||||||
|
--- paste-3.10.1.orig/paste/__init__.py
|
||||||
|
+++ paste-3.10.1/paste/__init__.py
|
||||||
|
@@ -5,7 +5,7 @@ import warnings
|
||||||
|
|
||||||
|
try:
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
- warnings.simplefilter("ignore", category=DeprecationWarning)
|
||||||
|
+ warnings.simplefilter("ignore")
|
||||||
|
import pkg_resources
|
||||||
|
pkg_resources.declare_namespace(__name__)
|
||||||
|
except (AttributeError, ImportError):
|
||||||
@@ -1,3 +1,37 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 2 12:02:51 UTC 2026 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Add paste-pr105-partial-pkg_resources-remove.patch
|
||||||
|
* gh#pasteorg/paste#105
|
||||||
|
* Also remove from tests/__init__.py
|
||||||
|
* Ignore any warning from paste/__init__.py
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 1 12:32:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Make the dist-info name case-insensitive
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 25 03:51:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Lowercase metadata directory name.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 29 10:49:09 UTC 2024 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- python-six is not required
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 29 14:43:27 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.10.1
|
||||||
|
* Correct packaging and testing when not in a clean virtualenv
|
||||||
|
- from version 3.10.0
|
||||||
|
* Move development to https://github.com/pasteorg/paste
|
||||||
|
* Vendor cgi.FieldStorage and cgitb.Hook
|
||||||
|
* More cleaning of Python 2 style code.
|
||||||
|
- Adjust upstream source name in spec file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 15 06:11:49 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Mon Apr 15 06:11:49 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Paste
|
# spec file for package python-Paste
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2026 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -18,22 +18,22 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-Paste
|
Name: python-Paste
|
||||||
Version: 3.9.0
|
Version: 3.10.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tools for using a Web Server Gateway Interface stack
|
Summary: Tools for using a Web Server Gateway Interface stack
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/cdent/paste
|
URL: https://github.com/cdent/paste
|
||||||
Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/paste/paste-%{version}.tar.gz
|
||||||
Patch0: test_modified-fixup.patch
|
Patch0: test_modified-fixup.patch
|
||||||
|
# PATCH-FIX-UPSTREAM paste-pr105-partial-pkg_resources-remove.patch gh#pasteorg/paste#105 gh#pasteorg/paste#107
|
||||||
|
Patch1: paste-pr105-partial-pkg_resources-remove.patch
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six > 1.4.0}
|
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-six > 1.4.0
|
|
||||||
Suggests: python-flup
|
Suggests: python-flup
|
||||||
Suggests: python-python3-openid
|
Suggests: python-python3-openid
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -46,8 +46,7 @@ interface, and should be compatible with other middleware based on those
|
|||||||
interfaces.
|
interfaces.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n Paste-%{version}
|
%autosetup -p1 -n paste-%{version}
|
||||||
sed -i '/pytest-runner/d' setup.py
|
|
||||||
# remove test requiring internet access
|
# remove test requiring internet access
|
||||||
rm tests/test_proxy.py
|
rm tests/test_proxy.py
|
||||||
|
|
||||||
@@ -65,7 +64,7 @@ rm tests/test_proxy.py
|
|||||||
%license docs/license.txt
|
%license docs/license.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/paste
|
%{python_sitelib}/paste
|
||||||
%{python_sitelib}/Paste-%{version}.dist-info
|
%{python_sitelib}/[pP]aste-%{version}.dist-info
|
||||||
%{python_sitelib}/Paste-%{version}-py*-nspkg.pth
|
%{python_sitelib}/Paste-%{version}-py*-nspkg.pth
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user