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