File: setup.py

package info (click to toggle)
editmoin 1.10.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 112 kB
  • ctags: 63
  • sloc: python: 364; makefile: 5
file content (31 lines) | stat: -rwxr-xr-x 922 bytes parent folder | download
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
#!/usr/bin/python
from distutils.core import setup
import os
import re

if os.path.isfile("MANIFEST"):
    os.unlink("MANIFEST")

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

setup(name="editmoin",
      version = VERSION,
      description = "Edit Moin pages remotely with your preferred editor",
      author = "Gustavo Niemeyer",
      author_email = "gustavo@niemeyer.net",
      url = "http://labix.org/editmoin",
      license = "GPL",
      long_description = 
"""\
This program allows you to edit moin (see http://moinmoin.wikiwikiweb.de)
pages with your preferred editor. It means you can easily edit your
pages, without the usual limitations of most web browsers' text areas.
""",
      scripts = ["editmoin"],
      data_files = [('share/man/man1', ['editmoin.1'])],
      )