2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
1 |
#!/usr/bin/env python3
|
2 |
# -*- Mode: Python; indent-tabs-mode: nil; tab-width: 4; coding: utf-8 -*-
|
|
2
by Michael Vogt
* switched to python dist-utils (DIE auto* DIE) |
3 |
|
2500
by Barry Warsaw
* pre-build.sh: Add python-gi as an explicit dependency. |
4 |
import os |
5 |
import glob |
|
6 |
||
2473
by Barry Warsaw
Remove unused import, for pyflakes. |
7 |
from distutils.core import setup |
2500
by Barry Warsaw
* pre-build.sh: Add python-gi as an explicit dependency. |
8 |
from subprocess import check_output |
2303
by Michael Vogt
* pyflake fixes, remove some dead code |
9 |
|
10 |
from DistUtilsExtra.command import ( |
|
2628.1.1
by Jeremy Bicha
Drop obsolete system-software-update icons |
11 |
build_extra, build_i18n, build_help) |
616
by Michael Vogt
* DistUpgrade/DistUpgradeControler.py, DistUpgrade/DistUpgrade.cfg: |
12 |
|
1279.1.2
by Lars Wirzenius
Install plugins to their correct place. |
13 |
|
14 |
disabled = [] |
|
15 |
||
2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
16 |
|
1279.1.2
by Lars Wirzenius
Install plugins to their correct place. |
17 |
def plugins(): |
2446.1.2
by Barry Warsaw
Disable various bits of computer janitor. |
18 |
return [] |
2446.1.3
by Barry Warsaw
Re-integrate the Python 3 Computer Janitor refactoring branch for now. The |
19 |
return [os.path.join('janitor/plugincore/plugins', name) |
20 |
for name in os.listdir('janitor/plugincore/plugins') |
|
21 |
if name.endswith('_plugin.py') and name not in disabled] |
|
1279.1.2
by Lars Wirzenius
Install plugins to their correct place. |
22 |
|
2500
by Barry Warsaw
* pre-build.sh: Add python-gi as an explicit dependency. |
23 |
|
24 |
for line in check_output('dpkg-parsechangelog --format rfc822'.split(), |
|
25 |
universal_newlines=True).splitlines(): |
|
26 |
header, colon, value = line.lower().partition(':') |
|
27 |
if header == 'version': |
|
28 |
version = value.strip() |
|
29 |
break
|
|
30 |
else: |
|
31 |
raise RuntimeError('No version found in debian/changelog') |
|
32 |
||
33 |
||
2516
by Michael Terry
don't report ubuntu-release-upgrader's version as our own; instead write our own Version.py file when we are built |
34 |
class CustomBuild(build_extra.build_extra): |
35 |
def run(self): |
|
36 |
with open("UpdateManager/UpdateManagerVersion.py", "w") as f: |
|
2777
by Brian Murray
setup.py: be sure to put a carriage return in UpdateManagerVersion.py |
37 |
f.write("VERSION = '%s'\n" % version) |
2516
by Michael Terry
don't report ubuntu-release-upgrader's version as our own; instead write our own Version.py file when we are built |
38 |
build_extra.build_extra.run(self) |
39 |
||
40 |
||
2
by Michael Vogt
* switched to python dist-utils (DIE auto* DIE) |
41 |
setup(name='update-manager', |
2500
by Barry Warsaw
* pre-build.sh: Add python-gi as an explicit dependency. |
42 |
version=version, |
2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
43 |
packages=['UpdateManager', |
1478
by Michael Vogt
* DistUpgrade/DistUpgradeQuirks.py: add check for ARMv6 or |
44 |
'UpdateManager.backend', |
455
by Michael Vogt
* split the package into update-manager and update-manager-core |
45 |
'UpdateManager.Core', |
2727.1.1
by Brian Murray
Include HWE support tools and information. (LP: #1498059) |
46 |
'HweSupportStatus', |
2503
by Barry Warsaw
Oops, one more. |
47 |
'janitor', |
2500
by Barry Warsaw
* pre-build.sh: Add python-gi as an explicit dependency. |
48 |
'janitor.plugincore', |
10
by Michael Vogt
* code cleanup, make it all more structured |
49 |
],
|
2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
50 |
scripts=['update-manager', |
2500
by Barry Warsaw
* pre-build.sh: Add python-gi as an explicit dependency. |
51 |
'ubuntu-support-status', |
2727.1.1
by Brian Murray
Include HWE support tools and information. (LP: #1498059) |
52 |
'hwe-support-status'
|
10
by Michael Vogt
* code cleanup, make it all more structured |
53 |
],
|
2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
54 |
data_files=[('share/update-manager/gtkbuilder', |
2443.1.3
by Michael Terry
first pass at splitting out release code |
55 |
glob.glob("data/gtkbuilder/*.ui") |
2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
56 |
),
|
705
by Michael Vogt
* data/update-manager.8: |
57 |
('share/man/man8', |
58 |
glob.glob('data/*.8') |
|
2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
59 |
),
|
2155
by Michael Vogt
* data/update-manager.convert: |
60 |
('share/GConf/gsettings/', |
61 |
['data/update-manager.convert']), |
|
2443.1.1
by Michael Terry
drop auto-upgrade-tester code; it's moved to a new source package |
62 |
],
|
2516
by Michael Terry
don't report ubuntu-release-upgrader's version as our own; instead write our own Version.py file when we are built |
63 |
cmdclass={"build": CustomBuild, |
2511.1.4
by Michael Terry
pep8-ify janitor and setup.py |
64 |
"build_i18n": build_i18n.build_i18n, |
2628.1.1
by Jeremy Bicha
Drop obsolete system-software-update icons |
65 |
"build_help": build_help.build_help} |
667
by Michael Vogt
* UpdateManager/DistUpgradeFetcher.py, |
66 |
)
|