blob: 2fb77ae9d8c983c148be6e26abc44e7570949c5c [file] [log] [blame]
Filip Pytlounfff50fc2015-06-24 14:57:21 +02001#
2# -*- coding: utf-8 -*-
3#
4# This file is part of reclass (http://github.com/madduck/reclass)
5#
6# Copyright © 2007–13 martin f. krafft <madduck@madduck.net>
7# Released under the terms of the Artistic Licence 2.0
8#
9
10from reclass.version import *
11from setuptools import setup, find_packages
12
Jiri Broulik30e05a62018-06-14 13:31:24 +020013# use consistent encoding of readme for pypi
14from codecs import open
15from os import path
16
17here = path.abspath(path.dirname(__file__))
18
19# Get the long description from the README file
20with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
21 long_description = f.read()
22
Filip Pytlounfff50fc2015-06-24 14:57:21 +020023ADAPTERS = ['salt', 'ansible']
24console_scripts = ['reclass = reclass.cli:main']
25console_scripts.extend('reclass-{0} = reclass.adapters.{0}:cli'.format(i)
26 for i in ADAPTERS)
27
28setup(
29 name = RECLASS_NAME,
30 description = DESCRIPTION,
Jiri Broulik30e05a62018-06-14 13:31:24 +020031 long_description=long_description,
Filip Pytlounfff50fc2015-06-24 14:57:21 +020032 version = VERSION,
33 author = AUTHOR,
34 author_email = AUTHOR_EMAIL,
Jiri Broulik30e05a62018-06-14 13:31:24 +020035 maintainer = MAINTAINER,
36 maintainer_email = MAINTAINER_EMAIL,
Filip Pytlounfff50fc2015-06-24 14:57:21 +020037 license = LICENCE,
38 url = URL,
Jiri Broulik30e05a62018-06-14 13:31:24 +020039 packages = find_packages(exclude=['*tests']), #FIXME validate this
40 entry_point = { 'console_scripts': console_scripts },
41 install_requires = ['pyparsing', 'pyyaml'], #FIXME pygit2 (require libffi-dev, libgit2-dev 0.26.x )
42
43 classifiers=[
44 'Development Status :: 4 - Beta',
45 'Intended Audience :: System Administrators',
46 'Topic :: System :: Systems Administration',
47 'License :: OSI Approved :: Artistic License',
48 'Programming Language :: Python :: 2.7',
49 ],
50
51 keywords='enc ansible salt'
Filip Pytlounfff50fc2015-06-24 14:57:21 +020052)