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/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, 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