thirdparty/python-graph/setup.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 29 Nov 2008 00:12:47 +0000
changeset 606 65d35584ee31
parent 594 06c2228e39cb
permissions -rwxr-xr-x
Make forms generic Currently only Sponsor uses the new generic forms, as such this makes the form code more complex. The other forms, however, can be converted in a similar way, which will result in a lot of code reduction. Patch by: Sverre Rabbelier

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from distutils.core import setup
import os

# Startup
appname = "python-graph"
appversion = "1.3.1"
docfolder = 'share/doc/' + appname + '-' + appversion + '/'
docfolder = os.path.normcase(docfolder)
docfiles = os.listdir('docs')
docs = os.path.normcase('docs/')
for i in xrange(len(docfiles)):
        docfiles[i] = docs + docfiles[i]

setup(
        name = appname,
        version = appversion,
        packages = ['graph'],
        data_files = [(docfolder, ['README','Changelog','COPYING']),
                                (docfolder + docs, docfiles),
                                ],

        # metadata
        author = "Pedro Matiello",
        author_email = "pmatiello@gmail.com",
        description = "A library for working with graphs in Python",
        license = "MIT",
        keywords = "python graph algorithms library",
        url = "http://code.google.com/p/python-graph/",
        classifiers = ["License :: OSI Approved :: MIT License","Topic :: Software Development :: Libraries :: Python Modules"],
        long_description = "python-graph is a library for working with graphs in Python. This software provides a suitable data structure for representing graphs and a whole set of important algorithms."
)