~yasumoto7/five-a-day/icon_countdown

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Daniel Holbach
  • Date: 2008-02-13 11:43:51 UTC
  • Revision ID: daniel.holbach@ubuntu.com-20080213114351-9s5z034oul33bd6q
added packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
from distutils.core import setup
 
4
import glob
 
5
import os
 
6
import re
 
7
 
 
8
# look/set what version we have
 
9
changelog = "debian/changelog"
 
10
if os.path.exists(changelog):
 
11
    head=open(changelog).readline()
 
12
    match = re.compile(".*\((.*)\).*").match(head)
 
13
    if match:
 
14
        version = match.group(1)
 
15
 
 
16
setup(name='five-a-day',
 
17
      version=version,
 
18
      scripts=['update-signature', 
 
19
               'add-5-a-day' 
 
20
            ],
 
21
)