[med-svn] [Git][python-team/packages/python-schema-salad][master] 3 commits: add missing file to mistune3 patch
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Thu Jan 18 17:20:13 GMT 2024
Michael R. Crusoe pushed to branch master at Debian Python Team / packages / python-schema-salad
Commits:
e693a3e4 by Michael R. Crusoe at 2024-01-18T16:37:07+01:00
add missing file to mistune3 patch
- - - - -
70fc47e4 by Michael R. Crusoe at 2024-01-18T17:55:04+01:00
enable additional testing without an internet connection
- - - - -
52012a79 by Michael R. Crusoe at 2024-01-18T18:18:24+01:00
prepare to release
- - - - -
5 changed files:
- debian/changelog
- debian/patches/mistune3.patch
- + debian/patches/offline
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,7 +1,7 @@
-python-schema-salad (8.5.20240102191335-1) UNRELEASED; urgency=medium
+python-schema-salad (8.5.20240102191335-1) unstable; urgency=medium
[ Andreas Tille ]
- * New upstream version. Closes: #1058270
+ * New upstream version. Closes: #1058270, #1059992
[ Michael R. Crusoe ]
* d/control: change build-dep to python3-all-dev (not just python3-dev).
@@ -9,8 +9,10 @@ python-schema-salad (8.5.20240102191335-1) UNRELEASED; urgency=medium
mistune3.
* d/control: bump python3-mistune dependency to at least version 3,
remove python3-importlib-resources as it isn't needed anymore
+ * d/patches/offline: enable additional testing without an internet
+ connection.
- -- Michael R. Crusoe <crusoe at debian.org> Wed, 03 Jan 2024 14:10:36 +0100
+ -- Michael R. Crusoe <crusoe at debian.org> Thu, 18 Jan 2024 18:17:50 +0100
python-schema-salad (8.4.20230808163024-1) unstable; urgency=medium
=====================================
debian/patches/mistune3.patch
=====================================
@@ -1739,3 +1739,7 @@ Co-authored-by: Michael R. Crusoe <michael.crusoe at gmail.com>
- ) -> Any: ... # abstract method, return specialized by implementation
- def _scan(self, s: str, state: State, rules: Iterable[str]) -> Iterator[str]: ...
- def _create_scanner(self, rules: Iterable[str]) -> Scanner: ...
+--- /dev/null
++++ python-schema-salad/mypy-stubs/mistune/renderers/__init__.py
+@@ -0,0 +1 @@
++
=====================================
debian/patches/offline
=====================================
@@ -0,0 +1,70 @@
+From: Michael R. Crusoe <crusoe at debian.org>
+Subject: enable more offline testing
+Forwarded: yes
+--- python-schema-salad.orig/schema_salad/tests/test_cg.py
++++ python-schema-salad/schema_salad/tests/test_cg.py
+@@ -19,7 +19,7 @@
+ "fields": [{"name": "hello", "doc": "Hello test case", "type": "string"}],
+ }
+ rs = cg_metaschema.RecordSchema.fromDoc(
+- doc, "http://example.com/", cg_metaschema.LoadingOptions()
++ doc, "http://example.com/", cg_metaschema.LoadingOptions(no_link_check=True)
+ )
+ assert "record" == rs.type_
+ assert rs.fields and "http://example.com/#hello" == rs.fields[0].name
+@@ -50,7 +50,7 @@
+ rf = cg_metaschema.Documentation.fromDoc(
+ doc,
+ "http://example.com/",
+- cg_metaschema.LoadingOptions(fileuri=file_uri(path)),
++ cg_metaschema.LoadingOptions(fileuri=file_uri(path), no_link_check=True),
+ )
+ assert "http://example.com/#hello" == rf.name
+ assert ["hello world!\n"] == rf.doc
+@@ -127,7 +127,7 @@
+ "fields": {"hello": {"doc": "Hello test case", "type": "string"}},
+ }
+ rs = cg_metaschema.RecordSchema.fromDoc(
+- doc, "http://example.com/", cg_metaschema.LoadingOptions()
++ doc, "http://example.com/", cg_metaschema.LoadingOptions(no_link_check=True)
+ )
+ assert "record" == rs.type_
+ assert rs.fields and "http://example.com/#hello" == rs.fields[0].name
+@@ -148,7 +148,7 @@
+ def test_idmap2() -> None:
+ doc = {"type": "record", "fields": {"hello": "string"}}
+ rs = cg_metaschema.RecordSchema.fromDoc(
+- doc, "http://example.com/", cg_metaschema.LoadingOptions()
++ doc, "http://example.com/", cg_metaschema.LoadingOptions(no_link_check=True)
+ )
+ assert "record" == rs.type_
+ assert rs.fields and "http://example.com/#hello" == rs.fields[0].name
+@@ -163,7 +163,9 @@
+ def test_load_pt() -> None:
+ path = get_data("tests/pt.yml")
+ assert path
+- doc = cg_metaschema.load_document(file_uri(path), "", cg_metaschema.LoadingOptions())
++ doc = cg_metaschema.load_document(
++ file_uri(path), "", cg_metaschema.LoadingOptions(no_link_check=True)
++ )
+ assert [
+ "https://w3id.org/cwl/salad#null",
+ "http://www.w3.org/2001/XMLSchema#boolean",
+@@ -201,7 +203,7 @@
+ doc = cg_metaschema.load_document(
+ file_uri(path),
+ "",
+- None,
++ cg_metaschema.LoadingOptions(no_link_check=True),
+ )
+ saved = [d.save(relative_uris=False) for d in doc]
+ assert saved == JsonDiffMatcher(metaschema_pre)
+@@ -228,7 +230,7 @@
+ doc = cg_metaschema.load_document(
+ file_uri(path),
+ "",
+- cg_metaschema.LoadingOptions(),
++ cg_metaschema.LoadingOptions(no_link_check=True),
+ )
+ path2 = get_data("tests/cwl-pre.yml")
+ assert path2
=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
+offline
mistune3.patch
rework_all
better_is_fs_case_sensitive
=====================================
debian/rules
=====================================
@@ -41,7 +41,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="cd {dir}; export PATH={destdir}/usr/bin:$$PATH ; \
cd {build_dir}; export PYTHONPATH=$$(pwd); {interpreter} -m pytest \
- -rs -n auto -k 'not (test_secondaryFiles or test_outputBinding or test_yaml_tab_error or test_bad_schemas)' \
+ -rs -n auto -k 'not (test_secondaryFiles or test_outputBinding or test_yaml_tab_error or test_bad_schemas or test_load_by_yaml_metaschema)' \
--pyargs schema_salad" dh_auto_test
endif
View it on GitLab: https://salsa.debian.org/python-team/packages/python-schema-salad/-/compare/d29a7a49e10ab0d3be7d76e1d3f7e86a6266ac9f...52012a79eace52f47e8109992099c882b8487f27
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-schema-salad/-/compare/d29a7a49e10ab0d3be7d76e1d3f7e86a6266ac9f...52012a79eace52f47e8109992099c882b8487f27
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240118/6ff3781f/attachment-0001.htm>
More information about the debian-med-commit
mailing list