-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
53 lines (45 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import os
import shutil
import setuptools
from stdeb import util
# Spacing is *critical* in the entire changelog file string.
with open("CHANGELOG.md", "r") as fh:
changelog = fh.read()
util.CHANGELOG_FILE = """%(source)s (%(full_version)s) %(distname)s; urgency=low
{}
-- %(maintainer)s %(date822)s\n""".format(changelog)
if not os.path.exists("tmp"):
os.makedirs("tmp")
shutil.copy('src/grub-reboot-picker.py', 'tmp/grub-reboot-picker')
setuptools.setup(
name="grub-reboot-picker",
version=os.getenv('version', '0.0.1'),
author="Mendhak",
maintainer="Mendhak",
author_email="[email protected]",
maintainer_email="[email protected]",
description="Tray application, reboot into different OSes.",
long_description="""This tray indicator application lets you reboot
into different OSes based on the grub menu.
Basically, a wrapper around grub-reboot command.
The icon sits in the tray area in gnome.
Tested on Ubuntu 20.04, 22.04, 23.04, 24.04
""",
long_description_content_type="text/plain",
url="https://github.com/mendhak/grub-reboot-picker",
packages=['src'],
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Ubuntu 23.04",
],
python_requires='>=3.6',
install_requires=[],
data_files=[
('/usr/sbin/', ['tmp/grub-reboot-picker']),
('/usr/share/polkit-1/actions/', ['com.mendhak.grubrebootpicker.policy']),
('/etc/xdg/autostart/', ['com.mendhak.grubrebootpicker.desktop']),
('/usr/share/applications/', ['com.mendhak.grubrebootpicker.desktop'])
]
)