fixed commit hash logging and added github url

This commit is contained in:
sezanzeb 2021-02-17 00:31:33 +01:00 committed by sezanzeb
parent 547adf74ec
commit 314f770bc5
2 changed files with 5 additions and 2 deletions

View File

@ -152,7 +152,10 @@ def log_info():
try:
name = pkg_resources.require('key-mapper')[0].project_name
version = pkg_resources.require('key-mapper')[0].version
logger.info('%s %s %s', name, version, COMMIT_HASH)
logger.info(
'%s %s %s https://github.com/sezanzeb/key-mapper',
name, version, COMMIT_HASH
)
evdev_version = pkg_resources.require('evdev')[0].version
logger.info('python-evdev %s', evdev_version)

View File

@ -34,7 +34,7 @@ class Install(install):
with open('keymapper/logger.py', 'r') as f:
contents = f.read()
contents = re.sub(
r"COMMIT_HASH = '.+'",
r"COMMIT_HASH = '.*?'",
f"COMMIT_HASH = '{commit}'",
contents
)