• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RDFLib / rdflib / 11356489437

16 Oct 2024 12:20AM UTC coverage: 90.299% (-0.3%) from 90.64%
11356489437

push

github

web-flow
Redo XSD Datetime, Date, Time, Duration parser and serializers (#2929)

* New xsd_datetime module, with parsers and serializers for XSD_Duration, XSD_Date, XSD_DatetTime, XSD_Time, XSD_gYear, XSD_gYearMonth. Based on isoformat for Python <3.11, and builtin fromisoformat for Python 3.11+

* ruff fixes in test suite changes

* Fix a failing test

* Add missing exports to xsd_datetime

* Fix some version constraints to help CI tests pass

* Fix generating negative duartion strings. This fixes the broken doctest.

* Fix black formatting in xsd_datetime _again_.

* Add isodate back into the dockerfile requirements so that can still build correctly with RDFLib v7.0

* correctly calculate total years in Duration constructor.

* Fix some docstring generation errors

* For documentation-generation reasons, don't re-export builtin parsers as xsd parsers.

* Add ashleysommer to contributors list on the xsd_datetime module.

* Fix wording in xsd_datetime header.

---------

Co-authored-by: Nicholas Car <nick@kurrawong.net>

6116 of 7731 branches covered (79.11%)

226 of 332 new or added lines in 4 files covered. (68.07%)

19808 of 21936 relevant lines covered (90.3%)

11.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.84
/rdflib/plugins/sparql/operators.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc