summarylogtreecommitdiffstats
path: root/setup.patch
blob: b81a0806e0713a4e6ce16db22ddb3ea337ceea68 (plain)
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
--- setup.py	2020-06-06 05:31:19.000000000 -0600
+++ setup.py	2020-11-24 15:06:12.291166000 -0700
@@ -1,21 +1,10 @@
 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')
+shutil.copy('grub-reboot-picker/grub-reboot-picker.py', 'tmp/grub-reboot-picker')


 setuptools.setup(
@@ -32,7 +21,7 @@
     """,
     long_description_content_type="text/plain",
     url="https://github.com/mendhak/grub-reboot-picker",
-    packages=['src'],
+    packages=['grub-reboot-picker'],
     include_package_data=True,

     classifiers=[
@@ -43,7 +32,7 @@
     python_requires='>=3.6',
     install_requires=[],
     data_files=[
-        ('/usr/sbin/', ['tmp/grub-reboot-picker']),
+        ('/usr/bin/', ['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'])