blob: ab23207ffe64643105b86d857b5c4c456f495258 [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#
Petr Michalec2e012232018-06-18 09:42:40 +02009from __future__ import absolute_import
10from __future__ import division
11from __future__ import print_function
12from __future__ import unicode_literals
martin f. krafft51406fb2013-07-04 07:48:44 +020013
14from reclass.version import *
Ollie Walshb029e752013-06-29 14:14:23 +010015from setuptools import setup, find_packages
martin f. krafft51406fb2013-07-04 07:48:44 +020016
Jason R3525f152016-12-31 17:32:50 -080017# use consistent encoding of readme for pypi
18from codecs import open
19from os import path
20
21here = path.abspath(path.dirname(__file__))
22
23# Get the long description from the README file
24with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
25 long_description = f.read()
26
martin f. krafft66b509f2013-08-27 17:41:05 +020027ADAPTERS = ['salt', 'ansible']
28console_scripts = ['reclass = reclass.cli:main']
29console_scripts.extend('reclass-{0} = reclass.adapters.{0}:cli'.format(i)
30 for i in ADAPTERS)
31
Ollie Walshb029e752013-06-29 14:14:23 +010032setup(
martin f. krafft51406fb2013-07-04 07:48:44 +020033 name = RECLASS_NAME,
34 description = DESCRIPTION,
Jason R3525f152016-12-31 17:32:50 -080035 long_description=long_description,
martin f. krafft51406fb2013-07-04 07:48:44 +020036 version = VERSION,
37 author = AUTHOR,
38 author_email = AUTHOR_EMAIL,
Jason R3525f152016-12-31 17:32:50 -080039 maintainer = MAINTAINER,
40 maintainer_email = MAINTAINER_EMAIL,
martin f. krafft51406fb2013-07-04 07:48:44 +020041 license = LICENCE,
42 url = URL,
Petr Michalec411a5512017-11-15 17:57:16 +010043 packages = find_packages(exclude=['*tests']), #FIXME validate this
Andrew Pickford2eff4c42018-04-23 10:32:25 +020044 entry_points = { 'console_scripts': console_scripts },
Alexey Ovchinnikov8cdce392018-11-06 00:46:23 +040045 install_requires = ['pyparsing', 'pyyaml', 'six', 'enum34', 'ddt'], #FIXME pygit2 (require libffi-dev, libgit2-dev 0.26.x )
Jason R3525f152016-12-31 17:32:50 -080046
47 classifiers=[
48 'Development Status :: 4 - Beta',
49 'Intended Audience :: System Administrators',
50 'Topic :: System :: Systems Administration',
51 'License :: OSI Approved :: Artistic License',
52 'Programming Language :: Python :: 2.7',
53 ],
54
55 keywords='enc ansible salt'
Ollie Walshb029e752013-06-29 14:14:23 +010056)