Merge branch 'master' into 'master'

version bump

See merge request pleroma/relay!36
This commit is contained in:
Izalia Mae 2022-06-06 12:40:03 +00:00
commit a2b0b2f548
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
__version__ = '0.2.0' __version__ = '0.2.1'
from aiohttp.web import Application from aiohttp.web import Application

View file

@ -12,9 +12,10 @@ from .processors import run_processor
try: try:
commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii') commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii')
version = f'{__version__} {commit_label}'
except: except:
commit_label = '???' version = __version__
async def home(request): async def home(request):
@ -169,7 +170,7 @@ async def nodeinfo_2_0(request):
}, },
'software': { 'software': {
'name': 'activityrelay', 'name': 'activityrelay',
'version': f'{__version__} {commit_label}' 'version': version
}, },
'usage': { 'usage': {
'localPosts': 0, 'localPosts': 0,

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = relay name = relay
version = 0.2.0 version = 0.2.1
description = Generic LitePub relay (works with all LitePub consumers and Mastodon) description = Generic LitePub relay (works with all LitePub consumers and Mastodon)
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8 long_description_content_type = text/markdown; charset=UTF-8