Skip to content

Commit b5b1823

Browse files
deepin-community-bot[bot]xzl01
authored andcommitted
feat: update python-xmlschema to 1.10.0-7
1 parent f92cefe commit b5b1823

File tree

160 files changed

+14760
-5491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+14760
-5491
lines changed

.coveragerc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[run]
22
branch = True
33
source = xmlschema/
4-
omit = xmlschema/testing/*
4+
omit =
5+
xmlschema/testing/*
6+
xmlschema/aliases.py
57

68
[report]
79
exclude_lines =

.gitignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
.pc/
1+
*.pyc
2+
*.pyo
3+
*~
4+
*.so
5+
*.egg-info
6+
*.json
7+
*.zip
8+
.idea/
9+
.mypy_cache/
10+
.tox/
11+
.eggs/
12+
.coverage*
13+
!.coveragerc
14+
.ipynb_checkpoints/
15+
doc/_*/
16+
dist/
17+
build/
18+
development/
19+
test_cases/
20+
!tests/test_cases/

.readthedocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build:
2+
image: latest
3+
4+
python:
5+
version: 3.7
6+
pip_install: true
7+
extra_requirements:
8+
- docs

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

CHANGELOG.rst

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,117 @@
22
CHANGELOG
33
*********
44

5+
`v1.10.0`_ (2022-03-07)
6+
======================
7+
* Add 'nonlocal' option to *defuse* argument of `XMLResource` (also for schema classes)
8+
* Add 'none' option to *allow* argument of `XMLResource`
9+
* Fix too strict parsing on XSD annotations (issue #287)
10+
* Drop support for Python 3.6
11+
12+
`v1.9.2`_ (2021-12-23)
13+
======================
14+
* Fix for global simple type naming (issue #278)
15+
16+
`v1.9.1`_ (2021-12-08)
17+
======================
18+
* Improve error reporting for encoded data (issue #275)
19+
* Fix attribute duplicates in attribute group (issue #276)
20+
* Add process_skipped optional argument to decoding/encoding
21+
22+
`v1.9.0`_ (2021-11-30)
23+
======================
24+
* Add iter_decode() to document level API
25+
* Enhance XMLResource class adding usage of pathlib.Path objects
26+
for source and base_url arguments
27+
* Fix for issue #273
28+
29+
`v1.8.2`_ (2021-11-11)
30+
======================
31+
* Fix for issues #266 and #268
32+
* Fix type annotation of XMLSchema source argument (issue #230)
33+
34+
`v1.8.1`_ (2021-10-20)
35+
======================
36+
* Near compliance with strict type annotations
37+
* Removed ModelGroup class, merged with XsdGroup
38+
* Some optimizations and fixes from static analysis
39+
40+
`v1.8.0`_ (2021-09-27)
41+
======================
42+
* Refactor XMLSchemaMeta deprecating BUILDER attribute
43+
* Extend type annotations to package API
44+
* Add static typing tests with checked mypy runs
45+
46+
`v1.7.1`_ (2021-09-03)
47+
======================
48+
* Activate mypy checks for package
49+
* Fix for issues #257 and #259
50+
51+
`v1.7.0`_ (2021-08-02)
52+
======================
53+
* Make XSD annotation parsing lazy
54+
* Add lazy annotations to schema instances
55+
* Add get_annotation() method to multiple-facets classes (issue #255)
56+
57+
`v1.6.4`_ (2021-06-09)
58+
======================
59+
* Add testing config for Python 3.10 (Tox and CI)
60+
* Fix internal _PurePath class with Python 3.10 (issue #251)
61+
* Remove redundant xmlns="" declaration when encoding with lxml (issue #252)
62+
63+
`v1.6.3`_ (2021-06-07)
64+
======================
65+
* Refactor normalize_url() using pathlib.PurePath
66+
* Support UNC paths (issue #246)
67+
* Fix API docs (issue #248)
68+
69+
`v1.6.2`_ (2021-05-03)
70+
======================
71+
* Fix for issue #245 (key/keyref with dynamic types)
72+
* Change default decoding of mixed content with only text to a string
73+
instead of a dictionary (issue #242)
74+
75+
`v1.6.1`_ (2021-04-11)
76+
======================
77+
* Add multi-source initialization and add_schema() to schema class
78+
* Add bytes strings to accepted XML sources (issue #238)
79+
80+
`v1.6.0`_ (2021-04-06)
81+
======================
82+
* XML data bindings and code generators are now considered stable
83+
* Add arguments 'max_depth' and 'extra_validator' to validation methods
84+
* Enhance decoding with 'value_hook' argument
85+
86+
`v1.5.3`_ (2021-03-14)
87+
======================
88+
* Remove unnecessary bindings with schema proxy from ElementPathMixin
89+
to avoid conflicts when schema is used by an XPath 3 parser
90+
* Fix schema logger (issue #228)
91+
92+
`v1.5.2`_ (2021-03-04)
93+
======================
94+
* Improve empty content checking
95+
* Fix simple content restriction of xs:complexType
96+
* Fix facets retrieving for xs:complexType with simple content
97+
98+
`v1.5.1`_ (2021-02-11)
99+
======================
100+
* Optimize NamespaceView read-only mapping
101+
* Add experimental XML data bindings with a DataBindingConverter
102+
* Add experimental PythonGenerator for static codegen with Jinja2
103+
104+
`v1.5.0`_ (2021-02-05)
105+
======================
106+
* Add DataElement class for creating objects with schema bindings
107+
* Add DataElementConverter for decode to structured objects
108+
* Add an experimental abstract base class for building jinja2 based
109+
code generators (jinja2 as an optional dependency)
110+
5111
`v1.4.2`_ (2021-01-24)
6112
======================
7113
* Add decoding of binary datatypes (xs:hexBinary and xs:base64Binary)
8114
* Fix encoding from string values for some builtin datatypes
9-
(decimal, binary, duration and datetime).
115+
(decimal, binary, duration and datetime)
10116

11117
`v1.4.1`_ (2020-12-24)
12118
======================
@@ -394,3 +500,21 @@ v0.9.6 (2017-05-05)
394500
.. _v1.4.0: https://github.com/brunato/xmlschema/compare/v1.3.1...v1.4.0
395501
.. _v1.4.1: https://github.com/brunato/xmlschema/compare/v1.4.0...v1.4.1
396502
.. _v1.4.2: https://github.com/brunato/xmlschema/compare/v1.4.1...v1.4.2
503+
.. _v1.5.0: https://github.com/brunato/xmlschema/compare/v1.4.2...v1.5.0
504+
.. _v1.5.1: https://github.com/brunato/xmlschema/compare/v1.5.0...v1.5.1
505+
.. _v1.5.2: https://github.com/brunato/xmlschema/compare/v1.5.1...v1.5.2
506+
.. _v1.5.3: https://github.com/brunato/xmlschema/compare/v1.5.2...v1.5.3
507+
.. _v1.6.0: https://github.com/brunato/xmlschema/compare/v1.5.3...v1.6.0
508+
.. _v1.6.1: https://github.com/brunato/xmlschema/compare/v1.6.0...v1.6.1
509+
.. _v1.6.2: https://github.com/brunato/xmlschema/compare/v1.6.1...v1.6.2
510+
.. _v1.6.3: https://github.com/brunato/xmlschema/compare/v1.6.2...v1.6.3
511+
.. _v1.6.4: https://github.com/brunato/xmlschema/compare/v1.6.3...v1.6.4
512+
.. _v1.7.0: https://github.com/brunato/xmlschema/compare/v1.6.4...v1.7.0
513+
.. _v1.7.1: https://github.com/brunato/xmlschema/compare/v1.7.0...v1.7.1
514+
.. _v1.8.0: https://github.com/brunato/xmlschema/compare/v1.7.1...v1.8.0
515+
.. _v1.8.1: https://github.com/brunato/xmlschema/compare/v1.8.0...v1.8.1
516+
.. _v1.8.2: https://github.com/brunato/xmlschema/compare/v1.8.1...v1.8.2
517+
.. _v1.9.0: https://github.com/brunato/xmlschema/compare/v1.8.2...v1.9.0
518+
.. _v1.9.1: https://github.com/brunato/xmlschema/compare/v1.9.0...v1.9.1
519+
.. _v1.9.2: https://github.com/brunato/xmlschema/compare/v1.9.1...v1.9.2
520+
.. _v1.10.0: https://github.com/brunato/xmlschema/compare/v1.9.2...v1.10.0

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ xmlschema
1111
.. image:: https://img.shields.io/badge/License-MIT-blue.svg
1212
:alt: MIT License
1313
:target: https://lbesson.mit-license.org/
14-
.. image:: https://travis-ci.org/sissaschool/xmlschema.svg?branch=master
15-
:target: https://travis-ci.org/sissaschool/xmlschema
1614
.. image:: https://img.shields.io/pypi/dm/xmlschema.svg
1715
:target: https://pypi.python.org/pypi/xmlschema/
1816
.. image:: https://img.shields.io/badge/Maintained%3F-yes-green.svg
@@ -21,7 +19,7 @@ xmlschema
2119
.. xmlschema-introduction-start
2220
2321
The *xmlschema* library is an implementation of `XML Schema <http://www.w3.org/2001/XMLSchema>`_
24-
for Python (supports Python 3.6+).
22+
for Python (supports Python 3.7+).
2523

2624
This library arises from the needs of a solid Python layer for processing XML
2725
Schema based files for
@@ -50,7 +48,10 @@ This library includes the following features:
5048
* Data decoding and encoding ruled by converter classes
5149
* An XPath based API for finding schema's elements and attributes
5250
* Support of XSD validation modes *strict*/*lax*/*skip*
53-
* Remote attacks protection by default using an XMLParser that forbids entities
51+
* XML attacks protection using an XMLParser that forbids entities
52+
* Access control on resources addressed by an URL or filesystem path
53+
* XML data bindings based on DataElement class
54+
* Static code generation with Jinja2 templates
5455

5556

5657
Installation

debian/changelog

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,71 @@
1+
python-xmlschema (1.10.0-7) unstable; urgency=medium
2+
3+
* Team upload.
4+
* Do not use PurePath implementation details (Closes: #1056446)
5+
* Fix test setup in d/rules
6+
7+
-- Timo Röhling <[email protected]> Tue, 12 Dec 2023 15:54:47 +0100
8+
9+
python-xmlschema (1.10.0-6) unstable; urgency=medium
10+
11+
* disabled some tests, rather than executing them conditionnally after
12+
the success of "wget http://example.com". Closes: #1034751
13+
14+
-- Georges Khaznadar <[email protected]> Tue, 25 Apr 2023 17:29:03 +0200
15+
16+
python-xmlschema (1.10.0-5) unstable; urgency=medium
17+
18+
* created a target "override_dh_auto_clean" in d/rules to copy the
19+
file mypy.ini to the build directory of pybuild, so tests based
20+
on mypy get a chance of success.
21+
* patched the file tests/test_package.py in order to enforce
22+
encoding="utf-8" for calls of fileinput.input, which may be
23+
necessary with git-build-package in a chroot.
24+
* patched xmlschema/testing/_builders.py and tests/test_xpath.py
25+
to check whether there is Internet access prior to check structures
26+
requiring to retreive schemas from http://example.com; added a
27+
build-dependency on wget.
28+
* those three changes should be sufficient, so it Closes: #1027439
29+
30+
-- Georges Khaznadar <[email protected]> Sat, 22 Apr 2023 16:24:29 +0200
31+
32+
python-xmlschema (1.10.0-4) unstable; urgency=medium
33+
34+
* created the debian patch d/Fix-tests.patch, which modifies two tests:
35+
xmlschema/testing/_builders.py with a true fix, and
36+
tests/test_typing.py which is just disabled (not a true fix).
37+
Closes: #1027439
38+
39+
-- Georges Khaznadar <[email protected]> Sat, 22 Apr 2023 10:58:29 +0200
40+
41+
python-xmlschema (1.10.0-3) unstable; urgency=medium
42+
43+
* Fix patch description
44+
* Bump Standards-Version to 4.6.2 (no changes needed)
45+
* Fix d/watch URL
46+
* Bump copyright
47+
48+
-- Christian Kastner <[email protected]> Sun, 18 Dec 2022 20:47:28 +0100
49+
50+
python-xmlschema (1.10.0-2) unstable; urgency=medium
51+
52+
[ Debian Janitor ]
53+
* Apply multi-arch hints. + python-xmlschema-doc: Add Multi-Arch: foreign.
54+
55+
-- Jelmer Vernooij <[email protected]> Thu, 08 Dec 2022 01:42:02 +0000
56+
57+
python-xmlschema (1.10.0-1) unstable; urgency=medium
58+
59+
* New upstream release. (Closes: #1007820)
60+
- Add python3-jinja2 to dependencies
61+
- Update package description
62+
- Require python-elementpath >= 2.5.0
63+
* Add Skip-failing-packaging-test.patch
64+
* Bump Standards-Version to 4.6.0 (no changes needed)
65+
* Bump debhelper compatibility level to 13
66+
67+
-- Christian Kastner <[email protected]> Thu, 17 Feb 2022 16:11:28 +0100
68+
169
python-xmlschema (1.4.2-1) unstable; urgency=medium
270

371
[ Debian Janitor ]

debian/control

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ Section: python
33
Priority: optional
44
Maintainer: Debian Python Team <[email protected]>
55
Uploaders: Christian Kastner <[email protected]>
6-
Build-Depends: debhelper-compat (= 12),
6+
Build-Depends: debhelper-compat (= 13),
77
dh-python,
88
help2man,
99
python3-all,
10-
python3-elementpath (>= 2.1.2),
10+
python3-elementpath (>= 2.5.0),
11+
python3-jinja2,
1112
python3-lxml,
1213
python3-setuptools,
1314
python3-sphinx <!nodoc>,
1415
python3-sphinx-rtd-theme <!nodoc>,
16+
wget,
1517
Rules-Requires-Root: no
16-
Standards-Version: 4.5.1
18+
Standards-Version: 4.6.2
1719
Homepage: https://github.com/sissaschool/xmlschema
1820
Vcs-Git: https://salsa.debian.org/python-team/packages/python-xmlschema.git
1921
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-xmlschema
@@ -34,6 +36,8 @@ Description: implementation of XML Schema for Python
3436
* Support of XSD validation modes strict/lax/skip
3537
* Remote attacks protection by default using an XMLParser that forbids
3638
entities
39+
* XML data bindings based on DataElement class
40+
* Static code generation with Jinja2 templates
3741
.
3842
This package contains the Python 3.x version of xmlschema.
3943

@@ -42,6 +46,7 @@ Architecture: all
4246
Section: doc
4347
Depends: ${misc:Depends}, ${sphinxdoc:Depends}
4448
Suggests: python3-xmlschema
49+
Multi-Arch: foreign
4550
Description: documentation and examples for xmlschema
4651
This library includes the following features:
4752
.
@@ -55,5 +60,7 @@ Description: documentation and examples for xmlschema
5560
* Support of XSD validation modes strict/lax/skip
5661
* Remote attacks protection by default using an XMLParser that forbids
5762
entities
63+
* XML data bindings based on DataElement class
64+
* Static code generation with Jinja2 templates
5865
.
5966
This package contains the documentation for xmlschema.

0 commit comments

Comments
 (0)