From ecf5c4784a46eedca9d7688fa3a225d0b865c934 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Thu, 10 Oct 2024 15:18:49 -0400 Subject: [PATCH] Release v0.2.0 (#39) * release: v0.2.0 * refactor: use workspace for version --- CHANGELOG.md | 6 +++++- Cargo.lock | 6 +++--- Cargo.toml | 20 ++++++++++++++------ README.md | 2 +- RELEASING.md | 6 +++--- cli/Cargo.toml | 12 ++++++------ python/Cargo.toml | 10 +++++----- 7 files changed, 37 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a22d9e..85e2e41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [0.2.0] - 2024-10-10 + ### Added - Python bindings 🐍 ([#30](https://github.com/developmentseed/cql2-rs/pull/30)) @@ -15,10 +17,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - `SqlQuery` attributes are now public ([#30](https://github.com/developmentseed/cql2-rs/pull/30)) - `Expr::to_json`, `Expr::to_json_pretty`, and `Expr::to_value` now return `Error` instead of `serde_json::Error` ([#37](https://github.com/developmentseed/cql2-rs/pull/37)) +- Removed `Error::BoonCompile` ([#38](https://github.com/developmentseed/cql2-rs/pull/38)) ## [0.1.0] - 2024-10-08 Initial release. -[Unreleased]: https://github.com/developmentseed/cql-rs/compare/v0.1.0...main +[Unreleased]: https://github.com/developmentseed/cql-rs/compare/v0.2.0...main +[0.2.0]: https://github.com/developmentseed/cql-rs/releases/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/developmentseed/cql-rs/releases/tag/v0.1.0 diff --git a/Cargo.lock b/Cargo.lock index 178a413..610a6d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -214,7 +214,7 @@ dependencies = [ [[package]] name = "cql2" -version = "0.1.0" +version = "0.2.0" dependencies = [ "assert-json-diff", "boon", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "cql2-cli" -version = "0.1.0" +version = "0.2.0" dependencies = [ "anyhow", "clap", @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "cql2-python" -version = "0.1.0" +version = "0.2.0" dependencies = [ "clap", "cql2", diff --git a/Cargo.toml b/Cargo.toml index 250b225..76ebe44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "cql2" -version = "0.1.0" -authors = ["David Bitner "] -edition = "2021" +version = { workspace = true } +authors = { workspace = true } +edition = { workspace = true } description = "Parse, validate, and convert Common Query Language (CQL2) text and JSON" -documentation = "https://docs.rs/cql2" +documentation = { workspace = true } readme = "README.md" homepage = "https://github.com/developmentseed/cql2-rs" -repository = "https://github.com/developmentseed/cql2-rs" -license = "MIT" +repository = { workspace = true } +license = { workspace = true } keywords = ["cql2"] [dependencies] @@ -32,5 +32,13 @@ rstest = "0.23" default-members = [".", "cli"] members = ["cli", "python"] +[workspace.package] +version = "0.2.0" +authors = ["David Bitner "] +edition = "2021" +documentation = "https://docs.rs/cql2" +repository = "https://github.com/developmentseed/cql2-rs" +license = "MIT" + [workspace.dependencies] clap = "4.5" diff --git a/README.md b/README.md index 86559bc..a156403 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Parse, validate, and convert [Common Query Language (CQL2)](https://www.ogc.org/ ```toml [dependencies] -cql = "0.1" +cql = "0.2" ``` Then: diff --git a/RELEASING.md b/RELEASING.md index a1e7f19..540be48 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -7,9 +7,9 @@ Setup: Then: 1. Create a new branch: `release/vX.Y.Z` -2. Update the versions all `Cargo.toml` files, as necessary -3. Update each README -4. Update each CHANGELOG +2. Update the version in `Cargo.toml` +3. Update the CHANGELOG +4. Update each README 5. Open a PR 6. Once approved, merge the PR 7. (if releasing the main crate) Run `cargo release -p cql2`, then `cargo release -p cql2 --execute` diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 208ab39..e711ca5 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,20 +1,20 @@ [package] name = "cql2-cli" -version = "0.1.0" -authors = ["David Bitner "] -edition = "2021" +version = { workspace = true } +authors = { workspace = true } +edition = { workspace = true } description = "Command line interface for Common Query Language (CQL2)" readme = "README.md" homepage = "https://github.com/developmentseed/cql2-rs" -repository = "https://github.com/developmentseed/cql2-rs" -license = "MIT" +repository = { workspace = true } +license = { workspace = true } keywords = ["cql2"] [dependencies] anyhow = "1.0" clap = { workspace = true, features = ["derive"] } -cql2 = { path = "..", version = "0.1.0" } +cql2 = { path = "..", version = "0.2.0" } serde_json = "1.0" [[bin]] diff --git a/python/Cargo.toml b/python/Cargo.toml index 74fa666..4193ca0 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "cql2-python" -version = "0.1.0" -authors = ["David Bitner "] -edition = "2021" +version = { workspace = true } +authors = { workspace = true } +edition = { workspace = true } description = "Parse, validate, and convert Common Query Language (CQL2) text and JSON" readme = "README.md" homepage = "https://github.com/developmentseed/cql2-rs" -repository = "https://github.com/developmentseed/cql2-rs" -license = "MIT" +repository = { workspace = true } +license = { workspace = true } keywords = ["cql2"] [lib]