diff --git a/.github/workflows/test-xmlschema.yml b/.github/workflows/test-xmlschema.yml index b1c11fe1..d0245f40 100644 --- a/.github/workflows/test-xmlschema.yml +++ b/.github/workflows/test-xmlschema.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.8, 3.9, "3.10", 3.11, 3.12, "3.13.0-beta.3", "pypy-3.10"] + python-version: [3.8, 3.9, "3.10", 3.11, 3.12, "3.13.0-rc.1", "pypy-3.10"] exclude: - os: macos-latest python-version: 3.8 @@ -36,7 +36,7 @@ jobs: python -m pip install --upgrade pip pip install setuptools - name: Install optional dependencies - if: ${{ matrix.python-version != '3.13.0-beta.3' }} + if: ${{ matrix.python-version != '3.13.0-rc.1' }} run: pip install lxml jinja2 - name: Test with unittest run: | @@ -48,5 +48,5 @@ jobs: flake8 xmlschema --max-line-length=100 --statistics - name: Lint with mypy run: | - pip install mypy==1.11.0 elementpath==4.4.0 lxml-stubs + pip install mypy==1.11.2 elementpath==4.4.0 lxml-stubs mypy --show-error-codes --strict xmlschema diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a2e818c7..298b0f86 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,11 @@ CHANGELOG ********* +`v3.4.0`_ (2024-09-10) +====================== +* Extended ModelVisitor to make it usable as an helper class for generating content + (issues #405 and #408) + `v3.3.2`_ (2024-07-29) ====================== * Fix UNC path tests (issues #405 and #408) @@ -709,3 +714,4 @@ v0.9.6 (2017-05-05) .. _v3.3.0: https://github.com/brunato/xmlschema/compare/v3.2.1...v3.3.0 .. _v3.3.1: https://github.com/brunato/xmlschema/compare/v3.3.0...v3.3.1 .. _v3.3.2: https://github.com/brunato/xmlschema/compare/v3.3.1...v3.3.2 +.. _v3.4.0: https://github.com/brunato/xmlschema/compare/v3.3.2...v3.4.0 diff --git a/doc/conf.py b/doc/conf.py index a3441fc7..09ba5524 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -79,9 +79,9 @@ # built documents. # # The short X.Y version. -version = '3.3' +version = '3.4' # The full version, including alpha/beta/rc tags. -release = '3.3.2' +release = '3.4.0' # 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 804bfc52..cb608c8d 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-07-29' -softwareVersion: v3.3.2 +releaseDate: '2024-09-10' +softwareVersion: v3.4.0 developmentStatus: stable platforms: - linux @@ -50,7 +50,7 @@ description: shortDescription: XML Schema validator and data conversion library for Python longDescription: > The _xmlschema_ library is an implementation of [XML - Schema](http://www.w3.org/2001/XMLSchema) for Python (supports Python 3.7+). + Schema](http://www.w3.org/2001/XMLSchema) for Python (supports Python 3.8+). This library arises from the needs of a solid Python layer for processing diff --git a/setup.py b/setup.py index 41c99c7d..38ab7d83 100755 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( name='xmlschema', - version='3.3.2', + version='3.4.0', packages=find_packages(include=['xmlschema*']), package_data={ 'xmlschema': ['py.typed', 'locale/**/*.mo', 'locale/**/*.po', 'schemas/*/*.xsd'], diff --git a/tox.ini b/tox.ini index 27facf46..54bb5de1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] min_version = 4.0 -envlist = flake8, py{38,39,310,311,312,313,py3}, ep44, docs, +envlist = flake8, py{38,39,310,311,312,313,py3}, ep{44,45}, docs, mypy-py{38,39,310,311,312,py3}, coverage, pytest skip_missing_interpreters = true work_dir = {tox_root}/../.tox/xmlschema @@ -28,6 +28,12 @@ deps = jinja2 elementpath~=4.4 +[testenv:ep45] +deps = + lxml + jinja2 + elementpath~=4.5 + [testenv:docs] commands = make -C doc html SPHINXOPTS="-W -n" @@ -49,7 +55,7 @@ commands = [testenv:mypy-py{38,39,310,311,312,py3}] deps = - mypy==1.11.0 + mypy==1.11.2 elementpath==4.4.0 lxml-stubs jinja2 @@ -70,7 +76,7 @@ deps = elementpath>=4.4.0, <5.0.0 lxml jinja2 - mypy==1.11.0 + mypy==1.11.2 lxml-stubs commands = pytest tests -ra diff --git a/xmlschema/__init__.py b/xmlschema/__init__.py index 10f3e08f..44bfc05a 100644 --- a/xmlschema/__init__.py +++ b/xmlschema/__init__.py @@ -33,7 +33,7 @@ XMLSchema, XMLSchema10, XMLSchema11, XsdComponent, XsdType, XsdElement, XsdAttribute ) -__version__ = '3.3.2' +__version__ = '3.4.0' __author__ = "Davide Brunato" __contact__ = "brunato@sissa.it" __copyright__ = "Copyright 2016-2024, SISSA"