The build string is now part of the mayan package metadata. Update forum link. Add instagram link.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-14 00:54:24 -04:00
parent 632f4b598b
commit 4df9fae737
5 changed files with 68 additions and 24 deletions

View File

@@ -2,8 +2,6 @@ from __future__ import unicode_literals
from json import dumps
import sh
from django.template import Context, Library
from django.template.loader import get_template
from django.utils.encoding import force_text
@@ -16,24 +14,6 @@ from ..utils import check_for_sqlite, return_attrib
register = Library()
try:
BUILD = sh.Command('git').bake('describe', '--tags', '--always', 'HEAD')
DATE = sh.Command('git').bake('--no-pager', 'log', '-1', '--format=%cd')
except sh.CommandNotFound:
BUILD = None
DATE = None
@register.simple_tag
def build():
if BUILD:
try:
return '{} {}'.format(BUILD(), DATE())
except sh.ErrorReturnCode_128:
return ''
else:
return ''
@register.simple_tag
def check_sqlite():