Use pbr to manage setup.py and setup.cfg
This commit is contained in:
parent
25f7f2049d
commit
6253d5af85
@ -17,6 +17,7 @@ ansible
|
||||
celery
|
||||
mock
|
||||
multipledispatch==0.4.8
|
||||
pbr
|
||||
pydot
|
||||
bunch
|
||||
# if you want to use riak backend then
|
||||
|
20
setup.cfg
Normal file
20
setup.cfg
Normal 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
|
36
setup.py
36
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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user