-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
cc25f16
commit 9c469b5
Showing
15 changed files
with
752 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# This file selects minimum versions to ensure that the test suite passes on | ||
# these versions. The file's extension (`.min`) is chosen to evade Dependabot | ||
# which operates on `*.{txt,in}` files. | ||
isodate==0.6.0 | ||
isodate==0.7.2; python_version < "3.11" | ||
pyparsing==2.1.0 | ||
importlib-metadata==4.0.0 | ||
berkeleydb==18.1.2 | ||
networkx==2.0 | ||
html5lib==1.0.1 | ||
html5lib-modern==1.2.0 | ||
lxml==4.3.0 | ||
orjson==3.9.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# This file is used for building a docker image of hte latest rdflib release. It | ||
# This file is used for building a docker image of the latest rdflib release. It | ||
# will be updated by dependabot when new releases are made. | ||
rdflib==7.0.0 | ||
html5lib | ||
html5lib-modern==1.2.0 | ||
# isodate is required to allow the Dockerfile to build on with pre-RDFLib-7.1 releases. | ||
isodate==0.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.