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