Create initial structure of the project

This commit is contained in:
Evgeniy L 2015-04-01 16:09:53 -07:00
parent e13b3249f9
commit 6081729d51
10 changed files with 77 additions and 2 deletions

8
.gitignore vendored
View File

@ -1,4 +1,8 @@
.vagrant
# python
*.egg-info
.venv
*.pyc
# vagrant
.vagrant

2
solar/MANIFEST.in Normal file
View File

@ -0,0 +1,2 @@
include *.txt
recursive-include solar/templates *

2
solar/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
six>=1.9.0

50
solar/setup.py Normal file
View File

@ -0,0 +1,50 @@
# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os
from setuptools import find_packages
from setuptools import setup
def find_requires():
prj_root = os.path.dirname(os.path.realpath(__file__))
requirements = []
with open(u'{0}/requirements.txt'.format(prj_root), 'r') as reqs:
requirements = reqs.readlines()
return requirements
setup(
name='solar',
version='0.0.1',
description='Deployment tool',
long_description="""Deployment tool""",
classifiers=[
"Development Status :: 1 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: System :: Software Distribution"],
author='Mirantis Inc.',
author_email='product@mirantis.com',
url='http://mirantis.com',
keywords='deployment',
packages=find_packages(),
zip_safe=False,
install_requires=find_requires(),
include_package_data=True,
entry_points={
'console_scripts': [
'solar = solar.cli:main']})

0
solar/solar/__init__.py Normal file
View File

17
solar/solar/cli.py Normal file
View File

@ -0,0 +1,17 @@
# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
def main():
print 'Solar'

View File

View File

View File

View File