|
| 1 | +# Copyright 2011 OpenStack, LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
1 | 15 | import os |
| 16 | +import setuptools |
2 | 17 | import sys |
3 | | -from setuptools import setup, find_packages |
4 | | - |
5 | 18 |
|
6 | | -def read(fname): |
7 | | - return open(os.path.join(os.path.dirname(__file__), fname)).read() |
8 | 19 |
|
9 | | -requirements = ['httplib2', 'argparse', 'prettytable'] |
| 20 | +requirements = ["httplib2", "argparse", "prettytable"] |
10 | 21 | if sys.version_info < (2, 6): |
11 | | - requirements.append('simplejson') |
| 22 | + requirements.append("simplejson") |
12 | 23 |
|
13 | | -setup( |
14 | | - name = "python-novaclient", |
15 | | - version = "2.6.7", |
16 | | - description = "Client library for OpenStack Nova API", |
17 | | - long_description = read('README.rst'), |
18 | | - url = 'https://github.com/rackspace/python-novaclient', |
19 | | - license = 'Apache', |
20 | | - author = 'Rackspace, based on work by Jacob Kaplan-Moss', |
21 | | - author_email = 'github@racklabs.com', |
22 | | - packages = find_packages(exclude=['tests', 'tests.*']), |
23 | | - classifiers = [ |
24 | | - 'Development Status :: 5 - Production/Stable', |
25 | | - 'Environment :: Console', |
26 | | - 'Intended Audience :: Developers', |
27 | | - 'Intended Audience :: Information Technology', |
28 | | - 'License :: OSI Approved :: Apache Software License', |
29 | | - 'Operating System :: OS Independent', |
30 | | - 'Programming Language :: Python', |
31 | | - ], |
32 | | - install_requires = requirements, |
33 | 24 |
|
34 | | - tests_require = ["nose", "mock"], |
35 | | - test_suite = "nose.collector", |
| 25 | +def read_file(file_name): |
| 26 | + return open(os.path.join(os.path.dirname(__file__), file_name)).read() |
36 | 27 |
|
37 | | - entry_points = { |
38 | | - 'console_scripts': ['nova = novaclient.shell:main'] |
| 28 | + |
| 29 | +setuptools.setup( |
| 30 | + name="python-novaclient", |
| 31 | + version="2.6.7", |
| 32 | + author="Rackspace, based on work by Jacob Kaplan-Moss", |
| 33 | + author_email="github@racklabs.com", |
| 34 | + description="Client library for OpenStack Nova API.", |
| 35 | + long_description=read_file("README.rst"), |
| 36 | + license="Apache License, Version 2.0", |
| 37 | + url="https://github.com/openstack/python-novaclient", |
| 38 | + packages=["novaclient"], |
| 39 | + install_requires=requirements, |
| 40 | + tests_require=["nose", "mock"], |
| 41 | + test_suite="nose.collector", |
| 42 | + classifiers=[ |
| 43 | + "Development Status :: 5 - Production/Stable", |
| 44 | + "Environment :: Console", |
| 45 | + "Intended Audience :: Developers", |
| 46 | + "Intended Audience :: Information Technology", |
| 47 | + "License :: OSI Approved :: Apache Software License", |
| 48 | + "Operating System :: OS Independent", |
| 49 | + "Programming Language :: Python" |
| 50 | + ], |
| 51 | + entry_points={ |
| 52 | + "console_scripts": ["nova = novaclient.shell:main"] |
39 | 53 | } |
40 | 54 | ) |
0 commit comments