From a9c4968f59f2d10171499e8a28b69bd1f824e514 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Tue, 17 Sep 2024 12:35:49 -0400 Subject: [PATCH] Improved version number updates. --- docs/source/conf.py | 4 ++-- docs/source/index.rst | 2 +- pyproject.toml | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 62a16034..e7ba84d3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -73,10 +73,10 @@ # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = "7.1" # The full version, including alpha/beta/rc tags. release = "7.1.3" +# The short X.Y version. +version = ".".join(release.split(".")[:2]) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/source/index.rst b/docs/source/index.rst index 316422aa..25f35530 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -19,7 +19,7 @@ multilingual capabilities, remote configuration and other features. PySNMP implementation closely follows intricate system details and features bringing most possible power and flexibility to its users. -Current PySNMP stable version is 7.1. It runs with Python 3.8+ +Current PySNMP stable version is |version|. It runs with Python 3.8+ and is recommended for new applications as well as for migration from older, now obsolete, PySNMP releases. All site documentation and examples are written for the 6.0 and later versions in mind. diff --git a/pyproject.toml b/pyproject.toml index 5a0db300..6220dd5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,6 +57,10 @@ sphinx-polyversion = "^1.0.0" search = "release = \"{current_version}\"" replace = "release = \"{new_version}\"" +[tool.poetry_bumpversion.file."SECURITY.md"] +search = "| {current_version}" +replace = "| {new_version}" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"