Migrated scripts to entry points.
This commit is contained in:
parent
501f28e0ee
commit
14fd640059
3 changed files with 6 additions and 17 deletions
|
@ -1,8 +0,0 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
"""Sets the system mode."""
|
|
||||||
|
|
||||||
from tabletmode.cli import main
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
7
setup.py
7
setup.py
|
@ -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.',
|
||||||
|
|
8
sysmoded
8
sysmoded
|
@ -1,8 +0,0 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
"""System mode daemon."""
|
|
||||||
|
|
||||||
from tabletmode.daemon import main
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
Loading…
Reference in a new issue