diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e01b09 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +.coverage +subunit.log +.venv +*,cover +cover +*.pyc +.idea +*.sw? +*~ +AUTHORS +build +dist +renderspec.egg-info +ChangeLog +run_tests.err.log +.testrepository +.tox +doc/source/api +doc/build +*.egg +.eggs/* +renderspec/versioninfo diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2343caf --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Jinja2>=2.6 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..f8895c6 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,37 @@ +[metadata] +name = renderspec +summary = Jinja2 template renderer for generating .spec files +description-file = + README.rst +author = OpenStack +author-email = openstack-dev@lists.openstack.org +home-page = http://www.openstack.org/ +classifier = + Development Status :: 2 - Pre-Alpha + Environment :: Console + 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.3 + Programming Language :: Python :: 3.4 + +[global] +setup-hooks = + pbr.hooks.setup_hook + +[entry_points] +console_scripts = + renderspec = renderspec:main + +[files] +packages = + renderspec + +[wheel] +universal = 1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..7363757 --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python +# 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'], + pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..770c57d --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +hacking<0.11,>=0.10.0 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..e7a3f15 --- /dev/null +++ b/tox.ini @@ -0,0 +1,22 @@ +[tox] +envlist = py27,py33,py34,pypy,pep8 +minversion = 1.6 +skipsdist = True + +[testenv] +usedevelop = True +install_command = pip install -U {opts} {packages} +setenv = VIRTUAL_ENV={envdir} + OS_STDOUT_NOCAPTURE=False + OS_STDERR_NOCAPTURE=False + PYTHONHASHSEED=0 + +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +[testenv:pep8] +commands = flake8 + +[testenv:venv] +commands = {posargs} +