mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-18 03:25:52 +00:00
fixed commit hash logging and added github url
This commit is contained in:
parent
547adf74ec
commit
314f770bc5
@ -152,7 +152,10 @@ def log_info():
|
|||||||
try:
|
try:
|
||||||
name = pkg_resources.require('key-mapper')[0].project_name
|
name = pkg_resources.require('key-mapper')[0].project_name
|
||||||
version = pkg_resources.require('key-mapper')[0].version
|
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
|
evdev_version = pkg_resources.require('evdev')[0].version
|
||||||
logger.info('python-evdev %s', evdev_version)
|
logger.info('python-evdev %s', evdev_version)
|
||||||
|
2
setup.py
2
setup.py
@ -34,7 +34,7 @@ class Install(install):
|
|||||||
with open('keymapper/logger.py', 'r') as f:
|
with open('keymapper/logger.py', 'r') as f:
|
||||||
contents = f.read()
|
contents = f.read()
|
||||||
contents = re.sub(
|
contents = re.sub(
|
||||||
r"COMMIT_HASH = '.+'",
|
r"COMMIT_HASH = '.*?'",
|
||||||
f"COMMIT_HASH = '{commit}'",
|
f"COMMIT_HASH = '{commit}'",
|
||||||
contents
|
contents
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user