From 4dfba445179d14755e5c5c5c75cccc2cc78265b9 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Mon, 7 Mar 2022 18:55:22 +0100 Subject: [PATCH] initial setup --- .gitignore | 30 +++++++++++++++++++++++++++++ .zuul.yaml | 9 +++++++++ README.rst | 0 requirements.txt | 8 ++++++++ setup.cfg | 19 +++++++++++++++++++ setup.py | 18 ++++++++++++++++++ tox.ini | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 133 insertions(+) create mode 100644 .gitignore create mode 100644 .zuul.yaml create mode 100644 README.rst create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad375bb --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +*.DS_Store +*.egg* +*.log +*.mo +*.pyc +*.swo +*.swp +*~ +AUTHORS +octavia_proxy-*/ +.coverage +.idea +.stestr/ +.testrepository +.tox +build +ChangeLog +dist +# Doc related +doc/build +api-ref/build +# Development environment files +.project +.pydevproject +cover +# Files created by releasenotes build +releasenotes/build +.ropeproject +test.py +.vscode diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..d710d64 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,9 @@ +--- +- project: + merge-mode: squash-merge + default-branch: main + templates: + - umn-hc-jobs + check: + jobs: + - noop diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..48d26e8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. +os-api-ref>=1.4.0 # Apache-2.0 +reno>=3.1.0 # Apache-2.0 +otcdocstheme # Apache-2.0 +sphinx>=2.0.0,!=2.1.0 # BSD +oslo.i18n>=3.15.3 # Apache-2.0 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..152604d --- /dev/null +++ b/setup.cfg @@ -0,0 +1,19 @@ +[metadata] +name = ma_docs +summary = Open Telekom Cloud Model Arts Service +description_file = + README.rst +author = Open Telekom Cloud +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 :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 +keywords = + OpenStack, openstackclient, openstacksdk, Open Telekom Cloud, otc, T-Systems, Telekom diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6345380 --- /dev/null +++ b/setup.py @@ -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 setuptools + +setuptools.setup( + setup_requires=['pbr>=2.0.0'], + pbr=True) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..46c2a10 --- /dev/null +++ b/tox.ini @@ -0,0 +1,49 @@ +[tox] +minversion = 3.1 +envlist = py36,py37,pep8 +skipsdist = True +ignore_basepython_conflict = True + +[testenv] +usedevelop = True +install_command = pip install {opts} {packages} +deps = + -r{toxinidir}/requirements.txt +commands = stestr run {posargs} + stestr slowest + +[testenv:pep8] +commands = + doc8 doc/source README.rst + +[testenv:venv] +deps = + -r{toxinidir}/requirements.txt +commands = {posargs} + +[testenv:docs] +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/doc/requirements.txt +commands = + sphinx-build -W --keep-going -b html doc/source/ doc/build/html + +[testenv:api-ref] +# This environment is called from CI scripts to test and publish +# the API Ref to docs.otc-service.com +deps = + -r{toxinidir}/requirements.txt +whitelist_externals = rm +commands = + rm -rf api-ref/build + sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html + +[testenv:umn] +# This environment is called from CI scripts to test and publish +# the UMN to docs.otc-seervice.com +deps = + -r{toxinidir}/requirements.txt +whitelist_externals = rm +commands = + rm -rf umn/build + sphinx-build -W -b html -d umn/build/doctrees umn/source umn/build/html