set up reclass for packaging on pypi
diff --git a/setup.py b/setup.py
index c0fd5d8..3830b84 100644
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,16 @@
from reclass.version import *
from setuptools import setup, find_packages
+# use consistent encoding of readme for pypi
+from codecs import open
+from os import path
+
+here = path.abspath(path.dirname(__file__))
+
+# Get the long description from the README file
+with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
+ long_description = f.read()
+
ADAPTERS = ['salt', 'ansible']
console_scripts = ['reclass = reclass.cli:main']
console_scripts.extend('reclass-{0} = reclass.adapters.{0}:cli'.format(i)
@@ -18,12 +28,25 @@
setup(
name = RECLASS_NAME,
description = DESCRIPTION,
+ long_description=long_description,
version = VERSION,
author = AUTHOR,
author_email = AUTHOR_EMAIL,
+ maintainer = MAINTAINER,
+ maintainer_email = MAINTAINER_EMAIL,
license = LICENCE,
url = URL,
- packages = find_packages(),
+ packages = find_packages(exclude=['*tests']), #FIXME validate this
entry_points = { 'console_scripts': console_scripts },
- install_requires = ['pyyaml']
+ install_requires = ['pyyaml'],
+
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Intended Audience :: System Administrators',
+ 'Topic :: System :: Systems Administration',
+ 'License :: OSI Approved :: Artistic License',
+ 'Programming Language :: Python :: 2.7',
+ ],
+
+ keywords='enc ansible salt'
)