Migrated scripts to entry points.

This commit is contained in:
Richard Neumann 2021-01-05 11:37:19 +01:00
parent 501f28e0ee
commit 14fd640059
3 changed files with 6 additions and 17 deletions

View file

@ -1,8 +0,0 @@
#! /usr/bin/env python3
"""Sets the system mode."""
from tabletmode.cli import main
if __name__ == '__main__':
main()

View file

@ -10,7 +10,12 @@ setup(
author_email='mail@richard-neumann.de', author_email='mail@richard-neumann.de',
python_requires='>=3.8', python_requires='>=3.8',
packages=['tabletmode'], packages=['tabletmode'],
scripts=['setsysmode', 'sysmoded'], entry_points={
'console_scripts': [
'setsysmode = tabletmode.cli:main',
'sysmoded = tabletmode.daemon:main'
],
},
url='https://github.com/conqp/tablet-mode', url='https://github.com/conqp/tablet-mode',
license='GPLv3', license='GPLv3',
description='Tablet mode switch for GNOME 3.', description='Tablet mode switch for GNOME 3.',

View file

@ -1,8 +0,0 @@
#! /usr/bin/env python3
"""System mode daemon."""
from tabletmode.daemon import main
if __name__ == '__main__':
main()