From bc85ae82c55dc8c1d3dc415813529bb4f70c22d5 Mon Sep 17 00:00:00 2001 From: dalance Date: Thu, 12 Dec 2019 10:37:41 +0900 Subject: [PATCH] Update cargo release setting --- release.toml | 20 +++++++++++++------- sv-parser-error/Cargo.toml | 4 ---- sv-parser-macros/Cargo.toml | 4 ---- sv-parser-parser/Cargo.toml | 8 ++------ sv-parser-pp/Cargo.toml | 10 +++------- sv-parser-syntaxtree/Cargo.toml | 6 +----- sv-parser/Cargo.toml | 16 ++++------------ 7 files changed, 23 insertions(+), 45 deletions(-) diff --git a/release.toml b/release.toml index 15206fd..34e4e0f 100644 --- a/release.toml +++ b/release.toml @@ -1,7 +1,13 @@ -no-dev-version = true -dev-version-ext = "pre" -pre-release-commit-message = "Prepare to v{{version}} of {{crate_name}}" -pro-release-commit-message = "Start next development iteration v{{next_version}} of {{crate_name}}" -tag-message = "Bump version to v{{version}}" -tag-prefix = "" - +no-dev-version = true +consolidate-commits = true +dev-version-ext = "pre" +pre-release-commit-message = "Prepare to v{{version}} of {{crate_name}}" +post-release-commit-message = "Start next development iteration v{{next_version}} of {{crate_name}}" +tag-message = "Bump version to v{{version}}" +tag-prefix = "" +pre-release-replacements = [ + {file = "README.md", search = "sv-parser = \"[a-z0-9\\.-]+\"", replace = "sv-parser = \"{{version}}\""}, + {file = "CHANGELOG.md", search = "Unreleased", replace = "v{{version}}"}, + {file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}"}, + {file = "CHANGELOG.md", search = "Change Log", replace = "Change Log\n\n## [Unreleased](https://github.com/dalance/sv-parser/compare/v{{version}}...Unreleased) - ReleaseDate"}, +] diff --git a/sv-parser-error/Cargo.toml b/sv-parser-error/Cargo.toml index 232a2eb..6dc87be 100644 --- a/sv-parser-error/Cargo.toml +++ b/sv-parser-error/Cargo.toml @@ -10,9 +10,5 @@ readme = "../README.md" description = "Helper crate of sv-parser" edition = "2018" -[package.metadata.release] -disable-push = true -disable-tag = true - [dependencies] failure = "0.1.5" diff --git a/sv-parser-macros/Cargo.toml b/sv-parser-macros/Cargo.toml index a4ea505..d29b7bc 100644 --- a/sv-parser-macros/Cargo.toml +++ b/sv-parser-macros/Cargo.toml @@ -10,10 +10,6 @@ readme = "../README.md" description = "Helper crate of sv-parser" edition = "2018" -[package.metadata.release] -disable-push = true -disable-tag = true - [lib] proc-macro = true diff --git a/sv-parser-parser/Cargo.toml b/sv-parser-parser/Cargo.toml index 315dcbd..3647d89 100644 --- a/sv-parser-parser/Cargo.toml +++ b/sv-parser-parser/Cargo.toml @@ -10,10 +10,6 @@ readme = "../README.md" description = "Helper crate of sv-parser" edition = "2018" -[package.metadata.release] -disable-push = true -disable-tag = true - [features] default = [] trace = ["nom-tracable/trace"] @@ -26,5 +22,5 @@ nom-packrat = "0.3.0" nom-recursive = {version = "0.1.1", features = ["tracer128"]} nom-tracable = "0.4.1" str-concat = "0.1.4" -sv-parser-macros = {version = "^0.4.0", path = "../sv-parser-macros"} -sv-parser-syntaxtree = {version = "^0.4.0", path = "../sv-parser-syntaxtree"} +sv-parser-macros = {version = "0.4.7", path = "../sv-parser-macros"} +sv-parser-syntaxtree = {version = "0.4.7", path = "../sv-parser-syntaxtree"} diff --git a/sv-parser-pp/Cargo.toml b/sv-parser-pp/Cargo.toml index c4535d7..a3c9d50 100644 --- a/sv-parser-pp/Cargo.toml +++ b/sv-parser-pp/Cargo.toml @@ -10,10 +10,6 @@ readme = "../README.md" description = "Helper crate of sv-parser" edition = "2018" -[package.metadata.release] -disable-push = true -disable-tag = true - [features] default = [] trace = ["sv-parser-parser/trace"] @@ -22,6 +18,6 @@ trace = ["sv-parser-parser/trace"] failure = "0.1.5" nom = "5.0.0" nom-greedyerror = "0.1.0" -sv-parser-error = {version = "^0.4.0", path = "../sv-parser-error"} -sv-parser-parser = {version = "^0.4.0", path = "../sv-parser-parser"} -sv-parser-syntaxtree = {version = "^0.4.0", path = "../sv-parser-syntaxtree"} +sv-parser-error = {version = "0.4.7", path = "../sv-parser-error"} +sv-parser-parser = {version = "0.4.7", path = "../sv-parser-parser"} +sv-parser-syntaxtree = {version = "0.4.7", path = "../sv-parser-syntaxtree"} diff --git a/sv-parser-syntaxtree/Cargo.toml b/sv-parser-syntaxtree/Cargo.toml index ae93d8a..9154693 100644 --- a/sv-parser-syntaxtree/Cargo.toml +++ b/sv-parser-syntaxtree/Cargo.toml @@ -11,12 +11,8 @@ description = "Helper crate of sv-parser" edition = "2018" build = "build.rs" -[package.metadata.release] -disable-push = true -disable-tag = true - [dependencies] -sv-parser-macros = {version = "^0.4.0", path = "../sv-parser-macros"} +sv-parser-macros = {version = "0.4.7", path = "../sv-parser-macros"} [build-dependencies] regex = "1" diff --git a/sv-parser/Cargo.toml b/sv-parser/Cargo.toml index fcebace..57589b8 100644 --- a/sv-parser/Cargo.toml +++ b/sv-parser/Cargo.toml @@ -10,14 +10,6 @@ readme = "../README.md" description = "SystemVerilog parser library fully complient with IEEE 1800-2017" edition = "2018" -[package.metadata.release] -pre-release-replacements = [ - {file = "../README.md", search = "sv-parser = \"[a-z0-9\\.-]+\"", replace = "sv-parser = \"{{version}}\""}, - {file = "../CHANGELOG.md", search = "Unreleased", replace = "v{{version}}"}, - {file = "../CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}"}, - {file = "../CHANGELOG.md", search = "Change Log", replace = "Change Log\n\n## [Unreleased](https://github.com/dalance/sv-parser/compare/v{{version}}...Unreleased) - ReleaseDate"}, -] - [features] default = [] trace = ["sv-parser-parser/trace"] @@ -25,10 +17,10 @@ trace = ["sv-parser-parser/trace"] [dependencies] nom = "5.0.0" nom-greedyerror = "0.1.0" -sv-parser-error = {version = "^0.4.0", path = "../sv-parser-error"} -sv-parser-parser = {version = "^0.4.0", path = "../sv-parser-parser"} -sv-parser-pp = {version = "^0.4.0", path = "../sv-parser-pp"} -sv-parser-syntaxtree = {version = "^0.4.0", path = "../sv-parser-syntaxtree"} +sv-parser-error = {version = "0.4.7", path = "../sv-parser-error"} +sv-parser-parser = {version = "0.4.7", path = "../sv-parser-parser"} +sv-parser-pp = {version = "0.4.7", path = "../sv-parser-pp"} +sv-parser-syntaxtree = {version = "0.4.7", path = "../sv-parser-syntaxtree"} [dev-dependencies] structopt = "0.3.2"