add basic files for setting up a tox environment

Change-Id: I1ab0ad61666bf39e2bf420165d79eef3f653c9c1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-01-24 15:34:17 -05:00
parent df995a0328
commit 07d2ac1788
7 changed files with 110 additions and 1 deletions

22
.gitignore vendored
View File

@ -1 +1,21 @@
config.ini
AUTHORS
ChangeLog
*~
*.egg*
*.swp
*.pyc
*.log
.tox
.coverage*
cover
*.egg-info/
build/
doc/build/
doc/source/api/
dist/
.testrepository/
.project
.pydevproject
# Files created by releasenotes build
releasenotes/build

3
README.rst Normal file
View File

@ -0,0 +1,3 @@
===========================
Community-wide Goal Tools
===========================

0
goal_tools/__init__.py Normal file
View File

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
python-storyboardclient

31
setup.cfg Normal file
View File

@ -0,0 +1,31 @@
[metadata]
name = goal-tools
author = OpenStack
author-email = openstack-dev@lists.openstack.org
summary = OpenStack Community-wide Goal Tools
description-file =
README.rst
home-page = https://governance.openstack.org/tc/goals/index.html
classifier =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
[files]
packages =
goal_tools
[global]
setup-hooks =
pbr.hooks.setup_hook
[entry_points]
# console_scripts =
# oslo-config-generator = oslo_config.generator:main
[wheel]
universal = 1

29
setup.py Normal file
View File

@ -0,0 +1,29 @@
# 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>=2.0.0'],
pbr=True)

25
tox.ini Normal file
View File

@ -0,0 +1,25 @@
[tox]
minversion = 2.0
distribute = False
envlist = py35,pep8
[testenv]
basepython = python3
install_command = pip install {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
# commands =
# python setup.py test --coverage --coverage-package-name=oslo_config --slowest --testr-args='{posargs}'
# coverage report --show-missing
[testenv:pep8]
commands =
flake8
[testenv:venv]
commands = {posargs}
[flake8]
show-source = True
enable-extensions = H203,H106
exclude = .tox,dist,doc,*.egg,build