aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
blob: 272ec84a5914db2c4dfedacf6933e8e58c1dcb8f (plain)
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
#!/usr/bin/python
from distutils.core import setup
import sys
import re

verpat = re.compile("VERSION *= *\"(.*)\"")
data = open("repsys").read()
m = verpat.search(data)
if not m:
    sys.exit("error: can't find VERSION")
VERSION = m.group(1)

setup(name="repsys",
      version = VERSION,
      description = "Tools for Mandriva Linux repository access and management",
      author = "Gustavo Niemeyer",
      author_email = "gustavo@niemeyer.net",
      url = "http://qa.mandriva.com/twiki/bin/view/Main/RepositorySystem",
      license = "GPL",
      long_description = """Tools for Mandriva Linux repository access and management.""",
      packages = ["RepSys", "RepSys.cgi", "RepSys.commands"],
      scripts = ["repsys", "getsrpm-mdk"],
      data_files = [
	      ("/usr/share/repsys/", 
              ["default.chlog", 
              "revno.chlog",
              "oldfashion.chlog",
              "compatv15.chlog",
              "create-srpm",
              "rebrand-mdk"]),
	      ("/etc/", ["repsys.conf"])]
      )

# vim:ts=4:sw=4:et