[Subversion] / WikiUp / setup.py  

View of /WikiUp/setup.py

Parent Directory | Revision Log
Revision: 2656 - (download) (as text)
Wed Aug 11 23:38:18 2010 UTC (13 years, 8 months ago) by pje
File size: 1212 byte(s)
The --changed-file or -f option now lets you specify a single file to 
upload.
#!/usr/bin/env python
"""Distutils setup file"""
import sys
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup

# Metadata
PROJECT = 'WikiUp'
VERSION = '1.1'
TAGLINE = 'Wiki page uploading command plugin for setuptools'

def get_description():
    # Get our long description from the documentation
    f = file('README.txt')
    lines = []
    for line in f:
        if not line.strip():
            break     # skip to first blank line
    for line in f:
        if line.startswith('.. contents::'):
            break     # read to table of contents
        lines.append(line)
    f.close()
    return ''.join(lines)

setup(
    name=PROJECT, version=VERSION, description=TAGLINE,
    url = "http://cheeseshop.python.org/pypi/" + PROJECT,
    long_description = file('README.txt').read(), #get_description(),
    author="Phillip J. Eby", author_email="peak@eby-sarna.com",
    license="PSF or ZPL", test_suite = 'wikiup', py_modules=['wikiup'],
    include_package_data = True, install_requires = ['mechanize'],
    entry_points = """
    [wikiup.plugins]
    OldMoin = wikiup:OldMoin
    [distutils.commands]
    wikiup = wikiup:wikiup""", classifiers=['Framework :: Setuptools Plugin'],
)

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help