From 2ade4c9b9ef81d0509984a54135ed8807f52642f Mon Sep 17 00:00:00 2001 From: Nicolas BRIERE Date: Tue, 27 Aug 2024 09:49:57 +0200 Subject: [PATCH] chore: switch to release please system --- .release-please-manifest.json | 3 ++ pyproject.toml | 11 ++----- release-please-config.json | 56 +++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 8 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..727e2be --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.14.0" +} diff --git a/pyproject.toml b/pyproject.toml index 199e8bf..91c908b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ authors = ["Smartway "] readme = "README.md" repository = "https://github.com/ZeroGachis/magicparse" + [tool.poetry.dependencies] python = "^3.9" @@ -17,14 +18,8 @@ awscli = "~1" flake8-pyproject = "~1.2.3" [build-system] -requires = ["poetry-core>=1.2.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] -build-backend = "poetry_dynamic_versioning.backend" - -[tool.poetry-dynamic-versioning] -enable = true -vcs = "git" -style = "pep440" -pattern = "^(?P\\d+\\.\\d+\\.\\d+)(-?((?P[a-zA-Z]+)\\.?(?P\\d+)?))?" +requires = ["poetry-core>=1.2.0"] +build-backend = "poetry.masonry.api" [tool.flake8] max-line-length = 88 diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..f7e6065 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,56 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "python", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "include-v-in-tag": false, + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "chore", + "section": "Miscellaneous Chores" + }, + { + "type": "refactor", + "section": "Code Refactoring" + }, + { + "type": "test", + "section": "Tests" + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration" + } + ], + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file