martin f. krafft | 0eda02e | 2013-07-03 19:05:34 +0200 | [diff] [blame] | 1 | # |
| 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 Michalec | 2e01223 | 2018-06-18 09:42:40 +0200 | [diff] [blame] | 9 | from __future__ import absolute_import |
| 10 | from __future__ import division |
| 11 | from __future__ import print_function |
| 12 | from __future__ import unicode_literals |
martin f. krafft | 51406fb | 2013-07-04 07:48:44 +0200 | [diff] [blame] | 13 | |
| 14 | from reclass.version import * |
Ollie Walsh | b029e75 | 2013-06-29 14:14:23 +0100 | [diff] [blame] | 15 | from setuptools import setup, find_packages |
martin f. krafft | 51406fb | 2013-07-04 07:48:44 +0200 | [diff] [blame] | 16 | |
Jason R | 3525f15 | 2016-12-31 17:32:50 -0800 | [diff] [blame] | 17 | # use consistent encoding of readme for pypi |
| 18 | from codecs import open |
| 19 | from os import path |
| 20 | |
| 21 | here = path.abspath(path.dirname(__file__)) |
| 22 | |
| 23 | # Get the long description from the README file |
| 24 | with open(path.join(here, 'README.rst'), encoding='utf-8') as f: |
| 25 | long_description = f.read() |
| 26 | |
martin f. krafft | 66b509f | 2013-08-27 17:41:05 +0200 | [diff] [blame] | 27 | ADAPTERS = ['salt', 'ansible'] |
| 28 | console_scripts = ['reclass = reclass.cli:main'] |
| 29 | console_scripts.extend('reclass-{0} = reclass.adapters.{0}:cli'.format(i) |
| 30 | for i in ADAPTERS) |
| 31 | |
Ollie Walsh | b029e75 | 2013-06-29 14:14:23 +0100 | [diff] [blame] | 32 | setup( |
martin f. krafft | 51406fb | 2013-07-04 07:48:44 +0200 | [diff] [blame] | 33 | name = RECLASS_NAME, |
| 34 | description = DESCRIPTION, |
Jason R | 3525f15 | 2016-12-31 17:32:50 -0800 | [diff] [blame] | 35 | long_description=long_description, |
martin f. krafft | 51406fb | 2013-07-04 07:48:44 +0200 | [diff] [blame] | 36 | version = VERSION, |
| 37 | author = AUTHOR, |
| 38 | author_email = AUTHOR_EMAIL, |
Jason R | 3525f15 | 2016-12-31 17:32:50 -0800 | [diff] [blame] | 39 | maintainer = MAINTAINER, |
| 40 | maintainer_email = MAINTAINER_EMAIL, |
martin f. krafft | 51406fb | 2013-07-04 07:48:44 +0200 | [diff] [blame] | 41 | license = LICENCE, |
| 42 | url = URL, |
Petr Michalec | 411a551 | 2017-11-15 17:57:16 +0100 | [diff] [blame] | 43 | packages = find_packages(exclude=['*tests']), #FIXME validate this |
Andrew Pickford | 2eff4c4 | 2018-04-23 10:32:25 +0200 | [diff] [blame] | 44 | entry_points = { 'console_scripts': console_scripts }, |
Alexey Ovchinnikov | 8cdce39 | 2018-11-06 00:46:23 +0400 | [diff] [blame] | 45 | install_requires = ['pyparsing', 'pyyaml', 'six', 'enum34', 'ddt'], #FIXME pygit2 (require libffi-dev, libgit2-dev 0.26.x ) |
Jason R | 3525f15 | 2016-12-31 17:32:50 -0800 | [diff] [blame] | 46 | |
| 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 Walsh | b029e75 | 2013-06-29 14:14:23 +0100 | [diff] [blame] | 56 | ) |