Create a package for monasca-ceilometer

Setup monasca-ceilometer so that it can be
packaged.

Change-Id: I1a5591295ea614801b79c6f227f1733c53ca03ff
This commit is contained in:
Ashwin Agate 2017-07-18 12:43:49 -07:00 committed by Witold Bedyk
parent 4775598b8a
commit 513e17863e
2 changed files with 55 additions and 4 deletions

27
setup.cfg Normal file
View File

@ -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

View File

@ -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)