forked from theforeman/obal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (63 loc) · 2 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
74
75
76
77
78
79
"""
Setup file for obal
"""
# To use a consistent encoding
import codecs
import os
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
def get_long_description():
"""
Get the long description from the README file
"""
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as readme:
return readme.read()
def find_package_data(package, data_dir):
"""
Find all the package data
"""
package_data = []
oldcwd = os.getcwd()
os.chdir(package)
for dirpath, _, filenames in os.walk(data_dir):
files = [os.path.join(dirpath, filename) for filename in filenames]
package_data.extend(files)
os.chdir(oldcwd)
return package_data
setup(
name='obal',
version='0.6.0',
description='packaging wrapper using ansible',
long_description=get_long_description(),
long_description_content_type='text/markdown',
url='https://github.com/theforeman/obal',
author='The Foreman Project',
author_email='[email protected]',
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords='ansible foreman packaging koji brew mock',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=['ansible >= 2.5', 'obsah'],
extras_require={
'argcomplete': ['argcomplete'],
},
package_data={
'obal': find_package_data('obal', 'data'),
},
entry_points={
'console_scripts': [
'obal=obal:main',
],
},
)