Added setup to module

Change-Id: I38b764d3f9590ab213a0299cdf0fb904eff1a3b2
This commit is contained in:
Kamil Sambor
2015-02-25 09:27:38 +01:00
parent 59e354646b
commit 14ee35048a
4 changed files with 76 additions and 0 deletions

3
requirements.txt Normal file
View File

@@ -0,0 +1,3 @@
networkx>=1.8
jsonschema>=2.3.0
PyYAML>=3.11

28
setup.cfg Normal file
View File

@@ -0,0 +1,28 @@
[metadata]
name = fuel-tasks-validator
version = 6.1.0
summary = Tasks validation for Fuel
author = Mirantis Inc.
author-email = product@mirantis.com
home-page = http://mirantis.com
description-file =
README.rst
classifier =
Intended Audience :: Developers
Intended Audience :: Information Technology
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.6
[files]
packages =
tasks_validator
[global]
setup-hooks =
pbr.hooks.setup_hook
[wheel]
universal = 1

30
setup.py Normal file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env python
# Copyright 2015 Mirantis, Inc.
#
# 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
# 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'],
pbr=True)

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python
# Copyright 2015 Mirantis, Inc.
#
# 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.