From 6081729d51cdd0579b2e097eb8c97d1cdc07f5e9 Mon Sep 17 00:00:00 2001 From: Evgeniy L Date: Wed, 1 Apr 2015 16:09:53 -0700 Subject: [PATCH 1/2] Create initial structure of the project --- .gitignore | 8 +++-- solar/MANIFEST.in | 2 ++ solar/requirements.txt | 2 ++ solar/setup.py | 50 +++++++++++++++++++++++++++ solar/solar/__init__.py | 0 solar/solar/cli.py | 17 +++++++++ solar/solar/core/__init__.py | 0 solar/solar/extensions/__init__.py | 0 solar/solar/interfaces/__init__.py | 0 solar/solar/interfaces/db/__init__.py | 0 10 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 solar/MANIFEST.in create mode 100644 solar/requirements.txt create mode 100644 solar/setup.py create mode 100644 solar/solar/__init__.py create mode 100644 solar/solar/cli.py create mode 100644 solar/solar/core/__init__.py create mode 100644 solar/solar/extensions/__init__.py create mode 100644 solar/solar/interfaces/__init__.py create mode 100644 solar/solar/interfaces/db/__init__.py diff --git a/.gitignore b/.gitignore index 6fd6ca4b..cb4402c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ - -.vagrant +# python +*.egg-info +.venv *.pyc +# vagrant +.vagrant + diff --git a/solar/MANIFEST.in b/solar/MANIFEST.in new file mode 100644 index 00000000..6b298bcc --- /dev/null +++ b/solar/MANIFEST.in @@ -0,0 +1,2 @@ +include *.txt +recursive-include solar/templates * diff --git a/solar/requirements.txt b/solar/requirements.txt new file mode 100644 index 00000000..d5738ba7 --- /dev/null +++ b/solar/requirements.txt @@ -0,0 +1,2 @@ +six>=1.9.0 + diff --git a/solar/setup.py b/solar/setup.py new file mode 100644 index 00000000..9907857c --- /dev/null +++ b/solar/setup.py @@ -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']}) diff --git a/solar/solar/__init__.py b/solar/solar/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/solar/solar/cli.py b/solar/solar/cli.py new file mode 100644 index 00000000..ac99edf8 --- /dev/null +++ b/solar/solar/cli.py @@ -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' diff --git a/solar/solar/core/__init__.py b/solar/solar/core/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/solar/solar/extensions/__init__.py b/solar/solar/extensions/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/solar/solar/interfaces/__init__.py b/solar/solar/interfaces/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/solar/solar/interfaces/db/__init__.py b/solar/solar/interfaces/db/__init__.py new file mode 100644 index 00000000..e69de29b From 628900b39740617df4d0fc49dfe95b45ecfe7a0b Mon Sep 17 00:00:00 2001 From: Evgeniy L Date: Wed, 1 Apr 2015 16:10:59 -0700 Subject: [PATCH 2/2] Fixed path in template --- solar/MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solar/MANIFEST.in b/solar/MANIFEST.in index 6b298bcc..0a079c06 100644 --- a/solar/MANIFEST.in +++ b/solar/MANIFEST.in @@ -1,2 +1,2 @@ include *.txt -recursive-include solar/templates * +recursive-include solar/ *