Skip to content

Commit

Permalink
Bump minor release
Browse files Browse the repository at this point in the history
  - Update requirements and static typing exclusions
  • Loading branch information
brunato committed May 18, 2023
1 parent 5c9241a commit 839e28e
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-xmlschema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
- name: Lint with mypy if Python version != 3.7
if: ${{ matrix.python-version != '3.7' }}
run: |
pip install mypy==1.2.0 elementpath==4.1.1 lxml-stubs
pip install mypy==1.3.0 elementpath==4.1.2 lxml-stubs
mypy --show-error-codes --strict xmlschema
- name: Lint with mypy if Python version == 3.7
if: ${{ matrix.python-version == '3.7' }}
run: |
pip install mypy==1.2.0 elementpath==4.1.1 lxml-stubs
pip install mypy==1.3.0 elementpath==4.1.2 lxml-stubs
mypy --show-error-codes --no-warn-redundant-casts --no-warn-unused-ignores --strict xmlschema
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
CHANGELOG
*********

`v2.3.0`_ (2023-05-18)
======================
* Improve sequence/all restriction checks for XSD 1.1
* Add *schema* argument to `Wsdl11Document`

`v2.2.3`_ (2023-04-14)
======================
* Add support for Python 3.12
Expand Down Expand Up @@ -616,3 +621,4 @@ v0.9.6 (2017-05-05)
.. _v2.2.1: https://github.com/brunato/xmlschema/compare/v2.2.0...v2.2.1
.. _v2.2.2: https://github.com/brunato/xmlschema/compare/v2.2.1...v2.2.2
.. _v2.2.3: https://github.com/brunato/xmlschema/compare/v2.2.2...v2.2.3
.. _v2.3.0: https://github.com/brunato/xmlschema/compare/v2.2.3...v2.3.0
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
# built documents.
#
# The short X.Y version.
version = '2.2'
version = '2.3'
# The full version, including alpha/beta/rc tags.
release = '2.2.3'
release = '2.3.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ publiccodeYmlVersion: '0.2'
name: xmlschema
url: 'https://github.com/sissaschool/xmlschema'
landingURL: 'https://github.com/sissaschool/xmlschema'
releaseDate: '2023-04-14'
softwareVersion: v2.2.3
releaseDate: '2023-05-18'
softwareVersion: v2.3.0
developmentStatus: stable
platforms:
- linux
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
setuptools
tox>=4.0
coverage
elementpath>=4.0.0, <5.0.0
elementpath>=4.1.2, <5.0.0
lxml
jinja2
memory_profiler
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name='xmlschema',
version='2.2.3',
version='2.3.0',
packages=find_packages(include=['xmlschema*']),
package_data={
'xmlschema': ['py.typed', 'locale/**/*.mo', 'locale/**/*.po', 'schemas/*/*.xsd'],
Expand All @@ -32,13 +32,13 @@
]
},
python_requires='>=3.7',
install_requires=['elementpath>=4.0.0, <5.0.0'],
install_requires=['elementpath>=4.1.2, <5.0.0'],
extras_require={
'codegen': ['elementpath>=4.0.0, <5.0.0', 'jinja2'],
'dev': ['tox', 'coverage', 'lxml', 'elementpath>=4.0.0, <5.0.0',
'codegen': ['elementpath>=4.1.2, <5.0.0', 'jinja2'],
'dev': ['tox', 'coverage', 'lxml', 'elementpath>=4.1.2, <5.0.0',
'memory_profiler', 'Sphinx', 'sphinx_rtd_theme', 'jinja2',
'flake8', 'mypy', 'lxml-stubs'],
'docs': ['elementpath>=4.0.0, <5.0.0', 'Sphinx', 'sphinx_rtd_theme', 'jinja2']
'docs': ['elementpath>=4.1.2, <5.0.0', 'Sphinx', 'sphinx_rtd_theme', 'jinja2']
},
author='Davide Brunato',
author_email='brunato@sissa.it',
Expand Down
23 changes: 9 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
envlist = py{37,38,39,310,311,312,py3}, ep{40}, docs,
envlist = py{37,38,39,310,311,312,py3}, docs,
flake8, mypy-py{37,38,39,310,311,312,py3}, coverage, pytest
skip_missing_interpreters = true
work_dir = {tox_root}/../.tox/xmlschema

[testenv]
deps =
elementpath>=4.0.0, <5.0.0
elementpath>=4.1.2, <5.0.0
lxml
jinja2
py{310,311}: memory_profiler
Expand All @@ -18,15 +18,10 @@ commands =

[testenv:py312]
deps =
elementpath>=4.0.0, <5.0.0
elementpath>=4.1.2, <5.0.0
# lxml: skip for now
jinja2

[testenv:ep40]
deps =
elementpath~=4.0.0
lxml

[testenv:docs]
commands =
make -C doc html SPHINXOPTS="-W -n"
Expand All @@ -47,17 +42,17 @@ commands =

[testenv:mypy-py37]
deps =
mypy==1.2.0
elementpath==4.1.1
mypy==1.3.0
elementpath==4.1.2
lxml-stubs
jinja2
commands =
mypy --config-file {toxinidir}/mypy.ini xmlschema

[testenv:mypy-py{38,39,310,311,312,py3}]
deps =
mypy==1.2.0
elementpath==4.1.1
mypy==1.3.0
elementpath==4.1.2
lxml-stubs
jinja2
commands =
Expand All @@ -74,10 +69,10 @@ commands =
deps =
pytest
pytest-randomly
elementpath>=4.0.0, <5.0.0
elementpath>=4.1.2, <5.0.0
lxml
jinja2
mypy==1.2.0
mypy==1.3.0
lxml-stubs
commands =
pytest tests -ra
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
XsdComponent, XsdType, XsdElement, XsdAttribute
)

__version__ = '2.2.3'
__version__ = '2.3.0'
__author__ = "Davide Brunato"
__contact__ = "brunato@sissa.it"
__copyright__ = "Copyright 2016-2023, SISSA"
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
"""Command Line Interface"""
import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/extras/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
"""
This module contains abstact base class and helper
functions for building XSD based code generators.
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/extras/wsdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
import os

from ..exceptions import XMLSchemaException, XMLSchemaValueError
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
"""
Subpackage with unittest extensions for xmlschema.
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/testing/_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
import pdb
import os
import ast
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/testing/_case_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
"""
Tests subpackage module: common definitions for unittest scripts of the 'xmlschema' package.
"""
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/testing/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
"""
Test factory for creating test cases from lists of paths to XSD or XML files.
Expand Down
2 changes: 1 addition & 1 deletion xmlschema/testing/_observers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# @author Davide Brunato <brunato@sissa.it>
#
# type: ignore
# mypy: ignore-errors
"""
Observers for testing XMLSchema classes.
"""
Expand Down

0 comments on commit 839e28e

Please sign in to comment.