Repository: climate Updated Branches: refs/heads/master c9813e36b -> f4d673ce5
CLIMATE-539 Get OCW on to PyPI Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/8334a839 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/8334a839 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/8334a839 Branch: refs/heads/master Commit: 8334a839625cf07ef3201b25b1820e5e0bfebfec Parents: 2104da0 Author: Lewis John McGibbney <[email protected]> Authored: Wed Oct 29 14:45:15 2014 -0700 Committer: Lewis John McGibbney <[email protected]> Committed: Wed Oct 29 14:45:15 2014 -0700 ---------------------------------------------------------------------- setup.cfg | 17 +++++++++++++ setup.py | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 84 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/8334a839/setup.cfg ---------------------------------------------------------------------- diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3725441 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,17 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE.txt file distributed with +# this work for additional information regarding copyright ownership. The ASF +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +[metadata] +description-file = README.md http://git-wip-us.apache.org/repos/asf/climate/blob/8334a839/setup.py ---------------------------------------------------------------------- diff --git a/setup.py b/setup.py index 3874385..0384612 100644 --- a/setup.py +++ b/setup.py @@ -15,15 +15,73 @@ # specific language governing permissions and limitations # under the License. -from setuptools import setup +import os.path +from setuptools import find_packages, setup + +# Package data +# ------------ + +_name = 'ocw' +_version = '0.5' +_description = 'Apache Open Climate Workbench' +_url = 'http://climate.apache.org/' +_downloadURL = 'http://pypi.python.org/pypi/ocw/' +_author = 'Apache Open Climate Workbench' +_authorEmail = '[email protected]' +_license = 'Apache License, Version 2.0' +_namespaces = [] +_testSuite = 'ocw.tests' +_zipSafe = True +_keywords = ['climate analysis', 'workbench', 'rebinning', 'metrics', 'computation', 'visualization'] +_requirements = [] +_classifiers = [ + 'Environment :: Console', + 'Environment :: No Input/Output (Daemon)', + 'Intended Audience :: Developers', + 'Intended Audience :: Information Technology', + 'Intended Audience :: Science/Research', + 'Topic :: Database :: Front-Ends', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', + 'Topic :: Internet :: WWW/HTTP :: HTTP Servers', + 'Topic :: Scientific/Engineering', + 'Development Status :: 5 - Production/Stable', + 'Environment :: Web Environment', + 'License :: OSI Approved :: Apache Software License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Internet :: WWW/HTTP', + 'Topic :: Software Development :: Libraries :: Python Modules', +] + +# Setup Metadata +# -------------- + +def _read(*rnames): + return open(os.path.join(os.path.dirname(__file__), *rnames)).read() + +_header = '*' * len(_name) + '\n' + _name + '\n' + '*' * len(_name) +_longDescription = '\n\n'.join([ + _header, + _read('README.md') +]) +open('doc.txt', 'w').write(_longDescription) setup( - name='Apache Open Climate Workbench', - version='0.4', - url='http://climate.apache.org/index.html', - author='Apache Open Climate Workbench', - author_email='[email protected]', - packages=['ocw', 'ocw.data_source', 'ocw.tests', 'ocw.esgf'], - license='Apache License, Version 2.0', - long_description='The Apache Open Climate Workbench provides tools for the evaluation and analysis of climate models.' + author=_author, + author_email=_authorEmail, + classifiers=_classifiers, + description=_description, + download_url=_downloadURL, + include_package_data=True, + install_requires=_requirements, + keywords=_keywords, + license=_license, + long_description=_longDescription, + name=_name, + namespace_packages=_namespaces, + packages=find_packages(), + test_suite=_testSuite, + url=_url, + version=_version, + zip_safe=_zipSafe, )
