Skip to content

Commit

Permalink
Make lxml stable branch compatible with CPython 3.12 (GH-377)
Browse files Browse the repository at this point in the history
Cython updated to >=0.29.35 for 3.12 compatibility
CI updated
Documentation and metadata updated
Version bumped

Fixes https://bugs.launchpad.net/lxml/+bug/2024719
  • Loading branch information
arcivanov committed Jul 3, 2023
1 parent c17c1ca commit 35b9481
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -49,7 +49,7 @@ jobs:
- "3.9"
- "3.10" # quotes to avoid being interpreted as the number 3.1
- "3.11"
# - "3.12-dev"
- "3.12-dev"
env: [{ STATIC_DEPS: true }, { STATIC_DEPS: false }]

include:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wheels.yml
Expand Up @@ -85,6 +85,8 @@ jobs:
pyversion: "cp310*"
- image: manylinux_2_24_aarch64
pyversion: "cp311*"
- image: manylinux_2_24_aarch64
pyversion: "cp312*"

- image: musllinux_1_1_aarch64
pyversion: "cp36*"
Expand All @@ -98,6 +100,8 @@ jobs:
pyversion: "cp310*"
- image: musllinux_1_1_aarch64
pyversion: "cp311*"
- image: musllinux_1_1_aarch64
pyversion: "cp312*"

steps:
- uses: actions/checkout@v3
Expand Down
9 changes: 9 additions & 0 deletions CHANGES.txt
Expand Up @@ -2,6 +2,15 @@
lxml changelog
==============

4.9.3 (2023-06-30)
==================

Bugs fixed
----------

* Python 3.12-compatible release with no substantive changes


4.9.2 (2022-12-13)
==================

Expand Down
9 changes: 6 additions & 3 deletions doc/main.txt
Expand Up @@ -160,8 +160,8 @@ Index <http://pypi.python.org/pypi/lxml/>`_ (PyPI). It has the source
that compiles on various platforms. The source distribution is signed
with `this key <pubkey.asc>`_.

The latest version is `lxml 4.9.2`_, released 2022-12-13
(`changes for 4.9.2`_). `Older versions <#old-versions>`_
The latest version is `lxml 4.9.3`_, released 2022-06-30
(`changes for 4.9.3`_). `Older versions <#old-versions>`_
are listed below.

Please take a look at the
Expand Down Expand Up @@ -256,7 +256,9 @@ See the websites of lxml
..
and the `latest in-development version <https://lxml.de/dev/>`_.

.. _`PDF documentation`: lxmldoc-4.9.2.pdf
.. _`PDF documentation`: lxmldoc-4.9.3.pdf

* `lxml 4.9.3`_, released 2023-06-30 (`changes for 4.9.3`_)

* `lxml 4.9.2`_, released 2022-12-13 (`changes for 4.9.2`_)

Expand Down Expand Up @@ -284,6 +286,7 @@ See the websites of lxml

* `older releases <https://lxml.de/4.6/#old-versions>`_

.. _`lxml 4.9.3`: /files/lxml-4.9.3.tgz
.. _`lxml 4.9.2`: /files/lxml-4.9.2.tgz
.. _`lxml 4.9.1`: /files/lxml-4.9.1.tgz
.. _`lxml 4.9.0`: /files/lxml-4.9.0.tgz
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1 +1 @@
Cython>=0.29.7
Cython>=0.29.35
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -263,6 +263,8 @@ def build_packages(files):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: C',
'Operating System :: OS Independent',
'Topic :: Text Processing :: Markup :: HTML',
Expand Down
2 changes: 1 addition & 1 deletion src/lxml/__init__.py
@@ -1,6 +1,6 @@
# this is a package

__version__ = "4.9.2"
__version__ = "4.9.3"


def get_include():
Expand Down

0 comments on commit 35b9481

Please sign in to comment.