mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Add support for "downloadUrl" in package manifest
This commit is contained in:
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ black:
|
|||||||
black --target-version py27 ./tests
|
black --target-version py27 ./tests
|
||||||
|
|
||||||
test:
|
test:
|
||||||
py.test --verbose --capture=no --exitfirst -n 3 --dist=loadscope tests --ignore tests/test_examples.py
|
py.test --verbose --capture=no --exitfirst -n 6 --dist=loadscope tests --ignore tests/test_examples.py
|
||||||
|
|
||||||
before-commit: isort black lint test
|
before-commit: isort black lint test
|
||||||
|
|
||||||
|
@ -92,8 +92,11 @@ class ManifestSchema(Schema):
|
|||||||
homepage = fields.Url(validate=validate.Length(min=1, max=255))
|
homepage = fields.Url(validate=validate.Length(min=1, max=255))
|
||||||
license = fields.Str(validate=validate.Length(min=1, max=255))
|
license = fields.Str(validate=validate.Length(min=1, max=255))
|
||||||
repository = fields.Nested(RepositorySchema)
|
repository = fields.Nested(RepositorySchema)
|
||||||
|
|
||||||
|
# library.json
|
||||||
export = fields.Nested(ExportSchema)
|
export = fields.Nested(ExportSchema)
|
||||||
examples = fields.Nested(ExampleSchema, many=True)
|
examples = fields.Nested(ExampleSchema, many=True)
|
||||||
|
downloadUrl = fields.Url(validate=validate.Length(min=1, max=255))
|
||||||
|
|
||||||
keywords = StrictListField(
|
keywords = StrictListField(
|
||||||
fields.Str(
|
fields.Str(
|
||||||
@ -105,7 +108,6 @@ class ManifestSchema(Schema):
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
platforms = StrictListField(
|
platforms = StrictListField(
|
||||||
fields.Str(
|
fields.Str(
|
||||||
validate=[
|
validate=[
|
||||||
|
@ -202,6 +202,7 @@ def test_library_json_schema():
|
|||||||
"name": "Benoit Blanchon",
|
"name": "Benoit Blanchon",
|
||||||
"url": "https://blog.benoitblanchon.fr"
|
"url": "https://blog.benoitblanchon.fr"
|
||||||
},
|
},
|
||||||
|
"downloadUrl": "https://example.com/package.tar.gz",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"fuzzing",
|
"fuzzing",
|
||||||
"scripts",
|
"scripts",
|
||||||
@ -251,6 +252,7 @@ def test_library_json_schema():
|
|||||||
"authors": [
|
"authors": [
|
||||||
{"name": "Benoit Blanchon", "url": "https://blog.benoitblanchon.fr"}
|
{"name": "Benoit Blanchon", "url": "https://blog.benoitblanchon.fr"}
|
||||||
],
|
],
|
||||||
|
"downloadUrl": "https://example.com/package.tar.gz",
|
||||||
"export": {"exclude": ["fuzzing", "scripts", "test", "third-party"]},
|
"export": {"exclude": ["fuzzing", "scripts", "test", "third-party"]},
|
||||||
"frameworks": ["arduino"],
|
"frameworks": ["arduino"],
|
||||||
"platforms": ["*"],
|
"platforms": ["*"],
|
||||||
|
Reference in New Issue
Block a user