From 8a668566959c420647f08cb1277c2c220f96031f Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Thu, 27 Nov 2008 23:12:51 -0500 Subject: Create a distutils-based installer --- .gitignore | 2 ++ MANIFEST | 6 ++++++ setup.py | 30 ++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 MANIFEST create mode 100755 setup.py diff --git a/.gitignore b/.gitignore index 1110214..3677418 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ *~ /TODO +/build +/dist diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..14bbcfd --- /dev/null +++ b/MANIFEST @@ -0,0 +1,6 @@ +COPYING +README +puppet-host-package +puppethost.py +setup.py +template.spec diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..f5893e7 --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +#!/usr/bin/python + +import glob +from distutils.core import setup +from puppethost import version, __name__ + +setup(name='puppet-host-package', + version=version, + description='Tool to create host specific package(s) for puppet hosts', + author='Todd Zullinger', + author_email='tmz+puppet@pobox.com', + url='http://pobox.com/~tmz/puppethost/', + license='GPLv2+', + py_modules=['puppethost'], + scripts=['puppet-host-package'], + data_files=[('share/%s' % __name__, ['template.spec'])], + long_description="""\ +This tool generates a package containing the SSL certificate and other needed +files for a given host or hosts.""", + classifiers=[ + 'Development Status :: 4 - Beta', + 'Environment :: Console', + 'Intended Audience :: System Administrators', + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Natural Language :: English', + 'Operating System :: POSIX', + 'Programming Language :: Python', + 'Topic :: System :: Systems Administration', + ], + ) -- cgit