Use PBR for setup.py

This commit is contained in:
Denis Makogon 2016-12-14 12:39:29 +02:00
parent c7f89ebb7e
commit ba13e225b5
3 changed files with 53 additions and 69 deletions

View File

@ -1,6 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=1.8 # Apache-2.0
uvloop==0.6.0 # Apache-2.0
aioservice==0.0.2 # Apache-2.0

View File

@ -1,2 +1,39 @@
[bdist_wheel]
[metadata]
name = picasso
summary = OpenStack Functions-as-a-Service
description-file =
README.md
author = OpenStack
author-email = openstack-dev@lists.openstack.org
home-page = https://github.com/iron-io/picasso
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3.5
[files]
packages =
picasso
[entry_points]
console_scripts =
picasso-api = service.picasso_api:server
[global]
setup-hooks =
pbr.hooks.setup_hook
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1
[upload_sphinx]
upload-dir = doc/build/html
[wheel]
universal = 1

View File

@ -1,75 +1,21 @@
# All Rights Reserved.
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
# 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
# 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.
# 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
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setuptools.setup(
name='picasso',
version='0.0.1',
description=('Picasso provides abstractions for '
'Functions-as-a-Service on OpenStack'),
long_description=read('README.md'),
url='picasso.readthedocs.org',
author='Denis Makogon',
author_email='denis@iron.io',
packages=setuptools.find_packages(),
install_requires=[
"uvloop==0.6.0",
"aioservice==0.0.2",
"aiomysql==0.0.9",
"alembic==0.8.8",
"click==6.6",
"python-functionsclient==0.0.2",
"keystoneauth1==2.15.0",
"python-keystoneclient==3.6.0",
"aiohttp-swagger==1.0.2",
],
license='License :: OSI Approved :: Apache Software License',
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'Environment :: No Input/Output (Daemon)',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: '
'Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
],
keywords=['functions', 'lambdas', 'python API'],
platforms=['Linux', 'Mac OS-X', 'Unix'],
tests_require=[
'flake8==2.5.0',
'hacking<0.11,>=0.10.0',
'sphinx!=1.3b1,<1.4,>=1.2.1',
'testtools>=1.4.0',
"pytest-aiohttp",
"pytest-cov",
],
zip_safe=True,
entry_points={
'console_scripts': [
'picasso-api = service.picasso_api:server',
]
},
)
setup_requires=['pbr>=1.8'],
pbr=True)