Initial structure

This commit is contained in:
Dmitry Tantsur 2015-08-27 11:40:18 +02:00
parent fcc57ed69b
commit 4ea236c786
11 changed files with 157 additions and 0 deletions

38
.gitignore vendored Normal file
View File

@ -0,0 +1,38 @@
# Compiled files
*.py[co]
*.a
*.o
*.so
# Sphinx
_build
doc/source/api/
# Packages/installer info
*.egg
*.egg-info
dist
build
eggs
parts
var
sdist
develop-eggs
.installed.cfg
# Other
*.DS_Store
.idea
.testrepository
.tox
.venv
.*.swp
.coverage
cover
AUTHORS
ChangeLog
*.sqlite
*~
# Vagrant
.vagrant

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: python
python: 2.7
env:
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=pep8
install:
- pip install tox
script:
- tox -e $TOX_ENV

2
README.rst Normal file
View File

@ -0,0 +1,2 @@
Deployment and Scheduling tool for Bare Metal
=============================================

0
metalsmith/__init__.py Normal file
View File

18
metalsmith/main.py Normal file
View File

@ -0,0 +1,18 @@
# Copyright 2015 Red Hat, 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.
def main():
pass

View File

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
pbr>=1.6,<2.0
python-glanceclient>=0.18.0
python-ironicclient>=0.6.0
python-neutronclient>=2.6.0,<3

22
setup.cfg Normal file
View File

@ -0,0 +1,22 @@
[metadata]
name = metalsmith
summary = Deployment and Scheduling tool for Bare Metal
description-file = README.rst
license = Apache-2
classifier =
Environment :: Console
Environment :: OpenStack
Intended Audience :: System Administrators
Intended Audience :: Information Technology
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
[files]
packages =
metalsmith
[entry_points]
console_scripts =
metalsmith = metalsmith.main:main

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>=1.3'],
pbr=True)

7
test-requirements.txt Normal file
View File

@ -0,0 +1,7 @@
# 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.
coverage>=3.6
doc8 # Apache-2.0
hacking<0.11,>=0.10.0
mock>=1.2

27
tox.ini Normal file
View File

@ -0,0 +1,27 @@
[tox]
envlist = py27,py34,pep8
[testenv]
usedevelop = True
deps =
-r{toxinidir}/test-requirements.txt
commands =
coverage run --branch --include "metalsmith*" -m unittest discover metalsmith.test
coverage report -m
setenv = PYTHONDONTWRITEBYTECODE=1
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:venv]
commands = {posargs}
[testenv:pep8]
basepython = python2.7
commands =
flake8 metalsmith
doc8 README.rst
[flake8]
max-complexity=15
[hacking]
import_exceptions = ironicclient.exceptions,ironic_inspector.common.i18n