Skip to content

Commit

Permalink
Add testenv for Python 3.13 in tox.ini
Browse files Browse the repository at this point in the history
  - Fix a typo and remove deprecated decorator
  • Loading branch information
brunato committed Feb 17, 2024
1 parent e39e0e3 commit fb5270c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
CHANGELOG
*********

`v4.3.0`_ (2024-02-xx)
`v4.3.0`_ (2024-02-17)
======================
* Change the scope of the dynamic schema context evaluation
* Change the purpose of the evaluation with a dynamic schema context
* Add a tox.ini testenv with Python 3.13 pre-releases

`v4.2.1`_ (2024-02-10)
======================
Expand Down
7 changes: 3 additions & 4 deletions elementpath/tdop.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
from abc import ABCMeta
from unicodedata import name as unicode_name
from decimal import Decimal, DecimalException
from typing import Any, cast, overload, no_type_check_decorator, Callable, \
Dict, Generic, List, Optional, Union, Tuple, Type, Pattern, Match, \
MutableMapping, MutableSequence, Iterator, TypeVar
from typing import Any, cast, overload, Callable, Dict, Generic, List, \
Optional, Union, Tuple, Type, Pattern, Match, MutableMapping, \
MutableSequence, Iterator, TypeVar

#
# Simple top-down parser based on Vaughan Pratt's algorithm (Top Down Operator Precedence).
Expand Down Expand Up @@ -797,7 +797,6 @@ def method(cls, symbol: Union[str, Type[TK_co]], bp: int = 0) \
"""
token_class = cls.register(symbol, label='operator', lbp=bp, rbp=bp)

@no_type_check_decorator
def bind(func: Callable[..., Any]) -> Callable[..., Any]:
method_name = func.__name__.partition('_')[0]
if not callable(getattr(token_class, method_name)):
Expand Down
2 changes: 1 addition & 1 deletion elementpath/xpath31/_xpath31_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ def evaluate_parse_ietf_date_function(self, context=None):
tzname_match = re.search(tzname_regex, value, re.IGNORECASE)
if tzname_match is not None:
# only to let be parsed by strptime()
value = re.sub(tzname_regex, 'UTC', value, re.IGNORECASE)
value = re.sub(tzname_regex, 'UTC', value, flags=re.IGNORECASE)

illegal_tzname_regex = r'\b(CET)\b'
if re.search(illegal_tzname_regex, value, re.IGNORECASE) is not None:
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: elementpath
url: 'https://github.com/sissaschool/elementpath'
landingURL: 'https://github.com/sissaschool/elementpath'
releaseDate: '2024-02-10'
softwareVersion: v4.2.1
releaseDate: '2024-02-17'
softwareVersion: v4.3.0
developmentStatus: stable
platforms:
- linux
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries',
Expand Down
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[tox]
min_version = 4.0
envlist =
py{38,39,310,311,312}, pypy3, docs, flake8,
py{38,39,310,311,312,313}, pypy3, docs, flake8,
mypy-py{38,39,310,311,312,py3}, pytest, coverage,
xmlschema{223,231,240,251,301}, w3c-xsdtests
skip_missing_interpreters = true
Expand All @@ -21,6 +21,11 @@ deps =
coverage: coverage
commands = python -m unittest

[testenv:py313]
deps =
xmlschema>=3.0.1
commands = python -m unittest

[testenv:docs]
commands =
make -C doc html SPHINXOPTS="-W -n"
Expand Down

0 comments on commit fb5270c

Please sign in to comment.