[med-svn] [Git][med-team/python-schema-salad][master] 6 commits: routine-update: New upstream version
Michael R. Crusoe
gitlab at salsa.debian.org
Fri Apr 10 16:31:55 BST 2020
Michael R. Crusoe pushed to branch master at Debian Med / python-schema-salad
Commits:
749a1fef by Michael R. Crusoe at 2020-04-10T17:10:07+02:00
routine-update: New upstream version
- - - - -
8df1209c by Michael R. Crusoe at 2020-04-10T17:10:08+02:00
New upstream version 5.0.20200302192450
- - - - -
b3327d52 by Michael R. Crusoe at 2020-04-10T17:10:10+02:00
Update upstream source from tag 'upstream/5.0.20200302192450'
Update to upstream version '5.0.20200302192450'
with Debian dir 5c95b8e1459a72d871b51dc30054965fc20180fd
- - - - -
9826f725 by Michael R. Crusoe at 2020-04-10T17:10:14+02:00
routine-update: Add salsa-ci file
- - - - -
0fd4fdff by Michael R. Crusoe at 2020-04-10T17:10:15+02:00
routine-update: Rules-Requires-Root: no
- - - - -
c0fc22fe by Michael R. Crusoe at 2020-04-10T17:28:35+02:00
release 5.0.20200302192450-1 to unstable
- - - - -
8 changed files:
- PKG-INFO
- debian/changelog
- debian/control
- + debian/salsa-ci.yml
- schema_salad.egg-info/PKG-INFO
- schema_salad/ref_resolver.py
- schema_salad/tests/test_examples.py
- setup.cfg
Changes:
=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: schema-salad
-Version: 5.0.20200220195218
+Version: 5.0.20200302192450
Summary: Schema Annotations for Linked Avro Data (SALAD)
Home-page: https://github.com/common-workflow-language/schema_salad
Author: Common workflow language working group
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-schema-salad (5.0.20200302192450-1) unstable; urgency=medium
+
+ * New upstream version
+ * Add salsa-ci file (routine-update)
+ * Rules-Requires-Root: no (routine-update)
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com> Fri, 10 Apr 2020 17:10:17 +0200
+
python-schema-salad (5.0.20200220195218-1) unstable; urgency=medium
* New upstream version
=====================================
debian/control
=====================================
@@ -25,6 +25,7 @@ Standards-Version: 4.5.0
Vcs-Browser: https://salsa.debian.org/med-team/python-schema-salad
Vcs-Git: https://salsa.debian.org/med-team/python-schema-salad.git
Homepage: https://www.commonwl.org
+Rules-Requires-Root: no
Package: python3-schema-salad
Architecture: all
=====================================
debian/salsa-ci.yml
=====================================
@@ -0,0 +1,4 @@
+---
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
=====================================
schema_salad.egg-info/PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: schema-salad
-Version: 5.0.20200220195218
+Version: 5.0.20200302192450
Summary: Schema Annotations for Linked Avro Data (SALAD)
Home-page: https://github.com/common-workflow-language/schema_salad
Author: Common workflow language working group
=====================================
schema_salad/ref_resolver.py
=====================================
@@ -1305,6 +1305,8 @@ class Loader(object):
raise ValidationException("", None, errors)
elif isinstance(link, CommentedMap):
self.validate_links(link, docid, all_doc_ids)
+ elif link is None:
+ return link
else:
raise ValidationException(
"`{}` field is {}, expected string, list, or a dict.".format(
=====================================
schema_salad/tests/test_examples.py
=====================================
@@ -427,3 +427,12 @@ def test_can_use_Any():
) = schema_salad.schema.load_schema( # noqa: B950
get_data("tests/test_schema/cwltest-schema.yml")
)
+
+
+def test_nullable_links():
+ ldr = schema_salad.ref_resolver.Loader({})
+ ctx = {"link": {"@type": "@id"}}
+ ldr.add_context(ctx)
+
+ ra, _ = ldr.resolve_all(cmap({"link": None}), "http://example.com", checklinks=True)
+ assert {"link": None} == ra
=====================================
setup.cfg
=====================================
@@ -5,6 +5,6 @@ test = pytest
addopts = --pyargs schema_salad
[egg_info]
-tag_build = .20200220195218
+tag_build = .20200302192450
tag_date = 0
View it on GitLab: https://salsa.debian.org/med-team/python-schema-salad/-/compare/4495ad25392bd9279a4fb545cfeee0024c8fc8bc...c0fc22fe68344575ff6a5a3450c18dfb203b1723
--
View it on GitLab: https://salsa.debian.org/med-team/python-schema-salad/-/compare/4495ad25392bd9279a4fb545cfeee0024c8fc8bc...c0fc22fe68344575ff6a5a3450c18dfb203b1723
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/20200410/319a042e/attachment-0001.html>
More information about the debian-med-commit
mailing list