Filip Pytloun | fff50fc | 2015-06-24 14:57:21 +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 | # |
| 9 | |
| 10 | from reclass.version import * |
| 11 | from setuptools import setup, find_packages |
| 12 | |
Jiri Broulik | 30e05a6 | 2018-06-14 13:31:24 +0200 | [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 | |
Filip Pytloun | fff50fc | 2015-06-24 14:57:21 +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 | |
| 28 | setup( |
| 29 | name = RECLASS_NAME, |
| 30 | description = DESCRIPTION, |
Jiri Broulik | 30e05a6 | 2018-06-14 13:31:24 +0200 | [diff] [blame^] | 31 | long_description=long_description, |
Filip Pytloun | fff50fc | 2015-06-24 14:57:21 +0200 | [diff] [blame] | 32 | version = VERSION, |
| 33 | author = AUTHOR, |
| 34 | author_email = AUTHOR_EMAIL, |
Jiri Broulik | 30e05a6 | 2018-06-14 13:31:24 +0200 | [diff] [blame^] | 35 | maintainer = MAINTAINER, |
| 36 | maintainer_email = MAINTAINER_EMAIL, |
Filip Pytloun | fff50fc | 2015-06-24 14:57:21 +0200 | [diff] [blame] | 37 | license = LICENCE, |
| 38 | url = URL, |
Jiri Broulik | 30e05a6 | 2018-06-14 13:31:24 +0200 | [diff] [blame^] | 39 | 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 Pytloun | fff50fc | 2015-06-24 14:57:21 +0200 | [diff] [blame] | 52 | ) |