Changeset 14145 for trunk


Ignore:
Timestamp:
04/18/12 12:20:00 (12 years ago)
Author:
sil
Message:

WIP of setup.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/setup.py

    r11782 r14145  
    1 #!/usr/bin/env python
    2 
    3 #from distutils.core import setup
    4 from setuptools import setup
    5 from sara_cmt import settings
    6 
     1from distutils.core import setup
    72setup(
    8     name = 'saracmt',
    9     version = '0.9',
     3    name = 'CMT',
     4    version = '1.0',
     5    description = 'Cluster Management Tool',
     6    url = 'http://subtrac.sara.nl/oss/cmt/',
     7    #download_url = ''
    108    author = 'Sil Westerveld',
    119    author_email = 'sil.westerveld@sara.nl',
    12     #maintainer = ''
    13     #maintainer_email = ''
    14     url = 'cmt.hpcv.sara.nl/doc',
    15     description = 'SARA Cluster Management Tool',
    16     long_description = '''SARA CMT is a Cluster Management Tool, developed and used \
    17       at SARA Computing & Networking Services. Main purpose is to automagicaly \
    18       generate and save config-files based on Django-like templates.''',
    19     #download_url = ''
     10    license = 'GPL',
     11    long_description = '''\
     12CMT is a Cluster Management Tool originally created at SARA Computing and \
     13Networking Services, which is based in Amsterdam and known as SARA nowadays.''',
     14
     15    platforms = ['linux-x86_64'],
    2016
    2117    # see: http://pypi.python.org/pypi?:action=list_classifiers
    2218    classifiers = [
    23         'Development Status :: 4 - Beta',
     19        #'Development Status :: 4 - Beta',
     20        'Development Status :: 5 - Production/Stable',
    2421        'Environment :: Console',
    2522        'Environment :: Web Environment',
     
    3027        'Operating System :: POSIX :: Linux',
    3128        'Programming Language :: Python :: 2.6',
     29        'Topic :: Database :: Front-Ends',
     30        'Topic :: System :: Clustering',
    3231        'Topic :: System :: System Administration',
     32        'Topic :: Utilities',
    3333    ],
    3434
    35     #platforms
    36     license = 'GPL',
    3735
     36
     37# The packages option tells the Distutils to process (build, distribute, install, etc.) all pure Python modules found in each package mentioned in the packages list. In order to do this, of course, there has to be a correspondence between package names and directories in the filesystem. The default correspondence is the most obvious one, i.e. package distutils is found in the directory distutils relative to the distribution root. Thus, when you say packages = ['foo'] in your setup script, you are promising that the Distutils will find a file foo/__init__.py (which might be spelled differently on your system, but you get the idea) relative to the directory where your setup script lives.
     38#
    3839    packages = ['sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'],
    39     #packages = ['django', 'config', 'sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'],
    40     #package_data = {'config': ['*']},
    41     #package_dir = {'django': '/home/sil/etc/alternatives/django/*'},
    42     #package_data = {'sara_cmt': ['*']},
    43     scripts = ['cmt'],
    44     data_files = [('config', ['config/cmt.cfg'])],
    45     requires = ['django', 'django_extensions', 'south', 'debug_toolbar', 'IPy'],
     40
     41# This describes two modules, one of them in the "root" package, the other in the pkg package. Again, the default package/directory layout implies that these two modules can be found in mod1.py and pkg/mod2.py, and that pkg/__init__.py exists as well.
     42#
     43#    py_modules = ['mod1', 'pkg.mod2'],
     44
     45# Dependencies on other Python modules and packages can be specified by supplying the requires keyword argument to setup(). The value must be a list of strings. Each string specifies a package that is required, and optionally what versions are sufficient.
     46#
     47    requires = ['Django (>=1.2)', 'IPy (>=0.75)', 'django_extensions (>=0.4)', 'django_tagging (>=0.3.1)', 'psycopg2 (>=2.4.4)', 'Python (>=2.6)'],
     48
    4649)
     50#setup(
     51#    #maintainer = ''
     52#    #maintainer_email = ''
     53#
     54#    scripts = ['cmt'],
     55#    data_files = [('config', ['config/cmt.cfg'])],
     56#)
Note: See TracChangeset for help on using the changeset viewer.