diff --git a/.github/workflows/test-xmlschema.yml b/.github/workflows/test-xmlschema.yml index 1ef51b89..436e69e1 100644 --- a/.github/workflows/test-xmlschema.yml +++ b/.github/workflows/test-xmlschema.yml @@ -35,9 +35,16 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools - - name: Install optional dependencies + - name: Build and install lxml for Python 3.14-alpha + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14.0-alpha.1' }} + run: | + sudo apt-get install -y libxml2-dev libxslt-dev python3-dev + pip install lxml + - name: Install lxml for Python < 3.14 if: ${{ matrix.python-version != '3.14.0-alpha.1' }} - run: pip install lxml jinja2 + run: pip install lxml + - name: Install other optional dependencies + run: pip install jinja2 - name: Test with unittest run: | pip install . @@ -48,5 +55,5 @@ jobs: flake8 xmlschema --max-line-length=100 --statistics - name: Lint with mypy run: | - pip install mypy==1.13.0 elementpath==4.5.0 lxml-stubs + pip install mypy==1.13.0 elementpath==4.6.0 lxml-stubs mypy --show-error-codes --strict xmlschema diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ee44137f..97e1be9e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,12 @@ CHANGELOG ********* +`v3.4.3`_ (2024-10-31) +====================== +* Fix incorrect validation error for substitution group with abstract head (issue #417) +* Refactor XSD identities processing using also typed XPath 2.0+ for getting values (issue #418) +* Clean tag retrieval during encode for some converter types (Abdera, BadgerFish and GData) + `v3.4.2`_ (2024-09-17) ====================== * Fix other failing URL normalization tests @@ -727,3 +733,4 @@ v0.9.6 (2017-05-05) .. _v3.4.0: https://github.com/brunato/xmlschema/compare/v3.3.2...v3.4.0 .. _v3.4.1: https://github.com/brunato/xmlschema/compare/v3.4.0...v3.4.1 .. _v3.4.2: https://github.com/brunato/xmlschema/compare/v3.4.1...v3.4.2 +.. _v3.4.3: https://github.com/brunato/xmlschema/compare/v3.4.2...v3.4.3 diff --git a/doc/conf.py b/doc/conf.py index 4382be36..324c02e8 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -81,7 +81,7 @@ # The short X.Y version. version = '3.4' # The full version, including alpha/beta/rc tags. -release = '3.4.2' +release = '3.4.3' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/publiccode.yml b/publiccode.yml index a4e43dfd..7ab467fb 100644 --- a/publiccode.yml +++ b/publiccode.yml @@ -6,8 +6,8 @@ publiccodeYmlVersion: '0.2' name: xmlschema url: 'https://github.com/sissaschool/xmlschema' landingURL: 'https://github.com/sissaschool/xmlschema' -releaseDate: '2024-09-17' -softwareVersion: v3.4.2 +releaseDate: '2024-10-31' +softwareVersion: v3.4.3 developmentStatus: stable platforms: - linux diff --git a/setup.py b/setup.py index ea0ada66..675a4f94 100755 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( name='xmlschema', - version='3.4.2', + version='3.4.3', packages=find_packages(include=['xmlschema*']), package_data={ 'xmlschema': ['py.typed', 'locale/**/*.mo', 'locale/**/*.po', 'schemas/*/*.xsd'], @@ -63,6 +63,7 @@ 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries', diff --git a/tox.ini b/tox.ini index 24786c4b..fcb009cc 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] min_version = 4.0 envlist = flake8, py{38,39,310,311,312,313,314,py3}, ep{44,45,46}, docs, - mypy-py{38,39,310,311,312,313,py3}, coverage, pytest + mypy-py{38,39,310,311,312,313,314,py3}, coverage, pytest skip_missing_interpreters = true work_dir = {tox_root}/../.tox/xmlschema @@ -44,10 +44,10 @@ commands = flake8 tests flake8 scripts -[testenv:mypy-py{38,39,310,311,312,py3}] +[testenv:mypy-py{38,39,310,311,312,313,314,py3}] deps = mypy==1.13.0 - elementpath==4.5.0 + elementpath==4.6.0 lxml-stubs jinja2 commands = diff --git a/xmlschema/__init__.py b/xmlschema/__init__.py index 506ad980..975f2ae0 100644 --- a/xmlschema/__init__.py +++ b/xmlschema/__init__.py @@ -33,7 +33,7 @@ XMLSchema, XMLSchema10, XMLSchema11, XsdComponent, XsdType, XsdElement, XsdAttribute ) -__version__ = '3.4.2' +__version__ = '3.4.3' __author__ = "Davide Brunato" __contact__ = "brunato@sissa.it" __copyright__ = "Copyright 2016-2024, SISSA"