2d0a5e
%global modname lxml
2d0a5e
2d0a5e
%bcond_with python2
2d0a5e
2d0a5e
Name:           python-%{modname}
2d0a5e
Version:        4.4.1
b10dd1
Release:        6%{?dist}
2d0a5e
Summary:        XML processing library combining libxml2/libxslt with the ElementTree API
2d0a5e
2d0a5e
License:        BSD
2d0a5e
URL:            https://github.com/lxml/lxml
2d0a5e
Source0:        https://lxml.de/files/%{modname}-%{version}.tgz
2d0a5e
fad393
# Fix for CVE-2020-27783: mXSS due to the use of improper parser
fad393
# Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1901633
fad393
# Two upstream commits combined:
fad393
#   Version 4.6.1: https://github.com/lxml/lxml/commit/89e7aad6e7ff9ecd88678ff25f885988b184b26e
fad393
#   Version 4.6.2: https://github.com/lxml/lxml/commit/a105ab8dc262ec6735977c25c13f0bdfcdec72a7
fad393
Patch0:         CVE-2020-27783.patch
fad393
b10dd1
# Fix for CVE-2021-28957: missing input sanitization
b10dd1
# for formaction HTML5 attributes which may lead to XSS
b10dd1
# Fixed upstream: https://github.com/lxml/lxml/commit/2d01a1ba8984e0483ce6619b972832377f208a0d
b10dd1
Patch1: CVE-2021-28957.patch
b10dd1
2d0a5e
# Exclude i686 arch. Due to a modularity issue it's being added to the
2d0a5e
# x86_64 compose of CRB, but we don't want to ship it at all.
2d0a5e
# See: https://projects.engineering.redhat.com/browse/RCM-72605
2d0a5e
ExcludeArch: i686
2d0a5e
2d0a5e
BuildRequires:  gcc
2d0a5e
BuildRequires:  libxml2-devel
2d0a5e
BuildRequires:  libxslt-devel
2d0a5e
2d0a5e
%global _description \
2d0a5e
lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It\
2d0a5e
provides safe and convenient access to these libraries using the ElementTree It\
2d0a5e
extends the ElementTree API significantly to offer support for XPath, RelaxNG,\
2d0a5e
XML Schema, XSLT, C14N and much more.To contact the project, go to the project\
2d0a5e
home page < or see our bug tracker at case you want to use the current ...
2d0a5e
2d0a5e
%description %{_description}
2d0a5e
2d0a5e
%if %{with python2}
2d0a5e
%package -n     python2-%{modname}
2d0a5e
Summary:        %{summary}
2d0a5e
BuildRequires:  python2-devel
2d0a5e
BuildRequires:  python2-setuptools
2d0a5e
Suggests:       python%{python2_version}dist(cssselect) >= 0.7
2d0a5e
Suggests:       python%{python2_version}dist(html5lib)
2d0a5e
Suggests:       python%{python2_version}dist(beautifulsoup4)
2d0a5e
%{?python_provide:%python_provide python2-%{modname}}
2d0a5e
2d0a5e
%description -n python2-%{modname} %{_description}
2d0a5e
2d0a5e
Python 2 version.
2d0a5e
%endif
2d0a5e
2d0a5e
%package -n     python%{python3_pkgversion}-%{modname}
2d0a5e
Summary:        %{summary}
2d0a5e
BuildRequires:  python%{python3_pkgversion}-devel
2d0a5e
BuildRequires:  python%{python3_pkgversion}-setuptools
2d0a5e
BuildRequires:  python%{python3_pkgversion}-Cython
2d0a5e
BuildRequires:  python%{python3_pkgversion}-rpm-macros
2d0a5e
Suggests:       python%{python3_version}dist(cssselect) >= 0.7
2d0a5e
Suggests:       python%{python3_version}dist(html5lib)
2d0a5e
Suggests:       python%{python3_version}dist(beautifulsoup4)
2d0a5e
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
2d0a5e
2d0a5e
%description -n python%{python3_pkgversion}-%{modname} %{_description}
2d0a5e
2d0a5e
Python 3 version.
2d0a5e
2d0a5e
%prep
fad393
%autosetup -p1 -n %{modname}-%{version}
2d0a5e
# Remove pregenerated Cython C sources
2d0a5e
find -type f -name '*.c' -print -delete
2d0a5e
2d0a5e
%build
2d0a5e
env WITH_CYTHON=true %py3_build
2d0a5e
%if %{with python2}
2d0a5e
%py2_build
2d0a5e
%endif
2d0a5e
2d0a5e
%install
2d0a5e
%if %{with python2}
2d0a5e
%py2_install
2d0a5e
%endif
2d0a5e
%py3_install
2d0a5e
2d0a5e
%check
2d0a5e
%if %{with python2}
2d0a5e
%{__python2} setup.py test
2d0a5e
%endif
2d0a5e
%{__python3} setup.py test
2d0a5e
2d0a5e
%if %{with python2}
2d0a5e
%files -n python2-%{modname}
2d0a5e
%license doc/licenses/ZopePublicLicense.txt LICENSES.txt
2d0a5e
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
2d0a5e
%{python2_sitearch}/%{modname}/
2d0a5e
%{python2_sitearch}/%{modname}-*.egg-info/
2d0a5e
%endif
2d0a5e
2d0a5e
%files -n python%{python3_pkgversion}-%{modname}
2d0a5e
%license doc/licenses/ZopePublicLicense.txt LICENSES.txt
2d0a5e
%doc README.rst src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
2d0a5e
%{python3_sitearch}/%{modname}/
2d0a5e
%{python3_sitearch}/%{modname}-*.egg-info/
2d0a5e
2d0a5e
%changelog
b10dd1
* Wed Mar 24 2021 Charalampos Stratakis <cstratak@redhat.com> - 4.4.1-6
b10dd1
- Security fix for CVE-2021-28957
b10dd1
Resolves: rhbz#1941534
b10dd1
fad393
* Thu Dec 03 2020 Lumír Balhar <lbalhar@redhat.com> - 4.4.1-5
fad393
- Security fix for CVE-2020-27783: mXSS due to the use of improper parser
fad393
Resolves: rhbz#1901633
fad393
2d0a5e
* Thu Dec 12 2019 Tomas Orsava <torsava@redhat.com> - 4.4.1-4
2d0a5e
- Exclude unsupported i686 arch
2d0a5e
2d0a5e
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 4.4.1-3
2d0a5e
- Adjusted for Python 3.8 module in RHEL 8
2d0a5e
2d0a5e
* Sat Sep 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.1-2
2d0a5e
- Generate C files using py3 Cython
2d0a5e
2d0a5e
* Sat Sep 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.1-1
2d0a5e
- Update to 4.4.1
2d0a5e
2d0a5e
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-2
2d0a5e
- Rebuilt for Python 3.8
2d0a5e
2d0a5e
* Sat Aug 03 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.0-1
2d0a5e
- Update to 4.4.0
2d0a5e
2d0a5e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-3
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2d0a5e
2d0a5e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2d0a5e
2d0a5e
* Tue Dec 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.5-1
2d0a5e
- Update to 4.2.5
2d0a5e
2d0a5e
* Sun Sep 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.4-1
2d0a5e
- Update to 4.2.4
2d0a5e
2d0a5e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2d0a5e
2d0a5e
* Sat Jul 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.3-1
2d0a5e
- Update to 4.2.3
2d0a5e
2d0a5e
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 4.2.1-2
2d0a5e
- Rebuilt for Python 3.7
2d0a5e
2d0a5e
* Wed Apr 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.1-1
2d0a5e
- Update to 4.2.1
2d0a5e
2d0a5e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2d0a5e
2d0a5e
* Sun Nov 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.1-1
2d0a5e
- Update to 4.1.1
2d0a5e
2d0a5e
* Tue Oct 10 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-2
2d0a5e
- Conditionally allow building without Cython
2d0a5e
2d0a5e
* Thu Oct 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.0-1
2d0a5e
- Update to 4.0.0
2d0a5e
2d0a5e
* Sat Aug 12 2017 Kevin Fenzi <kevin@scrye.com> - 3.8.0-1
2d0a5e
- Update to 3.8.0. Fixes bug #1458529
2d0a5e
2d0a5e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.2-4
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2d0a5e
2d0a5e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.2-3
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2d0a5e
2d0a5e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.2-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2d0a5e
2d0a5e
* Mon Jan 09 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.7.2-1
2d0a5e
- Update to 3.7.2
2d0a5e
2d0a5e
* Sun Dec 25 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.7.1-1
2d0a5e
- Update to 3.7.1
2d0a5e
2d0a5e
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 3.7.0-2
2d0a5e
- Rebuild for Python 3.6
2d0a5e
2d0a5e
* Sun Dec 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.7.0-1
2d0a5e
- Update to 3.7.0
2d0a5e
2d0a5e
* Thu Sep 08 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 3.6.4-1
2d0a5e
- Update to 3.6.4
2d0a5e
2d0a5e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.4-5
2d0a5e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2d0a5e
2d0a5e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-4
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2d0a5e
2d0a5e
* Thu Jan 21 2016 Dan Horák <dan[at]danny.cz> - 3.4.4-3
2d0a5e
- fix conditional
2d0a5e
2d0a5e
* Fri Nov 06 2015 Robert Kuska <rkuska@redhat.com> - 3.4.4-2
2d0a5e
- Rebuilt for Python3.5 rebuild
2d0a5e
2d0a5e
* Fri Aug 28 2015 Peter Robinson <pbrobinson@fedoraproject.org> 3.4.4-1
2d0a5e
- Update to 3.4.4
2d0a5e
- Use %%license, cleanup spec
2d0a5e
2d0a5e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.6-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2d0a5e
2d0a5e
* Fri Aug 29 2014 Jeffrey C. Ollie <jeff@ocjtech.us> - 3.3.6-1
2d0a5e
- 3.3.6 (2014-08-28)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Prevent tree cycle creation when adding Elements as siblings.
2d0a5e
-
2d0a5e
- * LP#1361948: crash when deallocating Element siblings without parent.
2d0a5e
-
2d0a5e
- * LP#1354652: crash when traversing internally loaded documents in XSLT
2d0a5e
-   extension functions.
2d0a5e
2d0a5e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2d0a5e
2d0a5e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.5-3
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2d0a5e
2d0a5e
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.5-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
2d0a5e
2d0a5e
* Mon Apr 28 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.5-1
2d0a5e
- 3.3.5 (2014-04-18)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * HTML cleaning could fail to strip javascript links that mix control
2d0a5e
-   characters into the link scheme.
2d0a5e
2d0a5e
* Mon Apr 28 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.4-1
2d0a5e
- 3.3.4 (2014-04-03)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * Source line numbers above 65535 are available on Elements when
2d0a5e
-   using libxml2 2.9 or later.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * lxml.html.fragment_fromstring() failed for bytes input in Py3.
2d0a5e
2d0a5e
* Wed Mar 26 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.3-4
2d0a5e
- Fix macro definition
2d0a5e
2d0a5e
* Wed Mar 26 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.3-3
2d0a5e
- Add python3-cssselect to correct package
2d0a5e
2d0a5e
* Mon Mar 24 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.3-3
2d0a5e
- python3-cssselect is not available on F19
2d0a5e
2d0a5e
* Mon Mar 24 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.3-2
2d0a5e
- BZ#1075070  add requires and buildrequires for cssselect
2d0a5e
2d0a5e
* Tue Mar 11 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.3-1
2d0a5e
- 3.3.3 (2014-03-04)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#1287118: Crash when using Element subtypes with ``__slots__``.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * The internal classes ``_LogEntry`` and ``_Attrib`` can no longer be
2d0a5e
-   subclassed from Python code.
2d0a5e
2d0a5e
* Tue Mar 11 2014 Alexander Todorov <atodorov@redhat.com> - 3.3.2-2
2d0a5e
- Add check section #1075070
2d0a5e
2d0a5e
* Fri Feb 28 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.2-1
2d0a5e
- 3.3.2 (2014-02-26)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * The properties ``resolvers`` and ``version``, as well as the methods
2d0a5e
-   ``set_element_class_lookup()`` and ``makeelement()``, were lost from
2d0a5e
-   ``iterparse`` objects.
2d0a5e
-
2d0a5e
- * LP#1222132: instances of ``XMLSchema``, ``Schematron`` and ``RelaxNG``
2d0a5e
-   did not clear their local ``error_log`` before running a validation.
2d0a5e
-
2d0a5e
- * LP#1238500: lxml.doctestcompare mixed up "expected" and "actual" in
2d0a5e
-   attribute values.
2d0a5e
-
2d0a5e
- * Some file I/O tests were failing in MS-Windows due to incorrect temp
2d0a5e
-   file usage.  Initial patch by Gabi Davar.
2d0a5e
-
2d0a5e
- * LP#910014: duplicate IDs in a document were not reported by DTD
2d0a5e
-   validation.
2d0a5e
-
2d0a5e
- * LP#1185332: ``tostring(method="html")`` did not use HTML serialisation
2d0a5e
-   semantics for trailing tail text.  Initial patch by Sylvain Viollon.
2d0a5e
-
2d0a5e
- * LP#1281139: ``.attrib`` value of Comments lost its mutation methods
2d0a5e
-   in 3.3.0.  Even though it is empty and immutable, it should still
2d0a5e
-   provide the same interface as that returned for Elements.
2d0a5e
2d0a5e
* Fri Feb 28 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.2-1
2d0a5e
- 3.3.1 (2014-02-12)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#1014290: HTML documents parsed with ``parser.feed()`` failed to find
2d0a5e
-   elements during tag iteration.
2d0a5e
-
2d0a5e
- * LP#1273709: Building in PyPy failed due to missing support for
2d0a5e
-   ``PyUnicode_Compare()`` and ``PyByteArray_*()`` in PyPy's C-API.
2d0a5e
-
2d0a5e
- * LP#1274413: Compilation in MSVC failed due to missing "stdint.h" standard
2d0a5e
-   header file.
2d0a5e
-
2d0a5e
- * LP#1274118: iterparse() failed to parse BOM prefixed files.
2d0a5e
2d0a5e
* Mon Jan 27 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.0-2
2d0a5e
- Update Cython requirement to >= 0.20
2d0a5e
2d0a5e
* Mon Jan 27 2014 Jeffrey Ollie <jeff@ocjtech.us> - 3.3.0-1
2d0a5e
- 3.3.0 (2014-01-26)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * The heuristic that distinguishes file paths from URLs was tightened
2d0a5e
-   to produce less false negatives.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.3.0beta5 (2014-01-18)
2d0a5e
- =======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * The PEP 393 unicode parsing support gained a fallback for wchar strings
2d0a5e
-   which might still be somewhat common on Windows systems.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Several error handling problems were fixed throughout the code base that
2d0a5e
-   could previously lead to exceptions being silently swallowed or not
2d0a5e
-   properly reported.
2d0a5e
-
2d0a5e
- * The C-API function ``appendChild()`` is now deprecated as it does not
2d0a5e
-   propagate exceptions (its return type is ``void``).  The new function
2d0a5e
-   ``appendChildToElement()`` was added as a safe replacement.
2d0a5e
-
2d0a5e
- * Passing a string into ``fromstringlist()`` raises an exception instead of
2d0a5e
-   parsing the string character by character.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * Document cleanup code was simplified using the new GC features in
2d0a5e
-   Cython 0.20.
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.3.0beta4 (2014-01-12)
2d0a5e
- =======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * The (empty) value returned by the ``attrib`` property of Entity and
2d0a5e
-   Comment objects was mutable.
2d0a5e
-
2d0a5e
- * Element class lookup wasn't available for the new pull parsers or when
2d0a5e
-   using a custom parser target.
2d0a5e
-
2d0a5e
- * Setting Element attributes on instantiation with both the ``attrib``
2d0a5e
-   argument and keyword arguments could modify the mapping passed as
2d0a5e
-   ``attrib``.
2d0a5e
-
2d0a5e
- * LP#1266171: DTDs instantiated from internal/external subsets (i.e.
2d0a5e
-   through the docinfo property) lost their attribute declarations.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * Built with Cython 0.20pre (gitrev 012ae82eb) to prepare support for
2d0a5e
-   Python 3.4.
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.3.0beta3 (2014-01-02)
2d0a5e
- =======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * Unicode string parsing was optimised for Python 3.3 (PEP 393).
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * HTML parsing of Unicode strings could misdecode the input on some
2d0a5e
-   platforms.
2d0a5e
-
2d0a5e
- * Crash in xmlfile() when closing open elements out of order in an error
2d0a5e
-   case.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.3.0beta2 (2013-12-20)
2d0a5e
- =======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * ``iterparse()`` supports the ``recover`` option.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Crash in ``iterparse()`` for HTML parsing.
2d0a5e
-
2d0a5e
- * Crash in target parsing with attributes.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * The safety check in the read-only tree implementation (e.g. used by
2d0a5e
-   ``PythonElementClassLookup``) raises a more appropriate
2d0a5e
-   ``ReferenceError`` for illegal access after tree disposal instead of
2d0a5e
-   an ``AssertionError``. This should only impact test code that
2d0a5e
-   specifically checks the original behaviour.
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.3.0beta1 (2013-12-12)
2d0a5e
- =======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * New option ``handle_failures`` in ``make_links_absolute()`` and
2d0a5e
-   ``resolve_base_href()`` (lxml.html) that enables ignoring or
2d0a5e
-   discarding links that fail to parse as URLs.
2d0a5e
-
2d0a5e
- * New parser classes ``XMLPullParser`` and ``HTMLPullParser`` for
2d0a5e
-   incremental parsing, as implemented for ElementTree in Python 3.4.
2d0a5e
-
2d0a5e
- * ``iterparse()`` enables recovery mode by default for HTML parsing
2d0a5e
-   (``html=True``).
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#1255132: crash when trying to run validation over non-Element (e.g.
2d0a5e
-   comment or PI).
2d0a5e
-
2d0a5e
- * Error messages in the log and in exception messages that originated
2d0a5e
-   from libxml2 could accidentally be picked up from preceding warnings
2d0a5e
-   instead of the actual error.
2d0a5e
-
2d0a5e
- * The ``ElementMaker`` in lxml.objectify did not accept a dict as
2d0a5e
-   argument for adding attributes to the element it's building. This
2d0a5e
-   works as in lxml.builder now.
2d0a5e
-
2d0a5e
- * LP#1228881: ``repr(XSLTAccessControl)`` failed in Python 3.
2d0a5e
-
2d0a5e
- * Raise ``ValueError`` when trying to append an Element to itself or
2d0a5e
-   to one of its own descendants, instead of running into an infinite
2d0a5e
-   loop.
2d0a5e
-
2d0a5e
- * LP#1206077: htmldiff discarded whitespace from the output.
2d0a5e
-
2d0a5e
- * Compressed plain-text serialisation to file-like objects was broken.
2d0a5e
-
2d0a5e
- * lxml.html.formfill: Fix textarea form filling.
2d0a5e
-   The textarea used to be cleared before the new content was set,
2d0a5e
-   which removed the name attribute.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * Some basic API classes use freelists internally for faster
2d0a5e
-   instantiation.  This can speed up some ``iterparse()`` scenarios,
2d0a5e
-   for example.
2d0a5e
-
2d0a5e
- * ``iterparse()`` was rewritten to use the new ``*PullParser``
2d0a5e
-   classes internally instead of being a parser itself.
2d0a5e
2d0a5e
* Mon Nov 11 2013 Jeffrey Ollie <jeff@ocjtech.us> - 3.2.4-1
2d0a5e
- 3.2.4 (2013-11-07)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Memory leak when creating an XPath evaluator in a thread.
2d0a5e
-
2d0a5e
- * LP#1228881: ``repr(XSLTAccessControl)`` failed in Python 3.
2d0a5e
-
2d0a5e
- * Raise ``ValueError`` when trying to append an Element to itself or
2d0a5e
-   to one of its own descendants.
2d0a5e
-
2d0a5e
- * LP#1206077: htmldiff discarded whitespace from the output.
2d0a5e
-
2d0a5e
- * Compressed plain-text serialisation to file-like objects was broken.
2d0a5e
2d0a5e
* Wed Sep 18 2013 Jeffrey Ollie <jeff@ocjtech.us> - 3.2.3-2
2d0a5e
- Add requirement for on python-cssselect for the python2 version
2d0a5e
2d0a5e
* Sun Jul 28 2013 Jeffrey Ollie <jeff@ocjtech.us> - 3.2.3-1
2d0a5e
- and here's a version 3.2.3. The last release accidentally lost the ability
2d0a5e
- to work on Python 2.4. There are no other changes over 3.2.2.
2d0a5e
-
2d0a5e
- 3.2.2 (2013-07-28)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#1185701: spurious XMLSyntaxError after finishing iterparse().
2d0a5e
-
2d0a5e
- * Crash in lxml.objectify during xsi annotation.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * Return values of user provided element class lookup methods are now
2d0a5e
-   validated against the type of the XML node they represent to prevent
2d0a5e
-   API class mismatches.
2d0a5e
2d0a5e
* Sun May 12 2013 Jeffrey Ollie <jeff@ocjtech.us> - 3.2.1-1
2d0a5e
- 3.2.1 (2013-05-11)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * The methods ``apply_templates()`` and ``process_children()`` of XSLT
2d0a5e
-   extension elements have gained two new boolean options ``elements_only``
2d0a5e
-   and ``remove_blank_text`` that discard either all strings or
2d0a5e
-   whitespace-only strings from the result list.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * When moving Elements to another tree, the namespace cleanup mechanism
2d0a5e
-   no longer drops namespace prefixes from attributes for which it finds
2d0a5e
-   a default namespace declaration, to prevent them from appearing as
2d0a5e
-   unnamespaced attributes after serialisation.
2d0a5e
-
2d0a5e
- * Returning non-type objects from a custom class lookup method could lead
2d0a5e
-   to a crash.
2d0a5e
-
2d0a5e
- * Instantiating and using subtypes of Comments and ProcessingInstructions
2d0a5e
-   crashed.
2d0a5e
2d0a5e
* Fri May 10 2013 Jeffrey Ollie <jeff@ocjtech.us> - 3.2.0-1
2d0a5e
- 3.2.0 (2013-04-28)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#690319: Leading whitespace could change the behaviour of the string
2d0a5e
-   parsing functions in ``lxml.html``.
2d0a5e
-
2d0a5e
- * LP#599318: The string parsing functions in ``lxml.html`` are more robust
2d0a5e
-   in the face of uncommon HTML content like framesets or missing body tags.
2d0a5e
-   Patch by Stefan Seelmann.
2d0a5e
-
2d0a5e
- * LP#712941: I/O errors while trying to access files with paths that
2d0a5e
-   contain non-ASCII characters could raise ``UnicodeDecodeError`` instead
2d0a5e
-   of properly reporting the ``IOError``.
2d0a5e
-
2d0a5e
- * LP#673205: Parsing from in-memory strings disabled network access in the
2d0a5e
-   default parser and made subsequent attempts to parse from a URL fail.
2d0a5e
-
2d0a5e
- * LP#971754: lxml.html.clean appends 'nofollow' to 'rel' attributes instead
2d0a5e
-   of overwriting the current value.
2d0a5e
-
2d0a5e
- * LP#715687: lxml.html.clean no longer discards scripts that are explicitly
2d0a5e
-   allowed by the user provided whitelist.  Patch by Christine Koppelt.
2d0a5e
-
2d0a5e
- 3.1.2 (2013-04-12)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#1136509: Passing attributes through the namespace-unaware API of
2d0a5e
-   the sax bridge (i.e. the ``handler.startElement()`` method) failed
2d0a5e
-   with a ``TypeError``.  Patch by Mike Bayer.
2d0a5e
-
2d0a5e
- * LP#1123074: Fix serialisation error in XSLT output when converting
2d0a5e
-   the result tree to a Unicode string.
2d0a5e
-
2d0a5e
- * GH#105: Replace illegal usage of ``xmlBufLength()`` in libxml2 2.9.0
2d0a5e
-   by properly exported API function ``xmlBufUse()``.
2d0a5e
-
2d0a5e
- 3.1.1 (2013-03-29)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#1160386: Write access to ``lxml.html.FormElement.fields`` raised
2d0a5e
-   an AttributeError in Py3.
2d0a5e
-
2d0a5e
- * Illegal memory access during cleanup in incremental xmlfile writer.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * The externally useless class ``lxml.etree._BaseParser`` was removed
2d0a5e
-   from the module dict.
2d0a5e
2d0a5e
* Fri Mar  8 2013 Jeffrey Ollie <jeff@ocjtech.us> - 3.1.0-1
2d0a5e
- 3.1.0 (2013-02-10)
2d0a5e
- ==================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * GH#89: lxml.html.clean allows overriding the set of attributes that it
2d0a5e
-   considers 'safe'.  Patch by Francis Devereux.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * LP#1104370: ``copy.copy(el.attrib)`` raised an exception.  It now returns
2d0a5e
-   a copy of the attributes as a plain Python dict.
2d0a5e
-
2d0a5e
- * GH#95: When used with namespace prefixes, the  ``el.find*()`` methods
2d0a5e
-   always used the first namespace mapping that was provided for each
2d0a5e
-   path expression instead of using the one that was actually passed
2d0a5e
-   in for the current run.
2d0a5e
-
2d0a5e
- * LP#1092521, GH#91: Fix undefined C symbol in Python runtimes compiled
2d0a5e
-   without threading support.  Patch by Ulrich Seidl.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.1beta1 (2012-12-21)
2d0a5e
- =====================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * New build-time option ``--with-unicode-strings`` for Python 2 that
2d0a5e
-   makes the API always return Unicode strings for names and text
2d0a5e
-   instead of byte strings for plain ASCII content.
2d0a5e
-
2d0a5e
- * New incremental XML file writing API ``etree.xmlfile()``.
2d0a5e
-
2d0a5e
- * E factory in lxml.objectify is callable to simplify the creation of
2d0a5e
-   tags with non-identifier names without having to resort to getattr().
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * When starting from a non-namespaced element in lxml.objectify, searching
2d0a5e
-   for a child without explicitly specifying a namespace incorrectly found
2d0a5e
-   namespaced elements with the requested local name, instead of restricting
2d0a5e
-   the search to non-namespaced children.
2d0a5e
-
2d0a5e
- * GH#85: Deprecation warnings were fixed for Python 3.x.
2d0a5e
-
2d0a5e
- * GH#33: lxml.html.fromstring() failed to accept bytes input in Py3.
2d0a5e
-
2d0a5e
- * LP#1080792: Static build of libxml2 2.9.0 failed due to missing file.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * The externally useless class ``_ObjectifyElementMakerCaller`` was
2d0a5e
-   removed from the module API of lxml.objectify.
2d0a5e
-
2d0a5e
- * LP#1075622: lxml.builder is faster for adding text to elements with
2d0a5e
-   many children.  Patch by Anders Hammarquist.
2d0a5e
2d0a5e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2d0a5e
2d0a5e
* Mon Oct 15 2012 Jeffrey Ollie <jeff@ocjtech.us> - 3.0.1-1
2d0a5e
- 3.0.1 (2012-10-14)
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-  * LP#1065924: Element proxies could disappear during garbage collection
2d0a5e
-    in PyPy without proper cleanup.
2d0a5e
-  * GH#71: Failure to work with libxml2 2.6.x.
2d0a5e
-  * LP#1065139: static MacOS-X build failed in Py3.
2d0a5e
2d0a5e
* Wed Oct 10 2012 Jeffrey Ollie <jeff@ocjtech.us> - 3.0-1
2d0a5e
- 3.0 (2012-10-08)
2d0a5e
- ================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * End-of-file handling was incorrect in iterparse() when reading from
2d0a5e
-   a low-level C file stream and failed in libxml2 2.9.0 due to its
2d0a5e
-   improved consistency checks.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * The build no longer uses Cython by default unless the generated C files
2d0a5e
-   are missing.  To use Cython, pass the option "--with-cython".  To ignore
2d0a5e
-   the fatal build error when Cython is required but not available (e.g. to
2d0a5e
-   run special setup.py commands that do not actually run a build), pass
2d0a5e
-   "--without-cython".
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.0beta1 (2012-09-26)
2d0a5e
- =====================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * Python level access to (optional) libxml2 memory debugging features
2d0a5e
-   to simplify debugging of memory leaks etc.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Fix a memory leak in XPath by switching to Cython 0.17.1.
2d0a5e
-
2d0a5e
- * Some tests were adapted to work with PyPy.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * The code was adapted to work with the upcoming libxml2 2.9.0 release.
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.0alpha2 (2012-08-23)
2d0a5e
- ======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * The .iter() method of elements now accepts tag arguments like "{*}name"
2d0a5e
-   to search for elements with a given local name in any namespace.  With
2d0a5e
-   this addition, all combinations of wildcards now work as expected:
2d0a5e
-   "{ns}name", "{}name", "{*}name", "{ns}*", "{}*" and "{*}*".  Note that
2d0a5e
-   "name" is equivalent to "{}name", but "*" is "{*}*".  The same change
2d0a5e
-   applies to the .getiterator(), .itersiblings(), .iterancestors(),
2d0a5e
-   .iterdescendants(), .iterchildren() and .itertext() methods,  the
2d0a5e
-   strip_attributes(), strip_elements() and strip_tags() functions as well
2d0a5e
-   as the iterparse() function.
2d0a5e
-
2d0a5e
- * C14N allows specifying the inclusive prefixes to be promoted to
2d0a5e
-   top-level during exclusive serialisation.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Passing long Unicode strings into the feed() parser interface failed to
2d0a5e
-   read the entire string.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
-
2d0a5e
- 3.0alpha1 (2012-07-31)
2d0a5e
- ======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * Initial support for building in PyPy (through cpyext).
2d0a5e
-
2d0a5e
- * DTD objects gained an API that allows read access to their
2d0a5e
-   declarations.
2d0a5e
-
2d0a5e
- * xpathgrep.py gained support for parsing line-by-line (e.g.
2d0a5e
-   from grep output) and for surrounding the output with a new root
2d0a5e
-   tag.
2d0a5e
-
2d0a5e
- * E-factory in lxml.builder accepts subtypes of known data
2d0a5e
-   types (such as string subtypes) when building elements around them.
2d0a5e
-
2d0a5e
- * Tree iteration and iterparse() with a selective tag
2d0a5e
-   argument supports passing a set of tags.  Tree nodes will be
2d0a5e
-   returned by the iterators if they match any of the tags.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * The .find*() methods in lxml.objectify no longer use XPath
2d0a5e
-   internally, which makes them faster in many cases (especially when
2d0a5e
-   short circuiting after a single or couple of elements) and fixes
2d0a5e
-   some behavioural differences compared to lxml.etree.  Note that
2d0a5e
-   this means that they no longer support arbitrary XPath expressions
2d0a5e
-   but only the subset that the ElementPath language supports.
2d0a5e
-   The previous implementation was also redundant with the normal
2d0a5e
-   XPath support, which can be used as a replacement.
2d0a5e
-
2d0a5e
- * el.find('*') could accidentally return a comment or processing
2d0a5e
-   instruction that happened to be in the wrong spot.  (Same for the
2d0a5e
-   other .find*() methods.)
2d0a5e
-
2d0a5e
- * The error logging is less intrusive and avoids a global setup where
2d0a5e
-   possible.
2d0a5e
-
2d0a5e
- * Fixed undefined names in html5lib parser.
2d0a5e
-
2d0a5e
- * xpathgrep.py did not work in Python 3.
2d0a5e
-
2d0a5e
- * Element.attrib.update() did not accept an attrib of
2d0a5e
-   another Element as parameter.
2d0a5e
-
2d0a5e
- * For subtypes of ElementBase that make the .text or .tail
2d0a5e
-   properties immutable (as in objectify, for example), inserting text
2d0a5e
-   when creating Elements through the E-Factory feature of the class
2d0a5e
-   constructor would fail with an exception, stating that the text
2d0a5e
-   cannot be modified.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * The code base was overhauled to properly use 'const' where the API
2d0a5e
-   of libxml2 and libxslt requests it.  This also has an impact on the
2d0a5e
-   public C-API of lxml itself, as defined in etreepublic.pxd, as
2d0a5e
-   well as the provided declarations in the lxml/includes/ directory.
2d0a5e
-   Code that uses these declarations may have to be adapted.  On the
2d0a5e
-   plus side, this fixes several C compiler warnings, also for user
2d0a5e
-   code, thus making it easier to spot real problems again.
2d0a5e
-
2d0a5e
- * The functionality of "lxml.cssselect" was moved into a separate PyPI
2d0a5e
-   package called "cssselect".  To continue using it, you must install
2d0a5e
-   that package separately.  The "lxml.cssselect" module is still
2d0a5e
-   available and provides the same interface, provided the "cssselect"
2d0a5e
-   package can be imported at runtime.
2d0a5e
-
2d0a5e
- * Element attributes passed in as an attrib dict or as keyword
2d0a5e
-   arguments are now sorted by (namespaced) name before being created
2d0a5e
-   to make their order predictable for serialisation and iteration.
2d0a5e
-   Note that adding or deleting attributes afterwards does not take
2d0a5e
-   that order into account, i.e. setting a new attribute appends it
2d0a5e
-   after the existing ones.
2d0a5e
-
2d0a5e
- * Several classes that are for internal use only were removed
2d0a5e
-   from the lxml.etree module dict:
2d0a5e
-   _InputDocument, _ResolverRegistry, _ResolverContext, _BaseContext,
2d0a5e
-   _ExsltRegExp, _IterparseContext, _TempStore, _ExceptionContext,
2d0a5e
-   __ContentOnlyElement, _AttribIterator, _NamespaceRegistry,
2d0a5e
-   _ClassNamespaceRegistry, _FunctionNamespaceRegistry,
2d0a5e
-   _XPathFunctionNamespaceRegistry, _ParserDictionaryContext,
2d0a5e
-   _FileReaderContext, _ParserContext, _PythonSaxParserTarget,
2d0a5e
-   _TargetParserContext, _ReadOnlyProxy, _ReadOnlyPIProxy,
2d0a5e
-   _ReadOnlyEntityProxy, _ReadOnlyElementProxy, _OpaqueNodeWrapper,
2d0a5e
-   _OpaqueDocumentWrapper, _ModifyContentOnlyProxy,
2d0a5e
-   _ModifyContentOnlyPIProxy, _ModifyContentOnlyEntityProxy,
2d0a5e
-   _AppendOnlyElementProxy, _SaxParserContext, _FilelikeWriter,
2d0a5e
-   _ParserSchemaValidationContext, _XPathContext,
2d0a5e
-   _XSLTResolverContext, _XSLTContext, _XSLTQuotedStringParam
2d0a5e
-
2d0a5e
- * Several internal classes can no longer be inherited from:
2d0a5e
-   _InputDocument, _ResolverRegistry, _ExsltRegExp, _ElementUnicodeResult,
2d0a5e
-   _IterparseContext, _TempStore, _AttribIterator, _ClassNamespaceRegistry,
2d0a5e
-   _XPathFunctionNamespaceRegistry, _ParserDictionaryContext,
2d0a5e
-   _FileReaderContext, _PythonSaxParserTarget, _TargetParserContext,
2d0a5e
-   _ReadOnlyPIProxy, _ReadOnlyEntityProxy, _OpaqueDocumentWrapper,
2d0a5e
-   _ModifyContentOnlyPIProxy, _ModifyContentOnlyEntityProxy,
2d0a5e
-   _AppendOnlyElementProxy, _FilelikeWriter, _ParserSchemaValidationContext,
2d0a5e
-   _XPathContext, _XSLTResolverContext, _XSLTContext,
2d0a5e
-   _XSLTQuotedStringParam, _XSLTResultTree, _XSLTProcessingInstruction
2d0a5e
2d0a5e
* Thu Sep 27 2012 Jeffrey Ollie <jeff@ocjtech.us> - 2.3.5-1
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-  * Crash when merging text nodes in element.remove().
2d0a5e
-  * Crash in sax/target parser when reporting empty doctype.
2d0a5e
2d0a5e
* Thu Sep 27 2012 Jeffrey Ollie <jeff@ocjtech.us> - 2.3.4-1
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-  * Crash when building an nsmap (Element property) with empty namespace
2d0a5e
-    URIs.
2d0a5e
-  * Crash due to race condition when errors (or user messages) occur during
2d0a5e
-    threaded XSLT processing (or compilation).
2d0a5e
-  * XSLT stylesheet compilation could ignore compilation errors.
2d0a5e
2d0a5e
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.3.3-4
2d0a5e
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
2d0a5e
2d0a5e
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 2.3.3-3
2d0a5e
- remove rhel logic from with_python3 conditional
2d0a5e
2d0a5e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2d0a5e
2d0a5e
* Thu Jan  5 2012 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.3.3-1
2d0a5e
- 2.3.3 (2012-01-04)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-  * lxml.html.tostring() gained new serialisation options with_tail and
2d0a5e
-    doctype.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-  * Fixed a crash when using iterparse() for HTML parsing and requesting
2d0a5e
-    start events.
2d0a5e
-  * Fixed parsing of more selectors in cssselect. Whitespace before pseudo-
2d0a5e
-    elements and pseudo-classes is significant as it is a descendant
2d0a5e
-    combinator. "E :pseudo" should parse the same as "E *:pseudo", not
2d0a5e
-    "E:pseudo". Patch by Simon Sapin.
2d0a5e
-  * lxml.html.diff no longer raises an exception when hitting 'img' tags
2d0a5e
-    without 'src' attribute.
2d0a5e
2d0a5e
* Mon Nov 14 2011 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.3.2-1
2d0a5e
- 2.3.2 (2011-11-11)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-   * lxml.objectify.deannotate() has a new boolean option
2d0a5e
-     cleanup_namespaces to remove the objectify namespace declarations
2d0a5e
-     (and generally clean up the namespace declarations) after removing
2d0a5e
-     the type annotations.
2d0a5e
-   * lxml.objectify gained its own SubElement() function as a copy of
2d0a5e
-     etree.SubElement to avoid an otherwise redundant import of
2d0a5e
-     lxml.etree on the user side.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Fixed the "descendant" bug in cssselect a second time (after a first
2d0a5e
-      fix in lxml 2.3.1). The previous change resulted in a serious
2d0a5e
-      performance regression for the XPath based evaluation of the
2d0a5e
-      translated expression. Note that this breaks the usage of some
2d0a5e
-      of the generated XPath expressions as XSLT location paths that
2d0a5e
-      previously worked in 2.3.1.
2d0a5e
-    * Fixed parsing of some selectors in cssselect. Whitespace after
2d0a5e
-      combinators ">", "+" and "~" is now correctly ignored. Previously
2d0a5e
-      it was parsed as a descendant combinator. For example, "div> .foo"
2d0a5e
-      was parsed the same as "div>* .foo" instead of "div>.foo". Patch by
2d0a5e
-      Simon Sapin.
2d0a5e
2d0a5e
* Sun Sep 25 2011 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.3.1-1
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * New option kill_tags in lxml.html.clean to remove specific
2d0a5e
-   tags and their content (i.e. their whole subtree).
2d0a5e
-
2d0a5e
- * pi.get() and pi.attrib on processing instructions to parse
2d0a5e
-   pseudo-attributes from the text content of processing instructions.
2d0a5e
-
2d0a5e
- * lxml.get_include() returns a list of include paths that can be
2d0a5e
-   used to compile external C code against lxml.etree.  This is
2d0a5e
-   specifically required for statically linked lxml builds when code
2d0a5e
-   needs to compile against the exact same header file versions as lxml
2d0a5e
-   itself.
2d0a5e
-
2d0a5e
- * Resolver.resolve_file() takes an additional option
2d0a5e
-   close_file that configures if the file(-like) object will be
2d0a5e
-   closed after reading or not.  By default, the file will be closed,
2d0a5e
-   as the user is not expected to keep a reference to it.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * HTML cleaning didn't remove 'data:' links.
2d0a5e
-
2d0a5e
- * The html5lib parser integration now uses the 'official'
2d0a5e
-   implementation in html5lib itself, which makes it work with newer
2d0a5e
-   releases of the library.
2d0a5e
-
2d0a5e
- * In lxml.sax, endElementNS() could incorrectly reject a plain
2d0a5e
-   tag name when the corresponding start event inferred the same plain
2d0a5e
-   tag name to be in the default namespace.
2d0a5e
-
2d0a5e
- * When an open file-like object is passed into parse() or
2d0a5e
-   iterparse(), the parser will no longer close it after use.  This
2d0a5e
-   reverts a change in lxml 2.3 where all files would be closed.  It is
2d0a5e
-   the users responsibility to properly close the file(-like) object,
2d0a5e
-   also in error cases.
2d0a5e
-
2d0a5e
- * Assertion error in lxml.html.cleaner when discarding top-level elements.
2d0a5e
-
2d0a5e
- * In lxml.cssselect, use the xpath 'A//B' (short for
2d0a5e
-   'A/descendant-or-self::node()/B') instead of 'A/descendant::B' for the
2d0a5e
-   css descendant selector ('A B'). This makes a few edge cases to be
2d0a5e
-   consistent with the selector behavior in WebKit and Firefox, and makes
2d0a5e
-   more css expressions valid location paths (for use in xsl:template
2d0a5e
-   match).
2d0a5e
-
2d0a5e
- * In lxml.html, non-selected <option> tags no longer show up in the
2d0a5e
-   collected form values.
2d0a5e
-
2d0a5e
- * Adding/removing <option> values to/from a multiple select form
2d0a5e
-   field properly selects them and unselects them.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * Static builds can specify the download directory with the
2d0a5e
-   --download-dir option.
2d0a5e
2d0a5e
2d0a5e
* Tue Apr 19 2011 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.3-1
2d0a5e
- 2.3 (2011-02-06)
2d0a5e
- ================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * When looking for children, ``lxml.objectify`` takes '{}tag' as
2d0a5e
-   meaning an empty namespace, as opposed to the parent namespace.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * When finished reading from a file-like object, the parser
2d0a5e
-   immediately calls its ``.close()`` method.
2d0a5e
-
2d0a5e
- * When finished parsing, ``iterparse()`` immediately closes the input
2d0a5e
-   file.
2d0a5e
-
2d0a5e
- * Work-around for libxml2 bug that can leave the HTML parser in a
2d0a5e
-   non-functional state after parsing a severly broken document (fixed
2d0a5e
-   in libxml2 2.7.8).
2d0a5e
-
2d0a5e
- * ``marque`` tag in HTML cleanup code is correctly named ``marquee``.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * Some public functions in the Cython-level C-API have more explicit
2d0a5e
-   return types.
2d0a5e
-
2d0a5e
- 2.3beta1 (2010-09-06)
2d0a5e
- =====================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Crash in newer libxml2 versions when moving elements between
2d0a5e
-   documents that had attributes on replaced XInclude nodes.
2d0a5e
-
2d0a5e
- * ``XMLID()`` function was missing the optional ``parser`` and
2d0a5e
-   ``base_url`` parameters.
2d0a5e
-
2d0a5e
- * Searching for wildcard tags in ``iterparse()`` was broken in Py3.
2d0a5e
-
2d0a5e
- * ``lxml.html.open_in_browser()`` didn't work in Python 3 due to the
2d0a5e
-   use of os.tempnam.  It now takes an optional 'encoding' parameter.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- 2.3alpha2 (2010-07-24)
2d0a5e
- ======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * Crash in XSLT when generating text-only result documents with a
2d0a5e
-   stylesheet created in a different thread.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * ``repr()`` of Element objects shows the hex ID with leading 0x
2d0a5e
-   (following ElementTree 1.3).
2d0a5e
-
2d0a5e
- 2.3alpha1 (2010-06-19)
2d0a5e
- ======================
2d0a5e
-
2d0a5e
- Features added
2d0a5e
- --------------
2d0a5e
-
2d0a5e
- * Keyword argument ``namespaces`` in ``lxml.cssselect.CSSSelector()``
2d0a5e
-   to pass a prefix-to-namespace mapping for the selector.
2d0a5e
-
2d0a5e
- * New function ``lxml.etree.register_namespace(prefix, uri)`` that
2d0a5e
-   globally registers a namespace prefix for a namespace that newly
2d0a5e
-   created Elements in that namespace will use automatically.  Follows
2d0a5e
-   ElementTree 1.3.
2d0a5e
-
2d0a5e
- * Support 'unicode' string name as encoding parameter in
2d0a5e
-   ``tostring()``, following ElementTree 1.3.
2d0a5e
-
2d0a5e
- * Support 'c14n' serialisation method in ``ElementTree.write()`` and
2d0a5e
-   ``tostring()``, following ElementTree 1.3.
2d0a5e
-
2d0a5e
- * The ElementPath expression syntax (``el.find*()``) was extended to
2d0a5e
-   match the upcoming ElementTree 1.3 that will ship in the standard
2d0a5e
-   library of Python 3.2/2.7.  This includes extended support for
2d0a5e
-   predicates as well as namespace prefixes (as known from XPath).
2d0a5e
-
2d0a5e
- * During regular XPath evaluation, various ESXLT functions are
2d0a5e
-   available within their namespace when using libxslt 1.1.26 or later.
2d0a5e
-
2d0a5e
- * Support passing a readily configured logger instance into
2d0a5e
-   ``PyErrorLog``, instead of a logger name.
2d0a5e
-
2d0a5e
- * On serialisation, the new ``doctype`` parameter can be used to
2d0a5e
-   override the DOCTYPE (internal subset) of the document.
2d0a5e
-
2d0a5e
- * New parameter ``output_parent`` to ``XSLTExtension.apply_templates()``
2d0a5e
-   to append the resulting content directly to an output element.
2d0a5e
-
2d0a5e
- * ``XSLTExtension.process_children()`` to process the content of the
2d0a5e
-   XSLT extension element itself.
2d0a5e
-
2d0a5e
- * ISO-Schematron support based on the de-facto Schematron reference
2d0a5e
-   'skeleton implementation'.
2d0a5e
-
2d0a5e
- * XSLT objects now take XPath object as ``__call__`` stylesheet
2d0a5e
-   parameters.
2d0a5e
-
2d0a5e
- * Enable path caching in ElementPath (``el.find*()``) to avoid parsing
2d0a5e
-   overhead.
2d0a5e
-
2d0a5e
- * Setting the value of a namespaced attribute always uses a prefixed
2d0a5e
-   namespace instead of the default namespace even if both declare the
2d0a5e
-   same namespace URI.  This avoids serialisation problems when an
2d0a5e
-   attribute from a default namespace is set on an element from a
2d0a5e
-   different namespace.
2d0a5e
-
2d0a5e
- * XSLT extension elements: support for XSLT context nodes other than
2d0a5e
-   elements: document root, comments, processing instructions.
2d0a5e
-
2d0a5e
- * Support for strings (in addition to Elements) in node-sets returned
2d0a5e
-   by extension functions.
2d0a5e
-
2d0a5e
- * Forms that lack an ``action`` attribute default to the base URL of
2d0a5e
-   the document on submit.
2d0a5e
-
2d0a5e
- * XPath attribute result strings have an ``attrname`` property.
2d0a5e
-
2d0a5e
- * Namespace URIs get validated against RFC 3986 at the API level
2d0a5e
-   (required by the XML namespace specification).
2d0a5e
-
2d0a5e
- * Target parsers show their target object in the ``.target`` property
2d0a5e
-   (compatible with ElementTree).
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
- ----------
2d0a5e
-
2d0a5e
- * API is hardened against invalid proxy instances to prevent crashes
2d0a5e
-   due to incorrectly instantiated Element instances.
2d0a5e
-
2d0a5e
- * Prevent crash when instantiating ``CommentBase`` and friends.
2d0a5e
-
2d0a5e
- * Export ElementTree compatible XML parser class as
2d0a5e
-   ``XMLTreeBuilder``, as it is called in ET 1.2.
2d0a5e
-
2d0a5e
- * ObjectifiedDataElements in lxml.objectify were not hashable.  They
2d0a5e
-   now use the hash value of the underlying Python value (string,
2d0a5e
-   number, etc.) to which they compare equal.
2d0a5e
-
2d0a5e
- * Parsing broken fragments in lxml.html could fail if the fragment
2d0a5e
-   contained an orphaned closing '' tag.
2d0a5e
-
2d0a5e
- * Using XSLT extension elements around the root of the output document
2d0a5e
-   crashed.
2d0a5e
-
2d0a5e
- * ``lxml.cssselect`` did not distinguish between ``x[attr="val"]`` and
2d0a5e
-   ``x [attr="val"]`` (with a space).  The latter now matches the
2d0a5e
-   attribute independent of the element.
2d0a5e
-
2d0a5e
- * Rewriting multiple links inside of HTML text content could end up
2d0a5e
-   replacing unrelated content as replacements could impact the
2d0a5e
-   reported position of subsequent matches.  Modifications are now
2d0a5e
-   simplified by letting the ``iterlinks()`` generator in ``lxml.html``
2d0a5e
-   return links in reversed order if they appear inside the same text
2d0a5e
-   node.  Thus, replacements and link-internal modifications no longer
2d0a5e
-   change the position of links reported afterwards.
2d0a5e
-
2d0a5e
- * The ``.value`` attribute of ``textarea`` elements in lxml.html did
2d0a5e
-   not represent the complete raw value (including child tags etc.). It
2d0a5e
-   now serialises the complete content on read and replaces the
2d0a5e
-   complete content by a string on write.
2d0a5e
-
2d0a5e
- * Target parser didn't call ``.close()`` on the target object if
2d0a5e
-   parsing failed.  Now it is guaranteed that ``.close()`` will be
2d0a5e
-   called after parsing, regardless of the outcome.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
- -------------
2d0a5e
-
2d0a5e
- * Official support for Python 3.1.2 and later.
2d0a5e
-
2d0a5e
- * Static MS Windows builds can now download their dependencies
2d0a5e
-   themselves.
2d0a5e
-
2d0a5e
- * ``Element.attrib`` no longer uses a cyclic reference back to its
2d0a5e
-   Element object.  It therefore no longer requires the garbage
2d0a5e
-   collector to clean up.
2d0a5e
-
2d0a5e
- * Static builds include libiconv, in addition to libxml2 and libxslt.
2d0a5e
2d0a5e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.8-4
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2d0a5e
2d0a5e
* Wed Dec 29 2010  David Malcolm <dmalcolm@redhat.com> - 2.2.8-3
2d0a5e
- rebuild for newer python3
2d0a5e
2d0a5e
* Fri Nov  5 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.8-2
2d0a5e
- Rebuild for newer libxml2
2d0a5e
2d0a5e
* Mon Sep  6 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.8-1
2d0a5e
- 2.2.8 (2010-09-02)
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-     * Crash in newer libxml2 versions when moving elements between
2d0a5e
-       documents that had attributes on replaced XInclude nodes.
2d0a5e
-     * Import fix for urljoin in Python 3.1+.
2d0a5e
2d0a5e
* Tue Aug 24 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.7-3
2d0a5e
- Don't byte-compile files during install because setup.py doesn't
2d0a5e
  properly byte compile for Python version 3.2
2d0a5e
2d0a5e
* Sun Aug 22 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.7-2
2d0a5e
- Rebuild for Python 3.2
2d0a5e
2d0a5e
* Mon Jul 26 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.7-1
2d0a5e
- 2.2.7 (2010-07-24)
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-     * Crash in XSLT when generating text-only result documents with a stylesheet created in a different thread.
2d0a5e
2d0a5e
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.2.6-4
2d0a5e
- actually add the patch this time
2d0a5e
2d0a5e
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.2.6-3
2d0a5e
- workaround for 2to3 issue (patch 0; bug 600036)
2d0a5e
2d0a5e
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.2.6-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2d0a5e
2d0a5e
* Tue Mar  2 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.6-1
2d0a5e
- 2.2.6 (2010-03-02)
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Fixed several Python 3 regressions by building with Cython 0.11.3.
2d0a5e
2d0a5e
* Mon Mar  1 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.5-1
2d0a5e
- 2.2.5 (2010-02-28)
2d0a5e
-
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * Support for running XSLT extension elements on the input root node
2d0a5e
-      (e.g. in a template matching on "/").
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Crash in XPath evaluation when reading smart strings from a document
2d0a5e
-      other than the original context document.
2d0a5e
-    * Support recent versions of html5lib by not requiring its XHTMLParser
2d0a5e
-      in htmlparser.py anymore.
2d0a5e
-    * Manually instantiating the custom element classes in lxml.objectify
2d0a5e
-      could crash.
2d0a5e
-    * Invalid XML text characters were not rejected by the API when they
2d0a5e
-      appeared in unicode strings directly after non-ASCII characters.
2d0a5e
-    * lxml.html.open_http_urllib() did not work in Python 3.
2d0a5e
-    * The functions strip_tags() and strip_elements() in lxml.etree did
2d0a5e
-      not remove all occurrences of a tag in all cases.
2d0a5e
-    * Crash in XSLT extension elements when the XSLT context node is not
2d0a5e
-      an element.
2d0a5e
2d0a5e
* Mon Feb 15 2010 Thomas Spura <tomspur@fedoraproject.org> - 2.2.4-2
2d0a5e
- update to current python3 guidelines
2d0a5e
- be more explicit in %%files
2d0a5e
- use %%global and not %%define
2d0a5e
- create docs subpackage
2d0a5e
- add stripping 3-byte Byte Order Marker from src/lxml/tests/test_errors.py
2d0a5e
  to get 2to3 to work (dmalcolm)
2d0a5e
- fixes FTBFS (#564674)
2d0a5e
2d0a5e
* Thu Jan 14 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.4-1
2d0a5e
- Update to 2.2.4
2d0a5e
- Enable Python 3 subpackage
2d0a5e
2d0a5e
* Thu Nov  5 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.3-3
2d0a5e
- F-13's python build chain must be a little different...
2d0a5e
2d0a5e
* Thu Nov  5 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.3-2
2d0a5e
- Add option to build a Python 3 subpackage, original patch by David Malcolm
2d0a5e
2d0a5e
* Fri Oct 30 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.3-1
2d0a5e
- 2.2.3 (2009-10-30)
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * The resolve_entities option did not work in the incremental feed
2d0a5e
-      parser.
2d0a5e
-    * Looking up and deleting attributes without a namespace could hit a
2d0a5e
-      namespaced attribute of the same name instead.
2d0a5e
-    * Late errors during calls to SubElement() (e.g. attribute related
2d0a5e
-      ones) could leave a partially initialised element in the tree.
2d0a5e
-    * Modifying trees that contain parsed entity references could result
2d0a5e
-      in an infinite loop.
2d0a5e
-    * ObjectifiedElement.__setattr__ created an empty-string child element
2d0a5e
-      when the attribute value was rejected as a non-unicode/non-ascii
2d0a5e
-      string
2d0a5e
-    * Syntax errors in lxml.cssselect could result in misleading error
2d0a5e
-      messages.
2d0a5e
-    * Invalid syntax in CSS expressions could lead to an infinite loop in
2d0a5e
-      the parser of lxml.cssselect.
2d0a5e
-    * CSS special character escapes were not properly handled in
2d0a5e
-      lxml.cssselect.
2d0a5e
-    * CSS Unicode escapes were not properly decoded in lxml.cssselect.
2d0a5e
-    * Select options in HTML forms that had no explicit value attribute
2d0a5e
-      were not handled correctly. The HTML standard dictates that their
2d0a5e
-      value is defined by their text content. This is now supported by
2d0a5e
-      lxml.html.
2d0a5e
-    * XPath raised a TypeError when finding CDATA sections. This is now
2d0a5e
-      fully supported.
2d0a5e
-    * Calling help(lxml.objectify) didn't work at the prompt.
2d0a5e
-    * The ElementMaker in lxml.objectify no longer defines the default
2d0a5e
-      namespaces when annotation is disabled.
2d0a5e
-    * Feed parser failed to honour the 'recover' option on parse errors.
2d0a5e
-    * Diverting the error logging to Python's logging system was broken.
2d0a5e
2d0a5e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2d0a5e
2d0a5e
* Sun Jun 21 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.2-1
2d0a5e
- 2.2.2 (2009-06-21)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * New helper functions strip_attributes(), strip_elements(),
2d0a5e
-      strip_tags() in lxml.etree to remove attributes/subtrees/tags
2d0a5e
-      from a subtree.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Namespace cleanup on subtree insertions could result in missing
2d0a5e
-      namespace declarations (and potentially crashes) if the element
2d0a5e
-      defining a namespace was deleted and the namespace was not used
2d0a5e
-      by the top element of the inserted subtree but only in deeper
2d0a5e
-      subtrees.
2d0a5e
-    * Raising an exception from a parser target callback didn't always
2d0a5e
-      terminate the parser.
2d0a5e
-    * Only {true, false, 1, 0} are accepted as the lexical representation
2d0a5e
-      for BoolElement ({True, False, T, F, t, f} not any more), restoring
2d0a5e
-      lxml <= 2.0 behaviour.
2d0a5e
2d0a5e
* Tue Jun  2 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2.1-1
2d0a5e
- 2.2.1 (2009-06-02)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * Injecting default attributes into a document during XML Schema
2d0a5e
-      validation (also at parse time).
2d0a5e
-    * Pass huge_tree parser option to disable parser security restrictions
2d0a5e
-      imposed by libxml2 2.7.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * The script for statically building libxml2 and libxslt didn't work
2d0a5e
-      in Py3.
2d0a5e
-    * XMLSchema() also passes invalid schema documents on to libxml2 for
2d0a5e
-      parsing (which could lead to a crash before release 2.6.24).
2d0a5e
2d0a5e
* Tue Mar 24 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-1
2d0a5e
- 2.2 (2009-03-21)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * Support for standalone flag in XML declaration through
2d0a5e
-      tree.docinfo.standalone and by passing standalone=True/False on
2d0a5e
-      serialisation.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Crash when parsing an XML Schema with external imports from a
2d0a5e
-      filename.
2d0a5e
2d0a5e
* Fri Feb 27 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-0.8.beta4
2d0a5e
- 2.2beta4 (2009-02-27)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * Support strings and instantiable Element classes as child arguments
2d0a5e
-      to the constructor of custom Element classes.
2d0a5e
-    * GZip compression support for serialisation to files and file-like
2d0a5e
-      objects.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Deep-copying an ElementTree copied neither its sibling PIs and
2d0a5e
-      comments nor its internal/external DTD subsets.
2d0a5e
-    * Soupparser failed on broken attributes without values.
2d0a5e
-    * Crash in XSLT when overwriting an already defined attribute using
2d0a5e
-      xsl:attribute.
2d0a5e
-    * Crash bug in exception handling code under Python 3. This was due to
2d0a5e
-      a problem in Cython, not lxml itself.
2d0a5e
-    * lxml.html.FormElement._name() failed for non top-level forms.
2d0a5e
-    * TAG special attribute in constructor of custom Element classes was
2d0a5e
-      evaluated incorrectly.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
-
2d0a5e
-    * Official support for Python 3.0.1.
2d0a5e
-    * Element.findtext() now returns an empty string instead of None for
2d0a5e
-      Elements without text content.
2d0a5e
2d0a5e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-0.7.beta3
2d0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2d0a5e
2d0a5e
* Tue Feb 17 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-0.6.beta3
2d0a5e
- 2.2beta3 (2009-02-17)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * XSLT.strparam() class method to wrap quoted string parameters that
2d0a5e
-     require escaping.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Memory leak in XPath evaluators.
2d0a5e
-    * Crash when parsing indented XML in one thread and merging it with
2d0a5e
-      other documents parsed in another thread.
2d0a5e
-    * Setting the base attribute in lxml.objectify from a unicode string
2d0a5e
-      failed.
2d0a5e
-    * Fixes following changes in Python 3.0.1.
2d0a5e
-    * Minor fixes for Python 3.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
-
2d0a5e
-    * The global error log (which is copied into the exception log) is now
2d0a5e
-      local to a thread, which fixes some race conditions.
2d0a5e
-    * More robust error handling on serialisation.
2d0a5e
2d0a5e
* Sun Jan 25 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-0.5.beta2
2d0a5e
- 2.2beta2 (2009-01-25)
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Potential memory leak on exception handling. This was due to a
2d0a5e
-      problem in Cython, not lxml itself.
2d0a5e
-    * iter_links (and related link-rewriting functions) in lxml.html would
2d0a5e
-      interpret CSS like url("link") incorrectly (treating the quotation
2d0a5e
-      marks as part of the link).
2d0a5e
-    * Failing import on systems that have an io module.
2d0a5e
2d0a5e
* Fri Dec 12 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-0.4.beta1
2d0a5e
- 2.2beta1 (2008-12-12)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * Allow lxml.html.diff.htmldiff to accept Element objects,
2d0a5e
-      not just HTML strings.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Crash when using an XPath evaluator in multiple threads.
2d0a5e
-    * Fixed missing whitespace before Link:... in lxml.html.diff.
2d0a5e
-
2d0a5e
- Other changes
2d0a5e
-
2d0a5e
-    * Export lxml.html.parse.
2d0a5e
2d0a5e
* Fri Nov 28 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-0.3.alpha1
2d0a5e
- Rebuild for Python 2.6
2d0a5e
2d0a5e
* Mon Nov 24 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-0.2.alpha1
2d0a5e
- Don't forget to upload the sources!
2d0a5e
2d0a5e
* Mon Nov 24 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.2-0.1.alpha1
2d0a5e
- 2.2alpha1 (2008-11-23)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * Support for XSLT result tree fragments in XPath/XSLT extension
2d0a5e
-      functions.
2d0a5e
-    * QName objects have new properties namespace and localname.
2d0a5e
-    * New options for exclusive C14N and C14N without comments.
2d0a5e
-    * Instantiating a custom Element classes creates a new Element.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * XSLT didn't inherit the parse options of the input document.
2d0a5e
-    * 0-bytes could slip through the API when used inside of Unicode
2d0a5e
-      strings.
2d0a5e
-    * With lxml.html.clean.autolink, links with balanced parenthesis, that
2d0a5e
-      end in a parenthesis, will be linked in their entirety (typical with
2d0a5e
-      Wikipedia links).
2d0a5e
2d0a5e
* Mon Nov 17 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.1.3-1
2d0a5e
- 2.1.3 (2008-11-17)
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Ref-count leaks when lxml enters a try-except statement while an
2d0a5e
-      outside exception lives in sys.exc_*(). This was due to a problem
2d0a5e
-      in Cython, not lxml itself.
2d0a5e
-    * Parser Unicode decoding errors could get swallowed by other
2d0a5e
-      exceptions.
2d0a5e
-    * Name/import errors in some Python modules.
2d0a5e
-    * Internal DTD subsets that did not specify a system or public ID
2d0a5e
-      were not serialised and did not appear in the docinfo property
2d0a5e
-      of ElementTrees.
2d0a5e
-    * Fix a pre-Py3k warning when parsing from a gzip file in Py2.6.
2d0a5e
-    * Test suite fixes for libxml2 2.7.
2d0a5e
-    * Resolver.resolve_string() did not work for non-ASCII byte strings.
2d0a5e
-    * Resolver.resolve_file() was broken.
2d0a5e
-    * Overriding the parser encoding didn't work for many encodings.
2d0a5e
2d0a5e
* Fri Sep  5 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.1.2-1
2d0a5e
- 2.1.2 (2008-09-05)
2d0a5e
- Features added
2d0a5e
-
2d0a5e
-    * lxml.etree now tries to find the absolute path name of files when
2d0a5e
-      parsing from a file-like object. This helps custom resolvers when
2d0a5e
-      resolving relative URLs, as lixbml2 can prepend them with the path of
2d0a5e
-      the source document.
2d0a5e
-
2d0a5e
- Bugs fixed
2d0a5e
-
2d0a5e
-    * Memory problem when passing documents between threads.
2d0a5e
-    * Target parser did not honour the recover option and raised an exception
2d0a5e
-      instead of calling .close() on the target.
2d0a5e
2d0a5e
* Fri Jul 25 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.1.1-1
2d0a5e
- Update to 2.1.1
2d0a5e
2d0a5e
* Fri Jun 20 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.7-1
2d0a5e
- Update to 2.0.7
2d0a5e
- Update download URL
2d0a5e
2d0a5e
* Sat May 31 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.6-1
2d0a5e
- Update to 2.0.6
2d0a5e
2d0a5e
* Thu May  8 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.5-1
2d0a5e
- Update to 2.0.5
2d0a5e
2d0a5e
* Wed Mar 26 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.3-1
2d0a5e
- Update to 2.0.3
2d0a5e
2d0a5e
* Sat Feb 23 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.2-1
2d0a5e
- Update to 2.0.2
2d0a5e
2d0a5e
* Tue Feb 19 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 2.0.1-1
2d0a5e
- Update to 2.0.1
2d0a5e
2d0a5e
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.6-2
2d0a5e
- Autorebuild for GCC 4.3
2d0a5e
2d0a5e
* Sun Nov  4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.3.6-1
2d0a5e
- Update to 1.3.6.
2d0a5e
2d0a5e
* Mon Oct 22 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.3.5-1
2d0a5e
- Update to 1.3.5.
2d0a5e
2d0a5e
* Thu Aug 30 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.3.4-1
2d0a5e
- Update to 1.3.4.
2d0a5e
2d0a5e
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.3.3-3
2d0a5e
- Rebuild for selinux ppc32 issue.
2d0a5e
2d0a5e
* Tue Aug 28 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.3.3-2
2d0a5e
- BR python-setuptools-devel
2d0a5e
2d0a5e
* Mon Jul 30 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.3.3-1
2d0a5e
- Update to 1.3.3
2d0a5e
2d0a5e
* Fri Jan 19 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1.2-1
2d0a5e
- Update to 1.1.2
2d0a5e
2d0a5e
* Thu Dec 14 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 1.0.3-3
2d0a5e
- Rebuild for new Python
2d0a5e
2d0a5e
* Sat Sep 16 2006 Shahms E. King <shahms@shahms.com> 1.0.3-2
2d0a5e
- Rebuild for FC6
2d0a5e
2d0a5e
* Thu Aug 17 2006 Shahms E. King <shahms@shahms.com> 1.0.3-1
2d0a5e
- Update to new upstream version
2d0a5e
2d0a5e
* Fri Aug 11 2006 Shahms E. King <shahms@shahms.com> 1.0.2-2
2d0a5e
- Include, don't ghost .pyo files per new guidelines
2d0a5e
2d0a5e
* Fri Jul 07 2006 Shahms E. King <shahms@shahms.com> 1.0.2-1
2d0a5e
- Update to new upstream release
2d0a5e
2d0a5e
* Mon Jun 26 2006 Shahms E. King <shahms@shahms.com> 1.0.1-1
2d0a5e
- Update to new upstream release
2d0a5e
2d0a5e
* Fri Jun 02 2006 Shahms E. King <shahms@shahms.com> 1.0-1
2d0a5e
- Update to new upstream 1.0 release
2d0a5e
2d0a5e
* Wed Apr 26 2006 Shahms E. King <shahms@shahms.com> 0.9.1-3
2d0a5e
- Add python-setuptools to BuildRequires
2d0a5e
- Use dist tag
2d0a5e
2d0a5e
* Wed Apr 26 2006 Shahms E. King <shahms@shahms.com> 0.9.1-2
2d0a5e
- Fix summary and description
2d0a5e
2d0a5e
* Tue Apr 18 2006 Shahms E. King <shahms@shahms.com> 0.9.1-1
2d0a5e
- update the new upstream version
2d0a5e
- remove Pyrex build req
2d0a5e
2d0a5e
* Tue Dec 13 2005 Shahms E. King <shahms@shahms.com> 0.8-1
2d0a5e
- Initial package