-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update pyld and rearrange import order to work around pyld import pro…
…blems (#46) update pyld and rearrange import order
- Loading branch information
1 parent
ab4a330
commit dbf287d
Showing
6 changed files
with
30 additions
and
27 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,23 +1,9 @@ | ||
SECURITY_CONTEXT_URL = 'https://w3id.org/security/v1' | ||
OPEN_BADGES_V2_CONTEXT = 'https://openbadgespec.org/v2/context.json' | ||
OPEN_BADGES_V2_CANONICAL_CONTEXT = 'https://w3id.org/openbadges/v2' | ||
BLOCKCERTS_V2_ALPHA_CONTEXT = 'https://w3id.org/blockcerts/schema/2.0-alpha/context.json' | ||
BLOCKCERTS_V2_ALPHA_SCHEMA = 'https://w3id.org/blockcerts/schema/2.0-alpha/schema.json' | ||
BLOCKCERTS_V2_CONTEXT = 'https://w3id.org/blockcerts/schema/2.0/context.json' | ||
BLOCKCERTS_V2_SCHEMA = 'https://w3id.org/blockcerts/schema/2.0/schema.json' | ||
BLOCKCERTS_V2_CANONICAL_CONTEXT = 'https://w3id.org/blockcerts/v2' | ||
BLOCKCERTS_VOCAB = 'https://w3id.org/blockcerts/v2#' | ||
|
||
from cert_schema.jsonld_helpers import jsonld_document_loader, normalize_jsonld | ||
from cert_schema.schema_validator import validate_unsigned_v1_2, validate_v1_2, validate_v2 | ||
|
||
class BlockcertValidationError(Exception): | ||
pass | ||
|
||
|
||
class InvalidUrlError(Exception): | ||
pass | ||
|
||
from cert_schema.jsonld_helpers import BLOCKCERTS_V2_ALPHA_CONTEXT, BLOCKCERTS_V2_ALPHA_SCHEMA, BLOCKCERTS_V2_CONTEXT,\ | ||
BLOCKCERTS_V2_SCHEMA, BLOCKCERTS_V2_CANONICAL_CONTEXT, BLOCKCERTS_VOCAB, JSONLD_OPTIONS, \ | ||
OPEN_BADGES_V2_CANONICAL_CONTEXT, OPEN_BADGES_V2_CONTEXT, SECURITY_CONTEXT_URL | ||
|
||
from cert_schema.jsonld_helpers import JSONLD_OPTIONS | ||
from cert_schema.jsonld_helpers import jsonld_document_loader | ||
from cert_schema.jsonld_helpers import normalize_jsonld | ||
from cert_schema.schema_validator import validate_unsigned_v1_2, validate_v1_2, validate_v2 | ||
from cert_schema.errors import * |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class BlockcertValidationError(Exception): | ||
pass | ||
|
||
|
||
class InvalidUrlError(Exception): | ||
pass |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
jsonschema>=2.6.0 | ||
pyld>=0.7.3 | ||
requests>=2.18.4 | ||
pyld>=0.8.0 | ||
tox>=2.7.0 | ||
validators>=0.12.0 |
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