From f938bccd62486ba650197e69e994083528a77468 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Fri, 7 Apr 2023 15:23:12 -0300 Subject: [PATCH] Bump version 0.2.0 --- .bumpversion.cfg | 13 ------------- src/pysignalr/__init__.py | 4 +++- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 26dfcc5..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,13 +0,0 @@ -[bumpversion] -current_version = 0.1.2 -commit = True -tag = True -tag_name = {new_version} - -[bumpversion:file:pyproject.toml] -search = version = "{current_version}" -replace = version = "{new_version}" - -[bumpversion:file:src/pysignalr/__init__.py] -search = __version__ = '{current_version}' -replace = __version__ = '{new_version}' diff --git a/src/pysignalr/__init__.py b/src/pysignalr/__init__.py index dd3b24d..5e702f5 100644 --- a/src/pysignalr/__init__.py +++ b/src/pysignalr/__init__.py @@ -1,4 +1,6 @@ -__version__ = '0.1.2' +import importlib.metadata + +__version__ = importlib.metadata.version('pysignalr') import asyncio import random