1 #!/usr/bin/env python 2 # 3 # Copyright 2013 Google Inc. All Rights Reserved. 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 """Setup configuration.""" 18 19 import platform 20 21 from setuptools import setup 22 23 # Configure the required packages and scripts to install, depending on 24 # Python version and OS. 25 REQUIRED_PACKAGES = [ 26 'six', 27 ] 28 CONSOLE_SCRIPTS = [ 29 'gen_protorpc = gen_protorpc:main', 30 ] 31 32 py_version = platform.python_version() 33 if py_version < '2.6': 34 REQUIRED_PACKAGES.append('simplejson') 35 36 _PROTORPC_VERSION = '0.10.0' 37 packages = [ 38 'protorpc', 39 ] 40 41 setup( 42 name='protorpc', 43 version=_PROTORPC_VERSION, 44 description='Google Protocol RPC', 45 url='http://code.google.com/p/google-protorpc/', 46 author='Google Inc.', 47 author_email='rafek (at] google.com', 48 # Contained modules and scripts. 49 packages=packages, 50 entry_points={ 51 'console_scripts': CONSOLE_SCRIPTS, 52 }, 53 install_requires=REQUIRED_PACKAGES, 54 provides=[ 55 'protorpc (%s)' % (_PROTORPC_VERSION,), 56 ], 57 # PyPI package information. 58 classifiers=[ 59 'Intended Audience :: Developers', 60 'License :: OSI Approved :: Apache Software License', 61 'Operating System :: MacOS :: MacOS X', 62 'Operating System :: Microsoft :: Windows', 63 'Operating System :: POSIX :: Linux', 64 'Programming Language :: Python :: 2', 65 'Programming Language :: Python :: 2.6', 66 'Programming Language :: Python :: 2.7', 67 'Programming Language :: Python :: 3', 68 'Programming Language :: Python :: 3.3', 69 'Programming Language :: Python :: 3.4', 70 'Topic :: Software Development :: Libraries', 71 'Topic :: Software Development :: Libraries :: Python Modules', 72 ], 73 license='Apache 2.0', 74 keywords='google protocol rpc', 75 ) 76