14
0
Files
python-pyramid/python-pyramid.spec

122 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pyramid
#
- update to 2.0.2: * Removed support for null-bytes in the path when making a request for a file * Backward Incompatibilities - Requests to a static_view are no longer allowed to contain a null-byte in any usage to .daemon = True. * The authentication and authorization policies of Pyramid 1.x have been merged into a single security policy in Pyramid 2.0. New security APIs * It is now possible to control whether a route pattern contains * Deprecated the authentication and authorization interfaces and principal-based support. * Deprecated several ACL-related aspects of pyramid.security. Equivalent - Remove python2 support, due to pyton-venusian being only python3 - use the PyPI tarball instead of github This should mitigate attacks from Flash (See CVE-2014-4671). * Fix regression where pserve --reload would not work when running as a daemon. command, introduced the method column for displaying available request methods, and improved the view output by showing the module instead of just __repr__. tables creation. See https://github.com/Pylons/pyramid/pull/1049. Backport http-related exceptions when you wanted that exception view to override the + When the ``pyramid.reload_templates`` setting was true, and a Chameleon template was reloaded, and the renderer specification named a macro was reloaded due to a file change would produce the entire template body instead of just a rendering of the macro. See + Fix an obscure problem when combining a virtual root with a route with a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid?expand=0&rev=49
2024-01-02 21:18:37 +00:00
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2014-2017 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
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
2019-06-21 11:28:33 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-pyramid
- update to 2.0.2: * Removed support for null-bytes in the path when making a request for a file * Backward Incompatibilities - Requests to a static_view are no longer allowed to contain a null-byte in any usage to .daemon = True. * The authentication and authorization policies of Pyramid 1.x have been merged into a single security policy in Pyramid 2.0. New security APIs * It is now possible to control whether a route pattern contains * Deprecated the authentication and authorization interfaces and principal-based support. * Deprecated several ACL-related aspects of pyramid.security. Equivalent - Remove python2 support, due to pyton-venusian being only python3 - use the PyPI tarball instead of github This should mitigate attacks from Flash (See CVE-2014-4671). * Fix regression where pserve --reload would not work when running as a daemon. command, introduced the method column for displaying available request methods, and improved the view output by showing the module instead of just __repr__. tables creation. See https://github.com/Pylons/pyramid/pull/1049. Backport http-related exceptions when you wanted that exception view to override the + When the ``pyramid.reload_templates`` setting was true, and a Chameleon template was reloaded, and the renderer specification named a macro was reloaded due to a file change would produce the entire template body instead of just a rendering of the macro. See + Fix an obscure problem when combining a virtual root with a route with a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid?expand=0&rev=49
2024-01-02 21:18:37 +00:00
Version: 2.0.2
Release: 0
Summary: The Pyramid web application development framework
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
2019-06-21 11:28:33 +00:00
License: BSD-4-Clause AND ZPL-2.1 AND MIT
URL: https://pylonsproject.org
Source0: https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/Pylons/pyramid/pull/3767/commits/bc84ac3af6dbbec655c0ab4544d811d92a175437
Patch0: https://github.com/Pylons/pyramid/pull/3767/commits/bc84ac3af6dbbec655c0ab4544d811d92a175437.patch#/py313-tests.patch
BuildRequires: %{python_module PasteDeploy >= 1.5.0}
BuildRequires: %{python_module WebOb >= 1.8.3}
BuildRequires: %{python_module WebTest >= 1.3.1}
BuildRequires: %{python_module hupper >= 1.5}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module plaster-pastedeploy}
BuildRequires: %{python_module plaster}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module translationstring >= 0.4}
BuildRequires: %{python_module venusian >= 1.0}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module zope.component >= 4.0}
BuildRequires: %{python_module zope.deprecation >= 3.5.0}
BuildRequires: %{python_module zope.interface >= 3.8.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PasteDeploy >= 1.5.0
Requires: python-WebOb >= 1.8.3
Requires: python-hupper >= 1.5
Requires: python-plaster
Requires: python-plaster-pastedeploy
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
2019-06-21 11:28:33 +00:00
Requires: python-setuptools
Requires: python-translationstring >= 0.4
Requires: python-venusian >= 1.0
Requires: python-zope.deprecation >= 3.5.0
Requires: python-zope.interface >= 3.8.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with python2}
BuildRequires: python-repoze.lru >= 0.4
%endif
%ifpython2
Requires: python-repoze.lru >= 0.4
%endif
%python_subpackages
%description
Pyramid is a Python web application development framework
produced by the Pylons Project (http://pylonsproject.org).
It was previously known as repoze.bfg (http://bfg.repoze.org).
- update to 2.0.2: * Removed support for null-bytes in the path when making a request for a file * Backward Incompatibilities - Requests to a static_view are no longer allowed to contain a null-byte in any usage to .daemon = True. * The authentication and authorization policies of Pyramid 1.x have been merged into a single security policy in Pyramid 2.0. New security APIs * It is now possible to control whether a route pattern contains * Deprecated the authentication and authorization interfaces and principal-based support. * Deprecated several ACL-related aspects of pyramid.security. Equivalent - Remove python2 support, due to pyton-venusian being only python3 - use the PyPI tarball instead of github This should mitigate attacks from Flash (See CVE-2014-4671). * Fix regression where pserve --reload would not work when running as a daemon. command, introduced the method column for displaying available request methods, and improved the view output by showing the module instead of just __repr__. tables creation. See https://github.com/Pylons/pyramid/pull/1049. Backport http-related exceptions when you wanted that exception view to override the + When the ``pyramid.reload_templates`` setting was true, and a Chameleon template was reloaded, and the renderer specification named a macro was reloaded due to a file change would produce the entire template body instead of just a rendering of the macro. See + Fix an obscure problem when combining a virtual root with a route with a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid?expand=0&rev=49
2024-01-02 21:18:37 +00:00
# NOTE: The documentation in the docs/ directory is under a
# non-free license (CC-BY-NC-SA-3.0). Do not package it.
%prep
%autosetup -p1 -n pyramid-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
for p in pdistreport prequest proutes pserve pshell ptweens pviews; do
%python_clone -a %{buildroot}%{_bindir}/$p
done
%check
export LANG=en_US.UTF-8
%pytest tests/
%post
%python_install_alternative pdistreport prequest proutes pserve pshell ptweens pviews
%postun
%python_uninstall_alternative pdistreport
%files %{python_files}
%license LICENSE.txt
%doc *.rst
%python_alternative %{_bindir}/pdistreport
%python_alternative %{_bindir}/prequest
%python_alternative %{_bindir}/proutes
%python_alternative %{_bindir}/pserve
%python_alternative %{_bindir}/pshell
%python_alternative %{_bindir}/ptweens
%python_alternative %{_bindir}/pviews
%{python_sitelib}/pyramid
%{python_sitelib}/pyramid-%{version}.dist-info
%changelog