From ef2de3debc232dc701893a5ea9aff631b838431ae0860f15355652bedc6d89f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 21 Jun 2019 11:28:33 +0000 Subject: [PATCH] Accepting request 711286 from home:pgajdos - version update to 1.10.4 Bugs fixed during 1.10 ---------------------- - Fix performance regression in ``pyramid.view.view_config`` decorator. See https://github.com/Pylons/pyramid/pull/3490 - Add ``ignore_files`` option to ``[pserve]`` settings which will tell ``pserve`` to ignore certain files/globs when using ``--reload``. See https://github.com/Pylons/pyramid/pull/3464 - Fix docs build for Sphinx 2.0. See https://github.com/Pylons/pyramid/pull/3481 - Improve debugging info from ``pyramid.view.view_config`` decorator. See https://github.com/Pylons/pyramid/pull/3485 - Fix a bug in ``pyramid.testing.DummySecurityPolicy`` in which ``principals_allowed_by_permission`` would return all principals instead of an empty list if ``permissive`` is ``False``. See https://github.com/Pylons/pyramid/pull/3450 - Fix a bug in which ``pyramid.exceptions.ConfigurationConflictError`` may not render the appropriate error message on certain conflicts that were not sortable on Python 3 due to differing types. See https://github.com/Pylons/pyramid/pull/3457 - Avoid configuring logging in the monitor process using the logging config intended for the application. This avoids opening files for writing in both processes which can cause issues on some systems. See https://github.com/Pylons/pyramid/pull/3460 - Fix an issue when passing a duck-typed registry object into ``pyramid.testing.setUp(registry=...)`` in which the registry wasn't properly fixed prior to invoking actions. See https://github.com/Pylons/pyramid/pull/3418 - Fix the ``pyramid.testing.DummyRequest`` to support the new ``request.accept`` API so that ``acceptable_offers`` is available even OBS-URL: https://build.opensuse.org/request/show/711286 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid?expand=0&rev=33 --- pyramid-1.10.4.tar.gz | 3 + pyramid-1.9.1.tar.gz | 3 - python-pyramid.changes | 176 +++++++++++++++++++++++++++++++++++++++++ python-pyramid.spec | 16 ++-- 4 files changed, 187 insertions(+), 11 deletions(-) create mode 100644 pyramid-1.10.4.tar.gz delete mode 100644 pyramid-1.9.1.tar.gz diff --git a/pyramid-1.10.4.tar.gz b/pyramid-1.10.4.tar.gz new file mode 100644 index 0000000..def6902 --- /dev/null +++ b/pyramid-1.10.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d80ccb8cfa550139b50801591d4ca8a5575334adb493c402fce2312f55d07d66 +size 2677952 diff --git a/pyramid-1.9.1.tar.gz b/pyramid-1.9.1.tar.gz deleted file mode 100644 index e4c18cb..0000000 --- a/pyramid-1.9.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:840f4bbd5994609340de35079da0d1dd94f79942e27818d5d8566f8009fb0b36 -size 2634907 diff --git a/python-pyramid.changes b/python-pyramid.changes index 7506974..b1789b9 100644 --- a/python-pyramid.changes +++ b/python-pyramid.changes @@ -1,3 +1,179 @@ +------------------------------------------------------------------- +Fri Jun 21 08:13:38 UTC 2019 - pgajdos@suse.com + +- version update to 1.10.4 + Bugs fixed during 1.10 + ---------------------- + - Fix performance regression in ``pyramid.view.view_config`` decorator. + See https://github.com/Pylons/pyramid/pull/3490 + - Add ``ignore_files`` option to ``[pserve]`` settings which will tell + ``pserve`` to ignore certain files/globs when using ``--reload``. + See https://github.com/Pylons/pyramid/pull/3464 + - Fix docs build for Sphinx 2.0. + See https://github.com/Pylons/pyramid/pull/3481 + - Improve debugging info from ``pyramid.view.view_config`` decorator. + See https://github.com/Pylons/pyramid/pull/3485 + - Fix a bug in ``pyramid.testing.DummySecurityPolicy`` in which + ``principals_allowed_by_permission`` would return all principals instead + of an empty list if ``permissive`` is ``False``. + See https://github.com/Pylons/pyramid/pull/3450 + - Fix a bug in which ``pyramid.exceptions.ConfigurationConflictError`` may + not render the appropriate error message on certain conflicts that were + not sortable on Python 3 due to differing types. + See https://github.com/Pylons/pyramid/pull/3457 + - Avoid configuring logging in the monitor process using the logging config + intended for the application. This avoids opening files for writing in both + processes which can cause issues on some systems. + See https://github.com/Pylons/pyramid/pull/3460 + - Fix an issue when passing a duck-typed registry object into + ``pyramid.testing.setUp(registry=...)`` in which the registry wasn't + properly fixed prior to invoking actions. + See https://github.com/Pylons/pyramid/pull/3418 + - Fix the ``pyramid.testing.DummyRequest`` to support the new + ``request.accept`` API so that ``acceptable_offers`` is available even + when code sets the value to a string. + See https://github.com/Pylons/pyramid/pull/3396 + - Fix deprecated escape sequences in preparation for Python 3.8. + See https://github.com/Pylons/pyramid/pull/3400 + Features in 1.10 + ---------------- + - Add a ``_depth`` and ``_category`` arguments to all of the venusian + decorators. The ``_category`` argument can be used to affect which actions + are registered when performing a ``config.scan(..., category=...)`` with a + specific category. The ``_depth`` argument should be used when wrapping + the decorator in your own. This change affects ``pyramid.view.view_config``, + ``pyramid.view.exception_view_config``, + ``pyramid.view.forbidden_view_config``, ``pyramid.view.notfound_view_config``, + ``pyramid.events.subscriber`` and ``pyramid.response.response_adapter`` + decorators. See https://github.com/Pylons/pyramid/pull/3105 and + https://github.com/Pylons/pyramid/pull/3122 + - Fix the ``pyramid.request.Request`` class name after using + ``set_property`` or ``config.add_request_method`` such that the + ``str(request.__class__)`` would appear as ``pyramid.request.Request`` + instead of ``pyramid.util.Request``. + See https://github.com/Pylons/pyramid/pull/3129 + - In ``cherrypy_server_runner``, prefer imports from the ``cheroot`` package + over the legacy imports from `cherrypy.wsgiserver`. + See https://github.com/Pylons/pyramid/pull/3235 + - Add a context manager ``route_prefix_context`` to the + ``pyramid.config.Configurator`` to allow for convenient setting of the + route_prefix for ``include`` and ``add_route`` calls inside the context. + See https://github.com/Pylons/pyramid/pull/3279 + - Modify the builtin session implementations to support ``SameSite`` options + on cookies and set the default to ``'Lax'``. This affects + ``pyramid.session.BaseCookieSessionFactory``, + ``pyramid.session.SignedCookieSessionFactory``, and + ``pyramid.session.UnencryptedCookieSessionFactoryConfig``. + See https://github.com/Pylons/pyramid/pull/3300 + - Modify ``pyramid.authentication.AuthTktAuthenticationPolicy`` and + ``pyramid.csrf.CookieCSRFStoragePolicy`` to support the ``SameSite`` option + on cookies and set the default to ``'Lax'``. + See https://github.com/Pylons/pyramid/pull/3319 + - Added new ``pyramid.httpexceptions.HTTPPermanentRedirect`` + exception/response object for a HTTP 308 redirect. + See https://github.com/Pylons/pyramid/pull/3302 + - Within ``pshell``, allow the user-defined ``setup`` function to be a + generator, in which case it may wrap the command's lifecycle. + See https://github.com/Pylons/pyramid/pull/3318 + - Within ``pshell``, variables defined by the ``[pshell]`` settings are + available within the user-defined ``setup`` function. + See https://github.com/Pylons/pyramid/pull/3318 + - Add support for Python 3.7. Add testing on Python 3.8 with allowed failures. + See https://github.com/Pylons/pyramid/pull/3333 + - Added the ``pyramid.config.Configurator.add_accept_view_order`` directive, + allowing users to specify media type preferences in ambiguous situations + such as when several views match. A default ordering is defined for media + types that prefers human-readable html/text responses over JSON. + See https://github.com/Pylons/pyramid/pull/3326 + - Support a list of media types in the ``accept`` predicate used in + ``pyramid.config.Configurator.add_route``. + See https://github.com/Pylons/pyramid/pull/3326 + - Added ``pyramid.session.JSONSerializer``. See "Upcoming Changes to ISession + in Pyramid 2.0" in the "Sessions" chapter of the documentation for more + information about this feature. + See https://github.com/Pylons/pyramid/pull/3353 + - Add a ``registry`` argument to ``pyramid.renderers.get_renderer`` + to allow users to avoid threadlocals during renderer lookup. + See https://github.com/Pylons/pyramid/pull/3358 + - Pyramid's test suite is no longer distributed with the universal wheel. + See https://github.com/Pylons/pyramid/pull/3387 + - All Python code is now formatted automatically using ``black``. + See https://github.com/Pylons/pyramid/pull/3388 + Deprecations + ------------ + - The ``pyramid.intefaces.ISession`` interface will move to require + JSON-serializable objects in Pyramid 2.0. See + "Upcoming Changes to ISession in Pyramid 2.0" in the "Sessions" chapter + of the documentation for more information about this change. + See https://github.com/Pylons/pyramid/pull/3353 + - The ``pyramid.session.signed_serialize`` and + ``pyramid.session.signed_deserialize`` functions will be removed in Pyramid + 2.0, along with the removal of + ``pyramid.session.UnencryptedCookieSessionFactoryConfig`` which was + deprecated in Pyramid 1.5. Please switch to using the + ``SignedCookieSessionFactory``, copying the code, or another session + implementation if you're still using these features. + See https://github.com/Pylons/pyramid/pull/3353 + - Media ranges are deprecated in the ``accept`` argument of + ``pyramid.config.Configurator.add_route``. Use a list of explicit + media types to ``add_route`` to support multiple types. + - Media ranges are deprecated in the ``accept`` argument of + ``pyramid.config.Configurator.add_view``. There is no replacement for + ranges to ``add_view``, but after much discussion the workflow is + fundamentally ambiguous in the face of various client-supplied values for + the ``Accept`` header. + See https://github.com/Pylons/pyramid/pull/3326 + Bug Fixes in 1.10 + ----------------- + - Set appropriate ``code`` and ``title`` attributes on the ``HTTPClientError`` + and ``HTTPServerError`` exception classes. This prevents inadvertently + returning a 520 error code. + See https://github.com/Pylons/pyramid/pull/3280 + - Replace ``webob.acceptparse.MIMEAccept`` from WebOb with + ``webob.acceptparse.create_accept_header`` in the HTTP exception handling + code. The old ``MIMEAccept`` has been deprecated. The new methods follow the + RFC's more closely. See https://github.com/Pylons/pyramid/pull/3251 + - Catch extra errors like ``AttributeError`` when unpickling "trusted" + session cookies with bad pickle data in them. This would occur when sharing + a secret between projects that shouldn't actually share session cookies, + like when reusing secrets between projects in development. + See https://github.com/Pylons/pyramid/pull/3325 + Backward Incompatibilities in 1.10 + ---------------------------------- + - On Python 3.4+ the ``repoze.lru`` dependency is dropped. If you were using + this package directly in your apps you should make sure that you are + depending on it directly within your project. + See https://github.com/Pylons/pyramid/pull/3140 + - Remove the ``permission`` argument from + ``pyramid.config.Configurator.add_route``. This was an argument left over + from a feature removed in Pyramid 1.5 and has had no effect since then. + See https://github.com/Pylons/pyramid/pull/3299 + - Modify the builtin session implementations to set ``SameSite='Lax'`` on + cookies. This affects ``pyramid.session.BaseCookieSessionFactory``, + ``pyramid.session.SignedCookieSessionFactory``, and + ``pyramid.session.UnencryptedCookieSessionFactoryConfig``. + See https://github.com/Pylons/pyramid/pull/3300 + - Variables defined in the ``[pshell]`` section of the settings will no + longer override those set by the ``setup`` function. + See https://github.com/Pylons/pyramid/pull/3318 + - ``pyramid.config.Configurator.add_notfound_view`` uses default redirect + class exception ``pyramid.httpexceptions.HTTPTemporaryRedirect`` instead + of previous ``pyramid.httpexceptions.HTTPFound``. + See https://github.com/Pylons/pyramid/pull/3328 + - Removed ``pyramid.config.Configurator.set_request_property`` which had been + deprecated since Pyramid 1.5. Instead use + ``pyramid.config.Configurator.add_request_method`` with ``reify=True`` or + ``property=True``. + See https://github.com/Pylons/pyramid/pull/3368 + - Removed the ``principal`` keyword argument from + ``pyramid.security.remember`` which had been deprecated since Pyramid 1.6 + and replaced by the ``userid`` argument. + See https://github.com/Pylons/pyramid/pull/3369 + - Removed the ``pyramid.tests`` subpackage that used to contain the Pyramid + test suite. These changes also changed the format of the repository to move + the code into a ``src`` folder. + See https://github.com/Pylons/pyramid/pull/3387 + ------------------------------------------------------------------- Mon Oct 9 21:37:19 UTC 2017 - hpj@urpla.net diff --git a/python-pyramid.spec b/python-pyramid.spec index 59d7ea0..3b825e4 100644 --- a/python-pyramid.spec +++ b/python-pyramid.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyramid # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2014-2017 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -13,17 +13,17 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-pyramid -Version: 1.9.1 +Version: 1.10.4 Release: 0 Summary: The Pyramid web application development framework -License: BSD-4-Clause and ZPL-2.1 and MIT +License: BSD-4-Clause AND ZPL-2.1 AND MIT Group: Development/Languages/Python Url: http://pylonsproject.org Source0: https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-%{version}.tar.gz @@ -52,6 +52,7 @@ Requires: python-hupper Requires: python-plaster Requires: python-plaster-pastedeploy Requires: python-repoze.lru >= 0.4 +Requires: python-setuptools Requires: python-translationstring >= 0.4 Requires: python-venusian >= 1.0 Requires: python-zope.deprecation >= 3.5.0 @@ -72,9 +73,6 @@ It was previously known as repoze.bfg (http://bfg.repoze.org). %prep %setup -q -n pyramid-%{version} -# fix inconsistent mtime error -touch -r pyramid/__init__.py pyramid/scaffolds/alchemy/+package+/scripts/__init__.py \ - pyramid/scripts/__init__.py %build %python_build @@ -93,7 +91,9 @@ done %if %{with test} %check export LANG=en_US.UTF-8 -%python_exec setup.py nosetests --with-coverage -vvv +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} + $python setup.py nosetests --with-coverage -vvv +} %endif %post