diff --git a/requirements.txt b/requirements.txt index 2ef88140..e47afe97 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,6 +17,7 @@ ansible celery mock multipledispatch==0.4.8 +pbr pydot bunch # if you want to use riak backend then diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..c04609d3 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,20 @@ +[metadata] +name = solar +author = Mirantis Inc. +author-email = product@mirantis.com +summary = Deployment tool +description-file = README.md +license = Apache-2 +home-page = http://mirantis.com +classifier = + 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 +keywords = + deployment +[entry_points] +console_scripts = + solar = solar.cli.main:run diff --git a/setup.py b/setup.py index b331c80f..71c643cf 100644 --- a/setup.py +++ b/setup.py @@ -11,40 +11,10 @@ # 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:run']}) + setup_requires=['pbr'], + pbr=True, +)