From c81e3384cefc81ada06f8f803e20b7781039b869 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Fri, 4 Jan 2019 15:00:12 -0500 Subject: [PATCH] Add files for python build --- requirements.txt | 2 ++ setup.cfg | 34 ++++++++++++++++++++++++++++++++++ setup.py | 19 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..885c2cb --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pbr>=1.6 +ansible diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..f9606c8 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,34 @@ +[metadata] +name = ansible-role-thales-hsm +summary = ansible-role-thales-hsm - Ansible role to configure Thales HSM clients. +description-file = + README.md +author = TripleO Team +author-email = alee@redhat.com +home-page = https://github.com/dmend/ansible-role-thales-hsm +classifier = + License :: OSI Approved :: Apache Software License + Development Status :: 4 - Beta + Intended Audience :: Developers + Intended Audience :: System Administrators + Intended Audience :: Information Technology + Topic :: Utilities + +[global] +setup-hooks = + pbr.hooks.setup_hook + +[files] +data_files = + share/ansible/roles/thales-hsm/defaults = defaults/* + share/ansible/roles/thales-hsm/meta = meta/* + share/ansible/roles/thales-hsm/tasks = tasks/* + share/ansible/roles/thales-hsm/templates = templates/* + share/ansible/roles/thales-hsm/files = files/* + +[wheel] +universal = 1 + +[pbr] +skip_authors = True +skip_changelog = True diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6a931a6 --- /dev/null +++ b/setup.py @@ -0,0 +1,19 @@ +# Copyright Red Hat, Inc. All Rights Reserved. +# +# 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'], + pbr=True)