Accepting request 681854 from devel:languages:python

- Update to 1.1.1:
  * Fix segfault when __html__ method raises an exception when using the C speedups. The exception is now propagated correctly. (#109)

- Update to v1.1.0
  - Drop support for Python 2.6 and 3.3.
  - Build wheels for Linux, Mac, and Windows, allowing systems without
    a compiler to take advantage of the C extension speedups
  - Use newer CPython API on Python 3, resulting in a 1.5x speedup
  - ``escape`` wraps ``__html__`` result in ``Markup``, consistent with
    documented behavior
- Switch to using pytest in %check as setup.py test no longer works
- Use more precise URL https://github.com/pallets/markupsafe
- Add docs/ to %doc, including the changelog
- Remove AUTHORS from %doc, removed upstream in 6247e015

OBS-URL: https://build.opensuse.org/request/show/681854
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-MarkupSafe?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2019-03-08 10:00:46 +00:00 committed by Git OBS Bridge
commit eb5c4a288b
4 changed files with 34 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665
size 14356

3
MarkupSafe-1.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b
size 19151

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Tue Mar 5 16:46:50 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.1.1:
* Fix segfault when __html__ method raises an exception when using the C speedups. The exception is now propagated correctly. (#109)
-------------------------------------------------------------------
Thu Feb 21 16:13:28 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Update to v1.1.0
- Drop support for Python 2.6 and 3.3.
- Build wheels for Linux, Mac, and Windows, allowing systems without
a compiler to take advantage of the C extension speedups
- Use newer CPython API on Python 3, resulting in a 1.5x speedup
- ``escape`` wraps ``__html__`` result in ``Markup``, consistent with
documented behavior
- Switch to using pytest in %check as setup.py test no longer works
- Use more precise URL https://github.com/pallets/markupsafe
- Add docs/ to %doc, including the changelog
- Remove AUTHORS from %doc, removed upstream in 6247e015
-------------------------------------------------------------------
Mon Jan 14 16:01:46 CET 2019 - kukuk@suse.de

View File

@ -19,16 +19,17 @@
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-MarkupSafe
Version: 1.0
Version: 1.1.1
Release: 0
Url: http://dev.pocoo.org/
URL: https://github.com/pallets/markupsafe
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%ifpython2
Provides: %{oldpython}-markupsafe = %{version}
@ -43,6 +44,7 @@ safely encode strings for dynamically generated web pages.
%prep
%setup -q -n MarkupSafe-%{version}
rm docs/make.bat docs/Makefile docs/conf.py docs/requirements.txt
%build
export CFLAGS="%{optflags}"
@ -50,15 +52,15 @@ export CFLAGS="%{optflags}"
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c
%check
%python_exec setup.py test
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest
%files %python_files
%defattr(-,root,root,-)
%license LICENSE
%doc AUTHORS README.rst
%files %{python_files}
%license LICENSE.rst
%doc README.rst docs/
%{python_sitearch}/markupsafe/
%{python_sitearch}/MarkupSafe-%{version}-py*.egg-info