-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (56 loc) · 1.87 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
def _load_requires_from_file(filepath):
return [pkg_name.rstrip('\r\n') for pkg_name in open(filepath).readlines()]
def _install_requires():
requires = _load_requires_from_file('requirements.txt')
if sys.version_info >= (2, 7, 0):
requires.remove('argparse')
return requires
def _test_requires():
test_requires = _load_requires_from_file('test-requirements.txt')
return test_requires
def _packages():
return find_packages(
exclude=[
'*.tests',
'*.tests.*',
'tests.*',
'tests'
],
)
if __name__ == '__main__':
description = 'Conversion script to Ansible inventory file ' \
'from OpenSSH configuration'
setup(
name='futen',
version='0.0.1',
description=description,
author='momijiame',
author_email='[email protected]',
url='https://github.com/momijiame/futen',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Natural Language :: Japanese',
'Operating System :: POSIX'
],
packages=_packages(),
install_requires=_install_requires(),
tests_require=_test_requires(),
test_suite='nose.collector',
include_package_data=True,
zip_safe=False,
entry_points="""
[console_scripts]
futen = futen.main:main
""",
)