From 2a030af33ed122562268819d4e1d61dcd67f0c80 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Thu, 25 Jul 2024 09:51:32 +0200 Subject: [PATCH] global: add bumpversion config --- .../{publish.yml => bump-and-publish.yml} | 0 inspire_matcher/__init__.py | 2 ++ setup.cfg | 17 ++++++++++++++--- setup.py | 4 ++++ 4 files changed, 20 insertions(+), 3 deletions(-) rename .github/workflows/{publish.yml => bump-and-publish.yml} (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/bump-and-publish.yml similarity index 100% rename from .github/workflows/publish.yml rename to .github/workflows/bump-and-publish.yml diff --git a/inspire_matcher/__init__.py b/inspire_matcher/__init__.py index 1203d01..906f97e 100644 --- a/inspire_matcher/__init__.py +++ b/inspire_matcher/__init__.py @@ -24,3 +24,5 @@ from .api import match # noqa: F401 from .ext import InspireMatcher # noqa: F401 + +__version__ = "9.0.28" diff --git a/setup.cfg b/setup.cfg index 525d242..b10ca7d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,9 +20,20 @@ # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. -# -# Tests -# +[bumpversion] +current_version = 9.0.28 +commit = True +tag = True +tag_name = {new_version} +message = Bump version: {current_version} → {new_version} [skip ci] + +[bumpversion:file:setup.py] +search = version="{current_version}" +replace = version="{new_version}" + +[bumpversion:file:inspire_matcher/__init__.py] +search = __version__ = "{current_version}" +replace = __version__ = "{new_version}" [coverage:run] include = inspire_matcher/*.py diff --git a/setup.py b/setup.py index 242dc51..28d4c30 100644 --- a/setup.py +++ b/setup.py @@ -105,6 +105,7 @@ 'inspire_matcher = inspire_matcher:InspireMatcher', ], }, + version="9.0.28", classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', @@ -117,6 +118,9 @@ 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules', ],