Start using pbr

Use pbr for packaging.
Also swith to py35 in tox.ini to match the configuration of the CI jobs.

Change-Id: Ib5602177d940d07813600ad7c220786f1a656c76
This commit is contained in:
Radoslav Gerganov 2017-02-22 09:51:52 -05:00
parent 4f8818aa6c
commit cd1a8b933d
4 changed files with 55 additions and 23 deletions

View File

@ -1,2 +1,3 @@
pbr>=1.8 # Apache-2.0
oslo.config>=3.7.0 # Apache-2.0
oslo.log>=1.14.0 # Apache-2.0

27
setup.cfg Normal file
View File

@ -0,0 +1,27 @@
[metadata]
name = vmware-vspc
summary = Virtual Serial Port Concentrator for VMware instances.
description-file =
README.rst
author = OpenStack
author-email = openstack-dev@lists.openstack.org
home-page = http://www.openstack.org/
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 :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
[files]
packages =
vspc
[entry_points]
console_scripts =
vmware-vspc = vspc.server:main

View File

@ -1,25 +1,29 @@
from setuptools import setup
# 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
#
# 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.
with open('README.rst') as f:
readme = f.read()
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools
# In python < 2.7.4, a lazy loading of package `pbr` will break
# setuptools if some other modules registered functions in `atexit`.
# solution from: http://bugs.python.org/issue15881#msg170215
try:
import multiprocessing # noqa
except ImportError:
pass
with open('LICENSE') as f:
license = f.read()
setup(
name='vmware-vspc',
version='0.0.1',
description='Virtual Serial Port Concentrator',
long_description=readme,
author='VMware Inc.',
author_email='rgerganov@vmware.com',
url='https://github.com/rgerganov/vmware-vspc',
license=license,
entry_points = {
'console_scripts': ['vmware-vspc=vspc.server:main'],
},
packages=['vspc'],
install_requires=['oslo.config', 'oslo.log']
)
setuptools.setup(
setup_requires=['pbr'],
pbr=True)

View File

@ -1,5 +1,5 @@
[tox]
envlist = py34,pep8
envlist = py35,pep8
skipsdist = True
[testenv]