thirdparty/python-graph/setup.py
changeset 594 06c2228e39cb
equal deleted inserted replaced
593:01f8c7aabb7e 594:06c2228e39cb
       
     1 #!/usr/bin/env python
       
     2 # -*- coding: utf-8 -*-
       
     3 
       
     4 from distutils.core import setup
       
     5 import os
       
     6 
       
     7 # Startup
       
     8 appname = "python-graph"
       
     9 appversion = "1.3.1"
       
    10 docfolder = 'share/doc/' + appname + '-' + appversion + '/'
       
    11 docfolder = os.path.normcase(docfolder)
       
    12 docfiles = os.listdir('docs')
       
    13 docs = os.path.normcase('docs/')
       
    14 for i in xrange(len(docfiles)):
       
    15         docfiles[i] = docs + docfiles[i]
       
    16 
       
    17 setup(
       
    18         name = appname,
       
    19         version = appversion,
       
    20         packages = ['graph'],
       
    21         data_files = [(docfolder, ['README','Changelog','COPYING']),
       
    22                                 (docfolder + docs, docfiles),
       
    23                                 ],
       
    24 
       
    25         # metadata
       
    26         author = "Pedro Matiello",
       
    27         author_email = "pmatiello@gmail.com",
       
    28         description = "A library for working with graphs in Python",
       
    29         license = "MIT",
       
    30         keywords = "python graph algorithms library",
       
    31         url = "http://code.google.com/p/python-graph/",
       
    32         classifiers = ["License :: OSI Approved :: MIT License","Topic :: Software Development :: Libraries :: Python Modules"],
       
    33         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."
       
    34 )