blob: 792744937e97b6e163279d93062578294ed2f875 [file] [log] [blame]
martin f. krafft0eda02e2013-07-03 19:05:34 +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#
martin f. krafft51406fb2013-07-04 07:48:44 +02009
10from reclass.version import *
Ollie Walshb029e752013-06-29 14:14:23 +010011from setuptools import setup, find_packages
martin f. krafft51406fb2013-07-04 07:48:44 +020012
Jason R3525f152016-12-31 17:32:50 -080013# 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
martin f. krafft66b509f2013-08-27 17:41:05 +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
Ollie Walshb029e752013-06-29 14:14:23 +010028setup(
martin f. krafft51406fb2013-07-04 07:48:44 +020029 name = RECLASS_NAME,
30 description = DESCRIPTION,
Jason R3525f152016-12-31 17:32:50 -080031 long_description=long_description,
martin f. krafft51406fb2013-07-04 07:48:44 +020032 version = VERSION,
33 author = AUTHOR,
34 author_email = AUTHOR_EMAIL,
Jason R3525f152016-12-31 17:32:50 -080035 maintainer = MAINTAINER,
36 maintainer_email = MAINTAINER_EMAIL,
martin f. krafft51406fb2013-07-04 07:48:44 +020037 license = LICENCE,
38 url = URL,
Petr Michalec411a5512017-11-15 17:57:16 +010039 packages = find_packages(exclude=['*tests']), #FIXME validate this
40 entry_point = { 'console_scripts': console_scripts },
Petr Michalecbd088752018-03-28 12:54:57 +020041 install_requires = ['pyparsing', 'pyyaml', 'output', 'storage'], #FIXME pygit2 (require libffi-dev, libgit2-dev 0.26.x )
Jason R3525f152016-12-31 17:32:50 -080042
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'
Ollie Walshb029e752013-06-29 14:14:23 +010052)