From 0b8794a527a4f54b8400a6ab6346bc050d0958fa Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 5 Jul 2013 00:31:50 -0400 Subject: [PATCH] Make openstack.requirements installable. Turn requirements into a dummy package that, if installed, will install all of OpenStack's requirements. Change-Id: Ie2670278b740173bee09608d8ef9bf892f498aa1 --- MANIFEST.in | 6 ++++++ setup.cfg | 22 ++++++++++++++++++++++ setup.py | 21 +++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 MANIFEST.in create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000000..c978a52dae --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +include AUTHORS +include ChangeLog +exclude .gitignore +exclude .gitreview + +global-exclude *.pyc diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000..b1c517bd14 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,22 @@ +[metadata] +name = openstack.requirements +summary = OpenStack Python Dependencies +description-file = + README.rst +author = OpenStack +author-email = openstack-dev@lists.openstack.org +home-page = http://www.openstack.org/ +classifier = + Environment :: OpenStack + Intended Audience :: Information Technology + Intended Audience :: System Administrators + License :: OSI Approved :: Apache Software License + Operating System :: POSIX :: Linux + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 2.6 + +[global] +setup-hooks = + pbr.hooks.setup_hook diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000..b3e85a7150 --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. +# +# Licensed 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. + +import setuptools + +setuptools.setup( + setup_requires=['d2to1>=0.2.10,<0.3', 'pbr>=0.5.10,<0.6'], + d2to1=True)