forked from projectatomic/atomicapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (48 loc) · 2.03 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
#!/usr/bin/env python
"""
Copyright 2014-2016 Red Hat, Inc.
This file is part of Atomic App.
Atomic App is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Atomic App is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Atomic App. If not, see <http://www.gnu.org/licenses/>.
"""
import re
from setuptools import setup, find_packages
def _get_requirements(path):
try:
with open(path) as f:
packages = f.read().splitlines()
except (IOError, OSError) as ex:
raise RuntimeError("Can't open file with requirements: %s", repr(ex))
packages = (p.strip() for p in packages if not re.match("^\s*#", p))
packages = list(filter(None, packages))
return packages
def _install_requirements():
requirements = _get_requirements('requirements.txt')
return requirements
setup(
name='atomicapp',
version='0.6.2',
description='A tool to install and run Nulecule apps',
author='Red Hat, Inc.',
author_email='[email protected]',
url='https://github.com/projectatomic/atomicapp',
license="LGPL3",
entry_points={
'console_scripts': ['atomicapp=atomicapp.cli.main:main'],
},
packages=find_packages(),
package_data={'atomicapp': ['providers/external/kubernetes/*.yaml',
'nulecule/external/templates/nulecule/*.tpl',
'nulecule/external/templates/nulecule/artifacts/docker/*.tpl',
'nulecule/external/templates/nulecule/artifacts/kubernetes/*.tpl']},
include_package_data=True,
install_requires=_install_requirements()
)