diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3e677ab --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +networkx>=1.8 +jsonschema>=2.3.0 +PyYAML>=3.11 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..46aa408 --- /dev/null +++ b/setup.cfg @@ -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 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..581c4ce --- /dev/null +++ b/setup.py @@ -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) diff --git a/tasks_validator/__init__.py b/tasks_validator/__init__.py new file mode 100644 index 0000000..86beb98 --- /dev/null +++ b/tasks_validator/__init__.py @@ -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.