Accepting request 486218 from home:TheBlackCat:branches:devel:languages:python
* Update to Version 2.0.0 * Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/486218 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=5
This commit is contained in:
parent
ffd286e797
commit
dbd38b3c33
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:152af29d4580b112fc52966864492791c951e6382b56070e95e128c6b614833b
|
||||
size 17449
|
3
bleach-2.0.0.tar.gz
Normal file
3
bleach-2.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b9522130003e4caedf4f00a39c120a906dcd4242329c1c8f621f5370203cbc30
|
||||
size 46083
|
@ -1,3 +1,63 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 6 17:49:43 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Update to Version 2.0.0
|
||||
+ Backwards incompatible changes
|
||||
* Removed support for Python 2.6. #206
|
||||
* Removed support for Python 3.2. #224
|
||||
* Bleach no longer supports html5lib < 0.99999999 (8 9s).
|
||||
* ``bleach.clean`` and friends were rewrittenped.
|
||||
* ``bleach.clean`` and friends attribute callables now take three arguments:
|
||||
tag, attribute name and attribute value. Previously they only took attribute
|
||||
name and attribute value.
|
||||
* ``bleach.linkify`` was rewritten
|
||||
* ``bleach.linkify`` and friends had a ``skip_pre`` argument--that's been
|
||||
replaced with a more general ``skip_tags`` argument.
|
||||
+ Changes
|
||||
* Supports Python 3.6.
|
||||
* Supports html5lib >= 0.99999999 (8 9s).
|
||||
* There's a ``bleach.sanitizer.Cleaner`` class that you can instantiate with your
|
||||
favorite clean settings for easy reuse.
|
||||
* There's a ``bleach.linkifier.Linker`` class that you can instantiate with your
|
||||
favorite linkify settings for easy reuse.
|
||||
* There's a ``bleach.linkifier.LinkifyFilter`` which is an htm5lib filter that
|
||||
you can pass as a filter to ``bleach.sanitizer.Cleaner`` allowing you to clean
|
||||
and linkify in one pass.
|
||||
* ``bleach.clean`` and friends can now take a callable as an attributes arg value.
|
||||
* Tons of bug fixes.
|
||||
* Cleaned up tests.
|
||||
* Documentation fixes.
|
||||
- Update to Version 1.5
|
||||
+ Backwards incompatible changes
|
||||
* clean: The list of ``ALLOWED_PROTOCOLS`` now defaults to http, https and
|
||||
mailto.
|
||||
+ Changes
|
||||
* clean: Added ``protocols`` to arguments list to let you override the list of
|
||||
allowed protocols. Thank you, Andreas Malecki! #149
|
||||
* linkify: Fix a bug involving periods at the end of an email address. Thank you,
|
||||
Lorenz Schori! #219
|
||||
* linkify: Fix linkification of non-ascii ports. Thank you Alexandre, Macabies!
|
||||
#207
|
||||
* linkify: Fix linkify inappropriately removing node tails when dropping nodes.
|
||||
#132
|
||||
* Fixed a test that failed periodically. #161
|
||||
* Switched from nose to py.test. #204
|
||||
* Add test matrix for all supported Python and html5lib versions. #230
|
||||
* Limit to html5lib ``>=0.999,!=0.9999,!=0.99999,<0.99999999`` because 0.9999
|
||||
and 0.99999 are busted.
|
||||
* Add support for ``python setup.py test``. #97
|
||||
- Update to Version 1.4.3 (May 23rd, 2016)
|
||||
+ Changes
|
||||
* Limit to html5lib ``>=0.999,<0.99999999`` because of impending change to
|
||||
sanitizer api. #195
|
||||
- Update to Version 1.4.2
|
||||
+ Changes
|
||||
* linkify: Fix hang in linkify with ``parse_email=True``. #124
|
||||
* linkify: Fix crash in linkify when removing a link that is a first-child. #136
|
||||
* Updated TLDs.
|
||||
* linkify: Don't remove exterior brackets when linkifying. #146
|
||||
- Implemenet single-spec version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 3 14:39:11 UTC 2015 - toddrme2178@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bleach
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -17,30 +17,30 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-bleach
|
||||
Version: 1.4.1
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: An easy whitelist-based HTML-sanitizing tool
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: http://github.com/jsocol/bleach
|
||||
Source: https://pypi.python.org/packages/source/b/bleach/bleach-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module html5lib >= 0.99999999}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module webencodings}
|
||||
Requires: python-html5lib >= 0.99999999
|
||||
Requires: python-six
|
||||
BuildRequires: python-html5lib >= 0.999
|
||||
Requires: python-html5lib >= 0.999
|
||||
Requires: python-webencodings
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
BuildRequires: python-ordereddict
|
||||
Requires: python-ordereddict
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Bleach is an HTML sanitizing library that escapes or strips markup and
|
||||
@ -66,17 +66,21 @@ http://bleach.readthedocs.org/
|
||||
%setup -q -n bleach-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
nosetests
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
py.test-%{$python_bin_suffix}
|
||||
}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%doc CHANGES LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user