Merge lp:~javier.collado/mago/minimal-setup into lp:mago

Proposed by Javier Collado
Status: Merged
Merged at revision: 23
Proposed branch: lp:~javier.collado/mago/minimal-setup
Merge into: lp:mago
Diff against target: 33 lines (+29/-0)
1 file modified
setup.py (+29/-0)
To merge this branch: bzr merge lp:~javier.collado/mago/minimal-setup
Reviewer Review Type Date Requested Status
Jean-Baptiste Lallement Approve
Review via email: mp+50112@code.launchpad.net

Description of the change

Minimal setup file added to make it possible to install the software

To post a comment you must log in.
23. By Javier Collado

changelog version added if available

24. By Javier Collado

author_email added

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Nice, many thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'setup.py'
2--- setup.py 1970-01-01 00:00:00 +0000
3+++ setup.py 2011-02-17 15:00:43 +0000
4@@ -0,0 +1,29 @@
5+#!/usr/bin/python
6+import os, re
7+from distutils.core import setup
8+
9+def changelog_version(changelog='debian/changelog'):
10+ version=None
11+ if os.path.exists(changelog):
12+ head=open(changelog).readline()
13+ match=re.match('.*\((.*)\).*', head)
14+ if match:
15+ version=match.group(1)
16+ return version
17+
18+
19+setup(
20+ name = 'mago',
21+ version = changelog_version() or 'dev',
22+ author = 'Mago Contributors',
23+ author_email = 'desktop-testing-list@gnome.org',
24+ url = 'https://launchpad.net/mago',
25+ license = 'GPLv3',
26+ description = 'Mago - A Desktop Testing Initiative',
27+ packages = ['mago',
28+ 'mago.noseplugins',
29+ 'mago.mouse',
30+ 'mago.unity',
31+ 'mago.xlib'],
32+ scripts = ['bin/mago', 'bin/magomatic'],
33+)

Subscribers

People subscribed via source and target branches