~apw/arsenal/python-launchpadlib-toolkit-task_date_accessors

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
#!/usr/bin/env python

# Copyright (C) Canonical, Ltd.  Licensed under the GPL

from distutils.core import setup
import os
import re

# look/set what version we have
changelog = "debian/changelog"
if os.path.exists(changelog):
    head=open(changelog).readline()
    match = re.compile(".*\((.*)\).*").match(head)
    if match:
        version = match.group(1)

setup(name     = 'python-launchpadlib-toolkit',
      version  = version,
      packages = ['lpltk'],
      scripts  = [
        'scripts/current-ubuntu-supported-releases',
        'scripts/current-ubuntu-development-codename',
        'scripts/current-ubuntu-release-codename',
        'scripts/ls-assigned-bugs',
        'scripts/find-similar-bugs',
        'scripts/close-fix-committed-bugs',
        ],
)