-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (64 loc) · 2.19 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
68
69
70
71
72
73
import os
from setuptools import find_packages
from setuptools import setup
from groot_ansible import __version__
# Dependencies, versioned against what would be found on the ubuntu distro
#install_requires = [
# 'setuptools>=45.2,<45.3',
# 'PyYAML>=5.3,<5.4',
# 'ansible>=2.9,<2.10',
# 'distro>=1.4,<1.5',
#]
#extras_require = {
# 'packaging': ['twine']
#}
def roles():
"""
Relative pathnames of all files in the groot_ansible/playbooks/roles folder
"""
return [os.path.relpath(os.path.join(root, filename), 'groot_ansible')
for root, _, filenames in os.walk('groot_ansible/playbooks/roles') for filename in filenames if '.git' not in root.split(os.sep)
]
def modules():
"""
Relative pathnames of all modules in the groot_ansible/playbooks/library folder
"""
return [os.path.relpath(os.path.join(root, filename), 'groot_ansible')
for root, _, filenames in os.walk('groot_ansible/playbooks/library') for filename in filenames if '.git' not in root.split(os.sep)
]
setup(
name='groot_ansible',
version=__version__,
packages=find_packages(exclude=['tests*', 'docs*']),
package_data={
'groot_ansible': [
'playbooks/*.yaml',
] + roles() + modules(),
},
data_files=[], # system files?
# install_requires=install_requires,
# extras_require=extras_require,
author='Daniel Stonier',
author_email='[email protected]',
maintainer='Daniel Stonier',
maintainer_email='[email protected]',
url='http://github.com/stonier/groot_ansible',
keywords=['catkin'],
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Topic :: System :: Systems Administration',
'Topic :: Utilities'
],
description="system installation and update scripts",
long_description="Python wrapped ansible for setting up and updating systems for various use cases.",
license='BSD',
# test_suite='tests',
entry_points={
'console_scripts': [
'groot-ansible = groot_ansible:main',
],
},
)