Use pbr to manage setup.py and setup.cfg

This commit is contained in:
Łukasz Oleś 2015-12-02 10:16:27 +01:00
parent 25f7f2049d
commit 6253d5af85
3 changed files with 24 additions and 33 deletions

View File

@ -17,6 +17,7 @@ ansible
celery celery
mock mock
multipledispatch==0.4.8 multipledispatch==0.4.8
pbr
pydot pydot
bunch bunch
# if you want to use riak backend then # if you want to use riak backend then

20
setup.cfg Normal file
View File

@ -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

View File

@ -11,40 +11,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import os
from setuptools import find_packages
from setuptools import setup 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( setup(
name='solar', setup_requires=['pbr'],
version='0.0.1', pbr=True,
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']})