File tree Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ Checker Notes
360
360
========================= ====================
361
361
``color `` requires webcolors _
362
362
``date ``
363
- ``date-time `` requires strict-rfc3339 _ or rfc3339-validator _
363
+ ``date-time `` requires rfc3339-validator _
364
364
``email ``
365
365
``hostname ``
366
366
``idn-hostname `` requires idna _
@@ -371,7 +371,7 @@ Checker Notes
371
371
``json-pointer `` requires jsonpointer _
372
372
``regex ``
373
373
``relative-json-pointer `` requires jsonpointer _
374
- ``time `` requires strict-rfc3339 _ or rfc3339-validator _
374
+ ``time `` requires rfc3339-validator _
375
375
``uri `` requires rfc3987 _ or rfc3986-validator _
376
376
``uri-reference `` requires rfc3987 _ or rfc3986-validator _
377
377
========================= ====================
@@ -381,7 +381,6 @@ Checker Notes
381
381
.. _jsonpointer : https://pypi.org/pypi/jsonpointer/
382
382
.. _rfc3987 : https://pypi.org/pypi/rfc3987/
383
383
.. _rfc5322 : https://tools.ietf.org/html/rfc5322#section-3.4.1
384
- .. _strict-rfc3339 : https://pypi.org/pypi/strict-rfc3339/
385
384
.. _webcolors : https://pypi.org/pypi/webcolors/
386
385
.. _rfc3339-validator : https://pypi.org/project/rfc3339-validator/
387
386
.. _rfc3986-validator : https://pypi.org/project/rfc3986-validator/
Original file line number Diff line number Diff line change @@ -325,16 +325,11 @@ def is_uri_reference(instance):
325
325
return True
326
326
return rfc3987 .parse (instance , rule = "URI_reference" )
327
327
328
-
329
328
try :
330
- from strict_rfc3339 import validate_rfc3339
329
+ from rfc3339_validator import validate_rfc3339
331
330
except ImportError :
332
- try :
333
- from rfc3339_validator import validate_rfc3339
334
- except ImportError :
335
- validate_rfc3339 = None
336
-
337
- if validate_rfc3339 :
331
+ pass
332
+ else :
338
333
@_checks_drafts (name = "date-time" )
339
334
def is_datetime (instance ):
340
335
if not isinstance (instance , str ):
Original file line number Diff line number Diff line change @@ -33,21 +33,21 @@ install_requires =
33
33
format =
34
34
fqdn
35
35
idna
36
+ isoduration
36
37
jsonpointer>1.13
38
+ rfc3339-validator
37
39
rfc3987
38
- strict-rfc3339
39
- webcolors
40
40
uri_template
41
- isoduration
41
+ webcolors
42
42
format_nongpl =
43
43
fqdn
44
44
idna
45
+ isoduration
45
46
jsonpointer>1.13
46
- webcolors
47
- rfc3986-validator>0.1.0
48
47
rfc3339-validator
48
+ rfc3986-validator>0.1.0
49
49
uri_template
50
- isoduration
50
+ webcolors
51
51
52
52
[options.entry_points]
53
53
console_scripts =
You can’t perform that action at this time.
0 commit comments