7 Commits

Author SHA256 Message Date
148b20782f Accepting request 1266135 from devel:languages:python
- Make the dist-info name case-insensitive

- Lowercase metadata directory name.

OBS-URL: https://build.opensuse.org/request/show/1266135
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Paste?expand=0&rev=43
2025-04-11 14:44:56 +00:00
fb11f4db16 - Make the dist-info name case-insensitive
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=77
2025-04-01 12:32:37 +00:00
7d4ae2af8c - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=76
2025-03-25 03:51:31 +00:00
8d92bc4a2e Accepting request 1197440 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1197440
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Paste?expand=0&rev=42
2024-08-30 11:29:26 +00:00
43f5bce1b9 Accepting request 1197408 from home:pgajdos:python
- python-six is not required

OBS-URL: https://build.opensuse.org/request/show/1197408
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=74
2024-08-29 12:39:42 +00:00
9cfcae683c Accepting request 1190304 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1190304
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Paste?expand=0&rev=41
2024-07-31 11:28:23 +00:00
07ed7d8a70 Accepting request 1190284 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1190284
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=72
2024-07-29 17:00:57 +00:00
3 changed files with 1 additions and 90 deletions

View File

@@ -1,79 +0,0 @@
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):

View File

@@ -1,11 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Paste
#
# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,8 +25,6 @@ License: MIT
URL: https://github.com/cdent/paste
Source: https://files.pythonhosted.org/packages/source/p/paste/paste-%{version}.tar.gz
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 pytest}
BuildRequires: %{python_module setuptools}