Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Paste for openSUSE:Factory checked in at 2023-08-30 10:19:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Paste (Old) and /work/SRC/openSUSE:Factory/.python-Paste.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Paste" Wed Aug 30 10:19:13 2023 rev:37 rq:1106211 version:3.5.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Paste/python-Paste.changes 2023-05-10 16:17:21.506560848 +0200 +++ /work/SRC/openSUSE:Factory/.python-Paste.new.1766/python-Paste.changes 2023-08-30 10:21:36.078542268 +0200 @@ -1,0 +2,10 @@ +Mon Aug 28 04:41:38 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 3.5.3: + * Use importlib instead of imp with Python 3. +- Drop patch support-python-311.patch, something similar now included + upstream. +- Switch to pyproject macros. +- Stop using greedy globs in %files. + +------------------------------------------------------------------- Old: ---- Paste-3.5.2.tar.gz support-python-311.patch New: ---- Paste-3.5.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Paste.spec ++++++ --- /var/tmp/diff_new_pack.pdcKrR/_old 2023-08-30 10:21:37.186581818 +0200 +++ /var/tmp/diff_new_pack.pdcKrR/_new 2023-08-30 10:21:37.190581961 +0200 @@ -18,19 +18,21 @@ %{?sle15_python_module_pythons} Name: python-Paste -Version: 3.5.2 +Version: 3.5.3 Release: 0 Summary: Tools for using a Web Server Gateway Interface stack 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 -Patch1: support-python-311.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six > 1.4.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-setuptools Requires: python-six > 1.4.0 Suggests: python-flup Suggests: python-python3-openid @@ -50,10 +52,10 @@ rm tests/test_proxy.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -62,6 +64,8 @@ %files %{python_files} %license docs/license.txt %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/paste +%{python_sitelib}/Paste-%{version}.dist-info +%{python_sitelib}/Paste-%{version}-py*-nspkg.pth %changelog ++++++ Paste-3.5.2.tar.gz -> Paste-3.5.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/PKG-INFO new/Paste-3.5.3/PKG-INFO --- old/Paste-3.5.2/PKG-INFO 2022-08-18 22:37:49.158880700 +0200 +++ new/Paste-3.5.3/PKG-INFO 2023-04-30 13:41:24.440674300 +0200 @@ -1,11 +1,14 @@ Metadata-Version: 2.1 Name: Paste -Version: 3.5.2 +Version: 3.5.3 Summary: Tools for using a Web Server Gateway Interface stack Home-page: https://pythonpaste.readthedocs.io/ Author: Chris Dent Author-email: chris.d...@gmail.com License: MIT +Project-URL: Source, https://github.com/cdent/paste +Project-URL: Bug Tracker, https://github.com/cdent/paste/issues +Project-URL: Documentation, https://pythonpaste.readthedocs.io Keywords: web application server wsgi Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/Paste.egg-info/PKG-INFO new/Paste-3.5.3/Paste.egg-info/PKG-INFO --- old/Paste-3.5.2/Paste.egg-info/PKG-INFO 2022-08-18 22:37:48.000000000 +0200 +++ new/Paste-3.5.3/Paste.egg-info/PKG-INFO 2023-04-30 13:41:24.000000000 +0200 @@ -1,11 +1,14 @@ Metadata-Version: 2.1 Name: Paste -Version: 3.5.2 +Version: 3.5.3 Summary: Tools for using a Web Server Gateway Interface stack Home-page: https://pythonpaste.readthedocs.io/ Author: Chris Dent Author-email: chris.d...@gmail.com License: MIT +Project-URL: Source, https://github.com/cdent/paste +Project-URL: Bug Tracker, https://github.com/cdent/paste/issues +Project-URL: Documentation, https://pythonpaste.readthedocs.io Keywords: web application server wsgi Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/docs/news.txt new/Paste-3.5.3/docs/news.txt --- old/Paste-3.5.2/docs/news.txt 2022-08-18 22:34:45.000000000 +0200 +++ new/Paste-3.5.3/docs/news.txt 2023-04-30 13:36:33.000000000 +0200 @@ -3,6 +3,12 @@ .. contents:: +3.5.3 +----- + +* Use importlib instead of imp with Python 3. + + 3.5.2 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/paste/urlparser.py new/Paste-3.5.3/paste/urlparser.py --- old/Paste-3.5.2/paste/urlparser.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.3/paste/urlparser.py 2023-04-30 13:31:00.000000000 +0200 @@ -7,7 +7,12 @@ import os import six import sys -import imp + +if six.PY2: + import imp +else: + import importlib.util as imputil + import mimetypes try: import pkg_resources @@ -376,7 +381,6 @@ return None f.write('#\n') f.close() - fp = None if module_name in sys.modules: return sys.modules[module_name] if '.' in module_name: @@ -386,14 +390,25 @@ parent_name, errors) else: base_name = module_name - fp = None - try: - fp, pathname, stuff = imp.find_module( - base_name, [os.path.dirname(filename)]) - module = imp.load_module(module_name, fp, pathname, stuff) - finally: - if fp is not None: - fp.close() + module = None + + if six.PY2: + fp = None + try: + fp, pathname, stuff = imp.find_module( + base_name, [os.path.dirname(filename)]) + module = imp.load_module(module_name, fp, pathname, stuff) + finally: + if fp is not None: + fp.close() + else: + # imp is deprecated and will be removed in Python 3.12 + spec = imputil.spec_from_file_location(base_name, filename) + if spec is not None: + module = imputil.module_from_spec(spec) + sys.modules[base_name] = module + spec.loader.exec_module(module) + return module def make_py(parser, environ, filename): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/setup.py new/Paste-3.5.3/setup.py --- old/Paste-3.5.2/setup.py 2022-08-18 22:33:28.000000000 +0200 +++ new/Paste-3.5.3/setup.py 2023-04-30 13:37:30.000000000 +0200 @@ -12,7 +12,7 @@ # - git push # - python setup.py sdist bdist_wheel upload --sign -__version__ = '3.5.2' +__version__ = '3.5.3' from setuptools import setup, find_packages import sys, os @@ -46,6 +46,11 @@ author="Chris Dent", author_email="chris.d...@gmail.com", url="https://pythonpaste.readthedocs.io/", + project_urls={ + "Source": "https://github.com/cdent/paste", + "Bug Tracker": "https://github.com/cdent/paste/issues", + "Documentation": "https://pythonpaste.readthedocs.io" + }, license="MIT", packages=find_packages(exclude=['ez_setup', 'examples', 'packages', 'tests*']), package_data=finddata.find_package_data( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/tests/cgiapp_data/form.cgi new/Paste-3.5.3/tests/cgiapp_data/form.cgi --- old/Paste-3.5.2/tests/cgiapp_data/form.cgi 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.3/tests/cgiapp_data/form.cgi 2023-04-30 13:31:00.000000000 +0200 @@ -2,13 +2,20 @@ from __future__ import print_function +import sys + +# Quiet warnings in this CGI so that it does not upset tests. +if not sys.warnoptions: + import warnings + warnings.simplefilter("ignore") + +# TODO: cgi is deprecated and will go away in Python 3.13. import cgi -import six print('Content-type: text/plain') print('') -if six.PY3: +if sys.version_info.major >= 3: # Python 3: cgi.FieldStorage keeps some field names as unicode and some as # the repr() of byte strings, duh. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/tests/test_grantip.py new/Paste-3.5.3/tests/test_grantip.py --- old/Paste-3.5.2/tests/test_grantip.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.3/tests/test_grantip.py 2023-04-30 13:31:00.000000000 +0200 @@ -1,7 +1,7 @@ from paste.auth import grantip from paste.fixture import * -def test_make_app(): +def _make_app(): def application(environ, start_response): start_response('200 OK', [('content-type', 'text/plain')]) lines = [ @@ -23,7 +23,7 @@ return app def test_req(): - app = test_make_app() + app = _make_app() def doit(remote_addr): res = app.get('/', extra_environ={'REMOTE_ADDR': remote_addr}) return res.body diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Paste-3.5.2/tests/test_proxy.py new/Paste-3.5.3/tests/test_proxy.py --- old/Paste-3.5.2/tests/test_proxy.py 2020-01-26 16:30:37.000000000 +0100 +++ new/Paste-3.5.3/tests/test_proxy.py 2023-04-30 13:31:00.000000000 +0200 @@ -1,6 +1,11 @@ +import pytest + from paste import proxy from paste.fixture import TestApp +# TODO: Skipping this for now as it is unreliable. Ideally we'd run something +# locally and not have to rely on external stuff. +@pytest.mark.skip(reason="httpbin.org is too slow these days") def test_proxy_to_website(): # Not the most robust test... # need to test things like POSTing to pages, and getting from pages