From 4847c2bbc042d76c67b150cea81d66558d0a583e Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 6 Jun 2022 08:29:06 -0400 Subject: [PATCH 1/2] version bump --- relay/__init__.py | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/__init__.py b/relay/__init__.py index bd51b89..5afabae 100644 --- a/relay/__init__.py +++ b/relay/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.2.0' +__version__ = '0.2.1' from aiohttp.web import Application diff --git a/setup.cfg b/setup.cfg index 592bf04..4009a43 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = relay -version = 0.2.0 +version = 0.2.1 description = Generic LitePub relay (works with all LitePub consumers and Mastodon) long_description = file: README.md long_description_content_type = text/markdown; charset=UTF-8 From 4fc5d692bfd07d53b37aed6160cb1110612c32b7 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 6 Jun 2022 08:37:08 -0400 Subject: [PATCH 2/2] exclude git hash if unavailable --- relay/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/relay/views.py b/relay/views.py index 0ba2f99..6eac9d7 100644 --- a/relay/views.py +++ b/relay/views.py @@ -12,9 +12,10 @@ from .processors import run_processor try: commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii') + version = f'{__version__} {commit_label}' except: - commit_label = '???' + version = __version__ async def home(request): @@ -169,7 +170,7 @@ async def nodeinfo_2_0(request): }, 'software': { 'name': 'activityrelay', - 'version': f'{__version__} {commit_label}' + 'version': version }, 'usage': { 'localPosts': 0,