From 4b3a02a3cd46f12b7e7134d63976b619c276df6b Mon Sep 17 00:00:00 2001 From: abregman Date: Mon, 13 Aug 2018 11:05:17 +0300 Subject: [PATCH] Add initial structure Including required files for installing and packaging the project. Change-Id: I592784819e78075bfc08b52a17d1b42e511da95c --- requirements.txt | 6 ++++ setup.cfg | 46 +++++++++++++++++++++++++++++++ setup.py | 30 ++++++++++++++++++++ tobiko/__init__.py | 13 +++++++++ tobiko/common/__init__.py | 13 +++++++++ tobiko/tests/__init__.py | 13 +++++++++ tobiko/tests/scenario/__init__.py | 13 +++++++++ 7 files changed, 134 insertions(+) create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 tobiko/__init__.py create mode 100644 tobiko/common/__init__.py create mode 100644 tobiko/tests/__init__.py create mode 100644 tobiko/tests/scenario/__init__.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..1f130b20c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +keystoneauth1 +oslo.config +oslo.log +python-heatclient +testtools +tempest diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..37e9b30eb --- /dev/null +++ b/setup.cfg @@ -0,0 +1,46 @@ +[metadata] +name = tobiko +summary = OpenStack Testing Upgrades Library +description-file = + README.rst +author = OpenStack +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 + +keywords = + setup + distutils + +[files] +packages = + tobiko + +[entry_points] +tempest.test_plugins = + tobiko = tobiko.plugin:TobikoTempestPlugin + +[global] +setup-hooks = + pbr.hooks.setup_hook + +[build_sphinx] +all_files = 1 +build-dir = doc/build +source-dir = doc/source + +[egg_info] +tag_build = +tag_date = 0 +tag_svn_revision = 0 + +[wheel] +universal = 1 diff --git a/setup.py b/setup.py new file mode 100644 index 000000000..97fde2152 --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. +# +# 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. + +# 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'], + include_package_data=True, + pbr=True) diff --git a/tobiko/__init__.py b/tobiko/__init__.py new file mode 100644 index 000000000..953c24a79 --- /dev/null +++ b/tobiko/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018 Red Hat +# +# 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. diff --git a/tobiko/common/__init__.py b/tobiko/common/__init__.py new file mode 100644 index 000000000..953c24a79 --- /dev/null +++ b/tobiko/common/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018 Red Hat +# +# 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. diff --git a/tobiko/tests/__init__.py b/tobiko/tests/__init__.py new file mode 100644 index 000000000..953c24a79 --- /dev/null +++ b/tobiko/tests/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018 Red Hat +# +# 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. diff --git a/tobiko/tests/scenario/__init__.py b/tobiko/tests/scenario/__init__.py new file mode 100644 index 000000000..953c24a79 --- /dev/null +++ b/tobiko/tests/scenario/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2018 Red Hat +# +# 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.