From ee5ffef98e8c6ebd3f5bafb54cdb4ef6789a05eb Mon Sep 17 00:00:00 2001 From: "Madson Luiz Dantas Dias (UFC)" Date: Mon, 18 Mar 2024 18:38:23 -0300 Subject: [PATCH] chore: change semantic release options. --- poetry.lock | 33 ++++++++++++++++++++++++++++++++- pyproject.toml | 18 +++++++++++++----- 2 files changed, 45 insertions(+), 6 deletions(-) diff --git a/poetry.lock b/poetry.lock index 8521f06..f07233f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2105,6 +2105,22 @@ crystal = ["mkdocstrings-crystal (>=0.3.4)"] python = ["mkdocstrings-python (>=0.5.2)"] python-legacy = ["mkdocstrings-python-legacy (>=0.2.1)"] +[[package]] +name = "mkdocstrings-python-legacy" +version = "0.2.3" +description = "A legacy Python handler for mkdocstrings." +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "mkdocstrings-python-legacy-0.2.3.tar.gz", hash = "sha256:3fb58fdabe19c6b52b8bb1d3bb1540b1cd527b562865468d6754e8cd1201050c"}, + {file = "mkdocstrings_python_legacy-0.2.3-py3-none-any.whl", hash = "sha256:1b04d71a4064b0bb8ea9448debab89868a752c7e7bfdd11de480dfbcb9751a00"}, +] + +[package.dependencies] +mkdocstrings = ">=0.19" +pytkdocs = ">=0.14" + [[package]] name = "mypy" version = "1.9.0" @@ -2984,6 +3000,21 @@ docs = ["Sphinx (<=6.0.0)", "furo (>=2023.3.27)", "sphinx-autobuild (==2021.03.1 mypy = ["mypy", "types-requests"] test = ["coverage[toml] (>=6,<8)", "pytest (>=7,<8)", "pytest-clarity (>=1.0.1)", "pytest-cov (>=4,<5)", "pytest-env (>=1.0,<2.0)", "pytest-lazy-fixture (>=0.6.3,<0.7.0)", "pytest-mock (>=3,<4)", "pytest-pretty (>=1.2.0,<2)", "pytest-xdist (>=2,<4)", "requests-mock (>=1.10.0,<2)", "responses (==0.23.3)", "types-pytest-lazy-fixture (>=0.6.3.3)"] +[[package]] +name = "pytkdocs" +version = "0.16.1" +description = "Load Python objects documentation." +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pytkdocs-0.16.1-py3-none-any.whl", hash = "sha256:a8c3f46ecef0b92864cc598e9101e9c4cf832ebbf228f50c84aa5dd850aac379"}, + {file = "pytkdocs-0.16.1.tar.gz", hash = "sha256:e2ccf6dfe9dbbceb09818673f040f1a7c32ed0bffb2d709b06be6453c4026045"}, +] + +[package.extras] +numpy-style = ["docstring_parser (>=0.7)"] + [[package]] name = "pywin32" version = "306" @@ -3998,4 +4029,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "dbcb5815679c093bdeacc97df03dba86c61d414539bbd480d4152ce1c58b2ea6" +content-hash = "e8ed0a3cf8a35faddd15d0f79d98ec1b4a84563d6afcda2d7c9e3c4bf07de704" diff --git a/pyproject.toml b/pyproject.toml index e8cf274..96063e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ mkdocs = "^1.5.3" mkdocs-material = "^9.5.14" mkdocs-jupyter = "^0.24.6" mkdocstrings = "^0.24.1" +mkdocstrings-python-legacy = "^0.2.3" [build-system] requires = ["poetry-core>=1.0.0"] @@ -56,15 +57,22 @@ build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] fcm = 'fcmeans.cli:app' + [tool.semantic_release] -version_variable = [ +version_variables = [ 'fcmeans/__init__.py:__version__', - "pyproject.toml:version" ] -branch = "master" -upload_to_pypi = true -upload_to_release = true +version_toml = ["pyproject.toml:tool.poetry.version"] +[tool.semantic_release.branches.main] +match = "(main|master)" +prerelease_token = "rc" +prerelease = false build_command = "poetry build" + +[tool.semantic_release.publish] +upload_to_vcs_release = true + +[tool.semantic_release.changelog] changelog_file = "docs/CHANGELOG.md" [mypy]