From 1174de92329536f0413004fbacca6baa5cdc3fc3 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Sun, 2 Aug 2015 14:11:18 -0400 Subject: [PATCH] Reformat Cython setup.py.in and add metadata Conform to 4 space tabs. Add classifiers about Cantera. Add long description. --- interfaces/cython/setup.py.in | 73 ++++++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 19 deletions(-) diff --git a/interfaces/cython/setup.py.in b/interfaces/cython/setup.py.in index c5335f8ff..b6a4e421b 100644 --- a/interfaces/cython/setup.py.in +++ b/interfaces/cython/setup.py.in @@ -30,22 +30,39 @@ if os.name == 'nt': bdist_msi.run = bdist_run_new +# Copy the long_description from docs/sphinx/index.rst +long_description = """ +Cantera is a suite of object-oriented software tools for problems involving +chemical kinetics, thermodynamics, and/or transport processes. -setup(name="Cantera", - version="@cantera_version@", - description="The Cantera Python Interface", - long_description=""" - """, - author="Raymond Speth", - author_email="speth@mit.edu", - url="http://www.cantera.org", - packages = ['cantera', - 'cantera.data', - 'cantera.test', - 'cantera.test.data', - 'cantera.mixmaster', - 'cantera.mixmaster.Units', - 'cantera.examples'], +Cantera provides types (or classes) of objects representing phases of +matter, interfaces between these phases, reaction managers, time-dependent +reactor networks, and steady one-dimensional reacting flows. Cantera is +currently used for applications including combustion, detonations, +electrochemical energy conversion and storage, fuel cells, batteries, aqueous +electrolyte solutions, plasmas, and thin film deposition. + +Cantera can be used from Python and Matlab, or in applications written +in C++ and Fortran 90. +""" + +setup( + name="Cantera", + version="@cantera_version@", + description="The Cantera Python Interface", + long_description=long_description, + author="Raymond Speth", + author_email="speth@mit.edu", + url="http://www.cantera.org", + packages = [ + 'cantera', + 'cantera.data', + 'cantera.test', + 'cantera.test.data', + 'cantera.mixmaster', + 'cantera.mixmaster.Units', + 'cantera.examples', + ], entry_points={ 'console_scripts': [ 'ck2cti=cantera.ck2cti:script_entry_point', @@ -53,7 +70,25 @@ setup(name="Cantera", 'mixmaster=cantera.mixmaster.__main__:main', ], }, - package_data = {'cantera.data': ['*.*'], - 'cantera.test.data': ['*.*'], - 'cantera.examples': ['*/*.*'], - 'cantera': ["@py_extension@", '*.pxd']}) + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Education', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: BSD License', + 'Operating System :: MacOS :: MacOS X', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: POSIX :: Linux', + 'Programming Language :: C++', + 'Programming Language :: Fortran', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Topic :: Scientific/Engineering :: Chemistry', + ], + package_data = { + 'cantera.data': ['*.*'], + 'cantera.test.data': ['*.*'], + 'cantera.examples': ['*/*.*'], + 'cantera': ["@py_extension@", '*.pxd'], + }, +)