Changeset 1806


Ignore:
Timestamp:
Nov 7, 2009 11:16:10 AM (10 years ago)
Author:
wehart
Message:

Initial reorg of the Coopr trunk. The goal of this reorg is to
decompose Coopr into independent packages, each of which can
be maintained more independently.

Files:
66 added
4 deleted
1 copied
27 moved

Legend:

Unmodified
Added
Removed
  • coopr.opt/trunk/setup.py

    r1805 r1806  
     1#  _________________________________________________________________________
     2#
     3#  Coopr: A COmmon Optimization Python Repository
     4#  Copyright (c) 2008 Sandia Corporation.
     5#  This software is distributed under the BSD License.
     6#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
     7#  the U.S. Government retains certain rights in this software.
     8#  _________________________________________________________________________
     9
    110"""
    2 Script to generate the installer for Coopr.
     11Script to generate the installer for coopr.opt.
    312"""
    413
    5 classifiers = """\
    6 Development Status :: 4 - Beta
    7 Intended Audience :: End Users/Desktop
    8 Intended Audience :: Science/Research
    9 License :: OSI Approved :: BSD License
    10 Natural Language :: English
    11 Operating System :: Microsoft :: Windows
    12 Operating System :: Unix
    13 Programming Language :: Python
    14 Programming Language :: Unix Shell
    15 Topic :: Scientific/Engineering :: Mathematics
    16 Topic :: Software Development :: Libraries :: Python Modules
    17 """
    18 
    19 import coopr.coopr
    2014import glob
    2115import os
     
    3933    return map(lambda x:x.replace(os.sep,"."), pkg_list)
    4034
     35def read(*rnames):
     36    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
     37
    4138try:
    4239    from setuptools import setup
     
    4744
    4845scripts = glob.glob("scripts/*")
    49 doclines = coopr.coopr.__doc__.split("\n")
    5046
    51 setup(name="Coopr",
    52       version=coopr.coopr.__version__,
    53       maintainer=coopr.coopr.__maintainer__,
    54       maintainer_email=coopr.coopr.__maintainer_email__,
    55       url = coopr.coopr.__url__,
    56       license = coopr.coopr.__license__,
     47setup(name='coopr.opt',
     48      version='2.0',
     49      maintainer='William E. Hart',
     50      maintainer_email='wehart@sandia.gov',
     51      url = 'https://software.sandia.gov/svn/public/coopr/coopr.opt',
     52      license = 'BSD',
    5753      platforms = ["any"],
    58       description = doclines[0],
    59       classifiers = filter(None, classifiers.split("\n")),
    60       long_description = "\n".join(doclines[2:]),
     54      description = 'Coopr generic optimization interfaces',
     55      long_description = read('README.txt'),
     56      classifiers = [
     57            'Development Status :: 4 - Beta',
     58            'Intended Audience :: End Users/Desktop',
     59            'Intended Audience :: Science/Research',
     60            'License :: OSI Approved :: BSD License',
     61            'Natural Language :: English',
     62            'Operating System :: Microsoft :: Windows',
     63            'Operating System :: Unix',
     64            'Programming Language :: Python',
     65            'Programming Language :: Unix Shell',
     66            'Topic :: Scientific/Engineering :: Mathematics',
     67            'Topic :: Software Development :: Libraries :: Python Modules'
     68        ],
    6169      packages=packages,
    6270      keywords=['optimization'],
    6371      scripts=scripts,
    64       namespace_packages=['coopr', 'coopr.plugins'],
    65       entry_points = {
    66         'coopr.opt': [
    67             'solvermanager.pyro = coopr.plugins.smanager.pyro',
    68             'converter.glpsol = coopr.plugins.converter.glpsol',
    69             'converter.pico = coopr.plugins.converter.pico',
    70             'converter.pyomo = coopr.plugins.converter.pyomo',
    71             'solver.cbc = coopr.plugins.mip.CBC',
    72             'solver.cplex = coopr.plugins.mip.CPLEX',
    73             'solver.pico = coopr.plugins.mip.PICO',
    74             'solver.glpk = coopr.plugins.mip.GLPK',
    75         ]
    76       }
     72      namespace_packages=['coopr']
    7773      )
    7874
Note: See TracChangeset for help on using the changeset viewer.