Fix the setup so the installation is sanitary
Prior the installation was not sanitary. Fix the installation so that magnum installs properly. Co-Authored-By: Digambar Patil <digambarpat@gmail.com> Co-Authored-By: Steven Dake <sdake@redhat.com> Change-Id: Ica6236a7ceba3f4e6a400c328839c5d0d53c268e
This commit is contained in:
parent
48dd100b45
commit
86cc4354ec
18
magnum/__init__.py
Normal file
18
magnum/__init__.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# 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 threading
|
||||||
|
|
||||||
|
|
||||||
|
# Make a project global TLS trace storage repository
|
||||||
|
TLS = threading.local()
|
||||||
|
|
51
setup.cfg
51
setup.cfg
@ -1,6 +1,45 @@
|
|||||||
[nosetests]
|
[metadata]
|
||||||
match=^test
|
name = magnum
|
||||||
where=api
|
version = 0.0.1
|
||||||
nocapture=1
|
summary = Application Lifecycle Management for OpenStack
|
||||||
cover-package=api
|
description-file =
|
||||||
cover-erase=1
|
README.md
|
||||||
|
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
|
||||||
|
Programming Language :: Python :: 3
|
||||||
|
Programming Language :: Python :: 3.3
|
||||||
|
|
||||||
|
[files]
|
||||||
|
packages =
|
||||||
|
magnum
|
||||||
|
|
||||||
|
[build_sphinx]
|
||||||
|
source-dir = doc/source
|
||||||
|
build-dir = doc/build
|
||||||
|
all_files = 1
|
||||||
|
|
||||||
|
[upload_sphinx]
|
||||||
|
upload-dir = doc/build/html
|
||||||
|
|
||||||
|
[compile_catalog]
|
||||||
|
directory = magnum/locale
|
||||||
|
domain = magnum
|
||||||
|
|
||||||
|
[update_catalog]
|
||||||
|
domain = magnum
|
||||||
|
output_dir = magnum/locale
|
||||||
|
input_file = magnum/locale/magnum.pot
|
||||||
|
|
||||||
|
[wheel]
|
||||||
|
universal = 1
|
||||||
|
50
setup.py
50
setup.py
@ -1,22 +1,30 @@
|
|||||||
# -*- coding: utf-8 -*-
|
#!/usr/bin/env python
|
||||||
try:
|
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
|
||||||
from setuptools import setup, find_packages
|
#
|
||||||
except ImportError:
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
from ez_setup import use_setuptools
|
# you may not use this file except in compliance with the License.
|
||||||
use_setuptools()
|
# You may obtain a copy of the License at
|
||||||
from setuptools import setup, find_packages
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
setup(
|
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
|
||||||
name='api',
|
import setuptools
|
||||||
version='0.1',
|
|
||||||
description='',
|
# In python < 2.7.4, a lazy loading of package `pbr` will break
|
||||||
author='',
|
# setuptools if some other modules registered functions in `atexit`.
|
||||||
author_email='',
|
# solution from: http://bugs.python.org/issue15881#msg170215
|
||||||
install_requires=[
|
try:
|
||||||
"pecan",
|
import multiprocessing # noqa
|
||||||
],
|
except ImportError:
|
||||||
test_suite='api',
|
pass
|
||||||
zip_safe=False,
|
|
||||||
include_package_data=True,
|
setuptools.setup(
|
||||||
packages=find_packages(exclude=['ez_setup'])
|
setup_requires=['pbr'],
|
||||||
)
|
pbr=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user