diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..051b51c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,27 @@ +[metadata] +name = monasca_ceilometer + +summary = OpenStack Monasca Ceilometer - Provide Metering for Monasca +description-file = + README.md +author = OpenStack +author-email = openstack-dev@lists.openstack.org +home-page = https://github.com/openstack/monasca-ceilometer +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 :: 3 + Programming Language :: Python :: 3.5 + +[files] +packages = + ceilosca + +[pbr] +warnerrors = True diff --git a/setup.py b/setup.py index 46f7cd7..e2be832 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,29 @@ -from setuptools import setup +# (c) Copyright 2017 Hewlett Packard Enterprise Development LP +# (c) Copyright 2017 SUSE LLC +# 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. -# Prereqs of the build. Won't get installed when deploying the egg. -setup( - setup_requires=[]) +# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT +import setuptools + +# In python < 2.7.4, a lazy loading of package `pbr` will break +# setuptools if some other modules registered functions in `atexit`. +# solution from: http://bugs.python.org/issue15881#msg170215 +try: + import multiprocessing # noqa +except ImportError: + pass + +setuptools.setup( + setup_requires=['pbr>=1.8'], + pbr=True)