From: Hyunjee Kim
Date: Thu, 31 Jan 2019 01:38:55 +0000 (+0900)
Subject: Imported Upstream version 3.3.1
X-Git-Tag: upstream/4.3.0~31
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=deb434d12201dcc13a6db85cac7e10a7913ec2d1;p=platform%2Fupstream%2Fpython-lxml.git
Imported Upstream version 3.3.1
Change-Id: I1504215716b1eb9ef9b69316e0b761cd0bd89f30
Signed-off-by: Hyunjee Kim
---
diff --git a/CHANGES.txt b/CHANGES.txt
index 1ae43a3..77801c2 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,30 @@
lxml changelog
==============
+3.3.1 (2014-02-12)
+==================
+
+Features added
+--------------
+
+Bugs fixed
+----------
+
+* LP#1014290: HTML documents parsed with ``parser.feed()`` failed to find
+ elements during tag iteration.
+
+* LP#1273709: Building in PyPy failed due to missing support for
+ ``PyUnicode_Compare()`` and ``PyByteArray_*()`` in PyPy's C-API.
+
+* LP#1274413: Compilation in MSVC failed due to missing "stdint.h" standard
+ header file.
+
+* LP#1274118: iterparse() failed to parse BOM prefixed files.
+
+Other changes
+-------------
+
+
3.3.0 (2014-01-26)
==================
diff --git a/MANIFEST.in b/MANIFEST.in
index b8b3d80..3be8731 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -2,7 +2,7 @@ exclude *.py
include setup.py ez_setup.py setupinfo.py versioninfo.py buildlibxml.py
include test.py selftest.py selftest2.py
include update-error-constants.py
-include MANIFEST.in Makefile version.txt
+include MANIFEST.in Makefile version.txt requirements.txt
include CHANGES.txt CREDITS.txt INSTALL.txt LICENSES.txt README.rst TODO.txt
recursive-include src *.pyx *.pxd *.pxi *.py
recursive-include src/lxml lxml.etree.c lxml.objectify.c
diff --git a/Makefile b/Makefile
index 6bb1cb8..74dcea1 100644
--- a/Makefile
+++ b/Makefile
@@ -5,17 +5,26 @@ TESTOPTS=
SETUPFLAGS=
LXMLVERSION=`cat version.txt`
-PY2_WITH_CYTHON=$(shell $(PYTHON) -c 'import Cython.Compiler' >/dev/null 2>/dev/null && echo " --with-cython" || true)
+PYTHON_WITH_CYTHON=$(shell $(PYTHON) -c 'import Cython.Compiler' >/dev/null 2>/dev/null && echo " --with-cython" || true)
PY3_WITH_CYTHON=$(shell $(PYTHON3) -c 'import Cython.Compiler' >/dev/null 2>/dev/null && echo " --with-cython" || true)
all: inplace
# Build in-place
inplace:
- $(PYTHON) setup.py $(SETUPFLAGS) build_ext -i $(PY2_WITH_CYTHON)
+ $(PYTHON) setup.py $(SETUPFLAGS) build_ext -i $(PYTHON_WITH_CYTHON)
+
+sdist:
+ $(PYTHON) setup.py $(SETUPFLAGS) sdist $(PYTHON_WITH_CYTHON)
build:
- $(PYTHON) setup.py $(SETUPFLAGS) build $(PY2_WITH_CYTHON)
+ $(PYTHON) setup.py $(SETUPFLAGS) build $(PYTHON_WITH_CYTHON)
+
+wheel:
+ $(PYTHON) setup.py $(SETUPFLAGS) bdist_wheel $(PYTHON_WITH_CYTHON)
+
+wheel_static:
+ $(PYTHON) setup.py $(SETUPFLAGS) bdist_wheel $(PYTHON_WITH_CYTHON) --static-deps
test_build: build
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
diff --git a/PKG-INFO b/PKG-INFO
index 0daeaa4..704dea4 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: lxml
-Version: 3.3.0
+Version: 3.3.1
Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Home-page: http://lxml.de/
Author: lxml dev team
Author-email: lxml-dev@lxml.de
License: UNKNOWN
-Download-URL: http://pypi.python.org/packages/source/l/lxml/lxml-3.3.0.tar.gz
+Download-URL: http://pypi.python.org/packages/source/l/lxml/lxml-3.3.1.tar.gz
Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
provides safe and convenient access to these libraries using the ElementTree
API.
@@ -37,7 +37,7 @@ Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libr
as soon as a maintenance branch has been established. Note that this
requires Cython to be installed at an appropriate version for the build.
- 3.3.0 (2014-01-26)
+ 3.3.1 (2014-02-12)
==================
Features added
@@ -46,8 +46,16 @@ Description: lxml is a Pythonic, mature binding for the libxml2 and libxslt libr
Bugs fixed
----------
- * The heuristic that distinguishes file paths from URLs was tightened
- to produce less false negatives.
+ * LP#1014290: HTML documents parsed with ``parser.feed()`` failed to find
+ elements during tag iteration.
+
+ * LP#1273709: Building in PyPy failed due to missing support for
+ ``PyUnicode_Compare()`` and ``PyByteArray_*()`` in PyPy's C-API.
+
+ * LP#1274413: Compilation in MSVC failed due to missing "stdint.h" standard
+ header file.
+
+ * LP#1274118: iterparse() failed to parse BOM prefixed files.
Other changes
-------------
diff --git a/doc/build.txt b/doc/build.txt
index 90c2597..074b532 100644
--- a/doc/build.txt
+++ b/doc/build.txt
@@ -23,6 +23,7 @@ Cython
.. _pip: http://pypi.python.org/pypi/pip
.. _Cython: http://cython.org
+.. _wheel: http://wheel.readthedocs.org/en/latest/
The lxml.etree and lxml.objectify modules are written in Cython_.
Since we distribute the Cython-generated .c files with lxml releases,
@@ -42,7 +43,9 @@ developer sources (e.g. to test a bug fix that has not been release
yet) or if you want to be an lxml developer, then you do need a
working Cython installation. You can use pip_ to install it::
- pip install "Cython>=0.20"
+ pip install -r requirements.txt
+
+https://github.com/lxml/lxml/blob/master/requirements.txt
lxml currently requires at least Cython 0.20, later release versions
should work as well.
@@ -165,25 +168,53 @@ your operating system type (Linux, Windows, MacOS-X, ...).
.. _`mailing list`: http://lxml.de/mailinglist/
-Building an egg
----------------
+Building an egg or wheel
+------------------------
+
+This is the procedure to make an lxml egg or wheel_ for your platform.
+It assumes that you have ``setuptools`` or ``distribute`` installed, as well
+as the ``wheel`` package.
+
+First, download the lxml-x.y.tar.gz release. This contains the pregenerated
+C files so that you can be sure you build exactly from the release sources.
+Unpack them and ``cd`` into the resulting directory. Then, to build a wheel,
+simply run the command
+
+::
+
+ python setup.py bdist_wheel
+
+or, to build a statically linked wheel with all of libxml2, libxslt and
+friends compiled in, run
-This is the procedure to make an lxml egg for your platform (assuming
-that you have "setuptools" or "distribute" installed):
+ python setup.py bdist_wheel --static-deps
-* Download the lxml-x.y.tar.gz release. This contains the pregenerated C so
- that you can be sure you build exactly from the release sources. Unpack
- them and cd into the resulting directory.
+The resulting .whl file will be written into the ``dist`` directory.
+
+To build an egg file, run
+
+::
+
+ python setup.py build_egg
+
+If you are on a Unix-like platform, you can first build the extension modules
+using
+
+::
+
+ python setup.py build
-* python setup.py build
+and then ``cd`` into the directory ``build/lib.your.platform`` to call
+``strip`` on any ``.so`` file you find there. This reduces the size of
+the binary distribution considerably. Then, from the package root directory,
+call
-* If you're on a unixy platform, cd into ``build/lib.your.platform`` and strip
- any ``.so`` file you find there. This reduces the size of the egg
- considerably.
+::
-* ``python setup.py bdist_egg``
+ python setup.py bdist_egg
-This will put the egg into the ``dist`` directory.
+This will quickly package the pre-built packages into an egg file and
+drop it into the ``dist`` directory.
Building lxml on MacOS-X
diff --git a/doc/html/FAQ.html b/doc/html/FAQ.html
index 19b164d..8a11519 100644
--- a/doc/html/FAQ.html
+++ b/doc/html/FAQ.html
@@ -10,7 +10,7 @@
-
lxml FAQ - Frequently Asked Questions
+
lxml FAQ - Frequently Asked Questions
Frequently asked questions on lxml. See also the notes on compatibility to
ElementTree.
@@ -917,7 +917,7 @@ map it to your namespace. See also the question above.
diff --git a/doc/html/api.html b/doc/html/api.html
index 963c9dc..d74c73a 100644
--- a/doc/html/api.html
+++ b/doc/html/api.html
@@ -8,7 +8,7 @@
-
APIs specific to lxml.etree
+
APIs specific to lxml.etree
lxml.etree tries to follow established APIs wherever possible. Sometimes,
however, the need to expose a feature in an easy way led to the invention of a
@@ -450,7 +450,7 @@ example:
diff --git a/doc/html/api/abc.ABCMeta-class.html b/doc/html/api/abc.ABCMeta-class.html
index c097548..fdf37c2 100644
--- a/doc/html/api/abc.ABCMeta-class.html
+++ b/doc/html/api/abc.ABCMeta-class.html
@@ -426,7 +426,7 @@ even via super()).