-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·48 lines (39 loc) · 1.39 KB
/
setup.py
File metadata and controls
executable file
·48 lines (39 loc) · 1.39 KB
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
#!/usr/bin/python3
from distutils.core import setup
from distutils.command.install import install
from distutils.core import Command
import subprocess, sys
version = "2.0.0"
class DebRelease(Command):
description = 'Release a version to the debian packaging.'
user_options = [
('version', None, 'Override the version to use'),
]
def initialize_options(self):
self.version = version
def finalize_options(self):
pass
def run(self):
do_deb_release(self.version)
def do_deb_release(vers):
subprocess.run(['dch', '-v', vers])
subprocess.run(['dch', '-r','""'])
setup(
name = 'repoman',
version = version,
description = 'Easily manage software sources',
url = 'https://github.com/isantop/repoman',
license = 'GNU GPL3',
packages=['repoman'],
data_files = [
('/usr/share/metainfo', ['data/repoman.appdata.xml']),
('/usr/share/dbus-1/system-services', ['data/ro.santopiet.repoman.service']),
('/usr/share/polkit-1/actions', ['data/ro.santopiet.repoman.policy']),
('/etc/dbus-1/system.d/', ['data/ro.santopiet.repoman.conf']),
('/usr/share/applications', ['data/repoman.desktop']),
('/usr/share/repoman', ['data/style.css']),
('/usr/lib/repoman', ['add-del-ppa.py', 'data/repoman.pkexec'])
],
scripts = ['repoman/repoman'],
cmdclass={'release': DebRelease},
)