From 167d8664797aa3fd3e6baa2a47eb3e90a6ab36db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Feb 2025 21:01:36 +0000 Subject: [PATCH 1/5] :arrow_up: Bump release-drafter/release-drafter from 6.0.0 to 6.1.0 Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v6.0.0...v6.1.0) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 704e822..c0b8c28 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.0.0 + - uses: release-drafter/release-drafter@v6.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From d6e5199d185c0a80e3e528388e18811c449a90ff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Feb 2025 21:01:38 +0000 Subject: [PATCH 2/5] :arrow_up: Bump actions/setup-python from 5.3.0 to 5.4.0 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.3.0 to 5.4.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5.3.0...v5.4.0) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/publish.yaml | 2 +- .github/workflows/stac-model.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 65b78fe..37dab7e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5.3.0 + uses: actions/setup-python@v5.4.0 with: python-version: "3.10" - name: Install uv diff --git a/.github/workflows/stac-model.yml b/.github/workflows/stac-model.yml index 25c71ca..174e637 100644 --- a/.github/workflows/stac-model.yml +++ b/.github/workflows/stac-model.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5.3.0 + uses: actions/setup-python@v5.4.0 with: python-version: ${{ matrix.python-version }} From ede928460a8f996d6da346d740554d891d82c853 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 3 Feb 2025 15:29:45 -0500 Subject: [PATCH 3/5] fix invalid CONTRIBUTING link in PR template --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 80b22bb..da15bec 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -21,7 +21,7 @@ -- [ ] I've read the [`CONTRIBUTING.md`](../CONTRIBUTING.md) guide; +- [ ] I've read the [`CONTRIBUTING.md`](https://github.com/stac-extensions/mlm/blob/main/CONTRIBUTING.md) guide; - [ ] I've updated the code style using `make check`; - [ ] I've written tests for all new methods and classes that I created; - [ ] I've written the docstring in `Google` format for all the methods and classes that I used. From ddc9d4fddd5c05086160d9510597b3e279c98271 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 3 Feb 2025 15:30:23 -0500 Subject: [PATCH 4/5] =?UTF-8?q?Bump=20version:=201.3.0=20=E2=86=92=201.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CITATION.cff | 2 +- README.md | 2 +- best-practices.md | 4 ++-- examples/item_bands_expression.json | 2 +- examples/item_basic.json | 2 +- examples/item_eo_and_raster_bands.json | 2 +- examples/item_eo_bands.json | 2 +- examples/item_eo_bands_summarized.json | 2 +- examples/item_multi_io.json | 2 +- examples/item_raster_bands.json | 2 +- json-schema/schema.json | 4 ++-- package.json | 6 +++--- pyproject.toml | 2 +- stac_model/schema.py | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 5da07be..f3a512f 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -90,7 +90,7 @@ references: authors: *authors identifiers: - type: url - value: "https://stac-extensions.github.io/mlm/v1.3.0/schema.json" + value: "https://stac-extensions.github.io/mlm/v1.4.0/schema.json" description: "Latest extension URL used in 'stac_extensions' references." - type: url value: "https://stac-extensions.github.io/mlm/" diff --git a/README.md b/README.md index 4c99598..f588186 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![hackmd-github-sync-badge](https://hackmd.io/XveEXOukQ52ZdpUxT8maeA/badge)](https://hackmd.io/XveEXOukQ52ZdpUxT8maeA?both) - **Title:** Machine Learning Model Extension -- **Identifier:** [https://stac-extensions.github.io/mlm/v1.3.0/schema.json](https://stac-extensions.github.io/mlm/v1.3.0/schema.json) +- **Identifier:** [https://stac-extensions.github.io/mlm/v1.4.0/schema.json](https://stac-extensions.github.io/mlm/v1.4.0/schema.json) - **Field Name Prefix:** mlm - **Scope:** Collection, Item, Asset, Links - **Extension Maturity Classification:** Pilot diff --git a/best-practices.md b/best-practices.md index 2036523..7484b45 100644 --- a/best-practices.md +++ b/best-practices.md @@ -152,7 +152,7 @@ leading to a new MLM STAC Item definition (see also [STAC Version Extension](#ve { "id": "stac-item-model", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/ml-aoi/v0.2.0/schema.json" ], "assets": { @@ -227,7 +227,7 @@ that the model is properly instantiated from the expected weights, or that suffi ```json { "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/file/v2.1.0/schema.json" ], "assets": { diff --git a/examples/item_bands_expression.json b/examples/item_bands_expression.json index 38ba9f0..7081377 100644 --- a/examples/item_bands_expression.json +++ b/examples/item_bands_expression.json @@ -2,7 +2,7 @@ "$comment": "Demonstrate the use of MLM and EO for bands description, with EO bands directly in the Model Asset.", "stac_version": "1.0.0", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_basic.json b/examples/item_basic.json index 3806446..57bec14 100644 --- a/examples/item_basic.json +++ b/examples/item_basic.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json" + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json" ], "type": "Feature", "id": "example-model", diff --git a/examples/item_eo_and_raster_bands.json b/examples/item_eo_and_raster_bands.json index 1f1d9ab..82f5313 100644 --- a/examples/item_eo_and_raster_bands.json +++ b/examples/item_eo_and_raster_bands.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_eo_bands.json b/examples/item_eo_bands.json index 605f3e6..794ed98 100644 --- a/examples/item_eo_bands.json +++ b/examples/item_eo_bands.json @@ -2,7 +2,7 @@ "$comment": "Demonstrate the use of MLM and EO for bands description, with EO bands directly in the Model Asset.", "stac_version": "1.0.0", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_eo_bands_summarized.json b/examples/item_eo_bands_summarized.json index d3c8709..8c07a57 100644 --- a/examples/item_eo_bands_summarized.json +++ b/examples/item_eo_bands_summarized.json @@ -2,7 +2,7 @@ "$comment": "Demonstrate the use of MLM and EO for bands description, with EO bands summarized in the Item properties and referenced by name in the Model Asset.", "stac_version": "1.0.0", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_multi_io.json b/examples/item_multi_io.json index e8f6b11..03206f7 100644 --- a/examples/item_multi_io.json +++ b/examples/item_multi_io.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", "https://stac-extensions.github.io/ml-aoi/v0.2.0/schema.json" diff --git a/examples/item_raster_bands.json b/examples/item_raster_bands.json index 33a29b9..d332cc1 100644 --- a/examples/item_raster_bands.json +++ b/examples/item_raster_bands.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", "https://stac-extensions.github.io/ml-aoi/v0.2.0/schema.json" diff --git a/json-schema/schema.json b/json-schema/schema.json index 813bb17..5a76347 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://stac-extensions.github.io/mlm/v1.3.0/schema.json", + "$id": "https://stac-extensions.github.io/mlm/v1.4.0/schema.json", "title": "Machine Learning Model STAC Extension Schema", "description": "This object represents the metadata for a Machine Learning Model (MLM) used in STAC documents.", "$comment": "Use 'allOf+if/then' for each 'type' to allow implementations to report more specific messages about the exact case in error (if any). Using only a 'oneOf/allOf' with the 'type' caused any incompatible 'type' to be reported first with a minimal and poorly described error by 'pystac'.", @@ -111,7 +111,7 @@ "stac_extensions": { "type": "array", "contains": { - "const": "https://stac-extensions.github.io/mlm/v1.3.0/schema.json" + "const": "https://stac-extensions.github.io/mlm/v1.4.0/schema.json" } } } diff --git a/package.json b/package.json index b6cbbdd..f5665ca 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "stac-mlm", - "version": "1.3.0", + "version": "1.4.0", "scripts": { "test": "npm run check-markdown && npm run check-examples", "check-markdown": "remark . -f -r .github/remark.yaml -i .remarkignore", "format-markdown": "remark . -f -r .github/remark.yaml -i .remarkignore -o", - "check-examples": "stac-node-validator . --lint --verbose --schemaMap https://stac-extensions.github.io/mlm/v1.3.0/schema.json=./json-schema/schema.json", - "format-examples": "stac-node-validator . --format --schemaMap https://stac-extensions.github.io/mlm/v1.3.0/schema.json=./json-schema/schema.json" + "check-examples": "stac-node-validator . --lint --verbose --schemaMap https://stac-extensions.github.io/mlm/v1.4.0/schema.json=./json-schema/schema.json", + "format-examples": "stac-node-validator . --format --schemaMap https://stac-extensions.github.io/mlm/v1.4.0/schema.json=./json-schema/schema.json" }, "dependencies": { "remark-cli": "^8.0.0", diff --git a/pyproject.toml b/pyproject.toml index 28fa890..5fea07d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,7 @@ stac-model = "stac_model.__main__:app" # they are actually intented for versioning the MLM specification itself. # To version 'stac-model', use the 'bump-my-version bump' operation. # See also https://github.com/stac-extensions/mlm/blob/main/CONTRIBUTING.md#building-and-releasing -current_version = "1.3.0" +current_version = "1.4.0" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}" diff --git a/stac_model/schema.py b/stac_model/schema.py index e2d2b5a..ce14a03 100644 --- a/stac_model/schema.py +++ b/stac_model/schema.py @@ -34,7 +34,7 @@ ) SchemaName = Literal["mlm"] -SCHEMA_URI: str = "https://stac-extensions.github.io/mlm/v1.3.0/schema.json" +SCHEMA_URI: str = "https://stac-extensions.github.io/mlm/v1.4.0/schema.json" PREFIX = f"{get_args(SchemaName)[0]}:" From 26a0e9dd670fdad66b878b72d4d6b86dac71a0e1 Mon Sep 17 00:00:00 2001 From: Francis Charette-Migneault Date: Mon, 3 Feb 2025 15:38:24 -0500 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f588186..296c8ad 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ The fields in the table below can be used in these parts of STAC documents: [1]: #notes ### Notes -[1][1] Fields allowed only in Item `properties` +[1][1] Fields allowed only in Item `properties`