Switch to PBR

Change-Id: I7f5388aa306a32cdd954575c9c1942ebb63937b4
This commit is contained in:
Imre Farkas 2015-11-05 17:27:35 +01:00
parent 4a51e75d1c
commit ef3d9a292e
4 changed files with 51 additions and 28 deletions

4
.gitignore vendored
View File

@ -55,3 +55,7 @@ docs/_build/
# PyBuilder # PyBuilder
target/ target/
# PBR
AUTHORS
ChangeLog

View File

@ -3,4 +3,5 @@
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
lxml>=2.3 lxml>=2.3
pbr>=1.6
requests>=2.5.2 requests>=2.5.2

23
setup.cfg Normal file
View File

@ -0,0 +1,23 @@
[metadata]
name = python-dracclient
summary = Library for managing machines with Dell iDRAC cards
description-file = README.rst
maintainer = Imre Farkas
maintainer_email = ifarkas@redhat.com
home-page = https://launchpad.net/python-dracclient
license = Apache-2
classifier =
Development Status :: 3 - Alpha
Environment :: OpenStack
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
[files]
packages =
dracclient

View File

@ -1,31 +1,26 @@
import re #
# 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.
from setuptools import setup 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('requirements.txt', 'r') as fp: setuptools.setup(
install_requires = [re.split(r'[<>=]', line)[0] setup_requires=['pbr>=1.8'],
for line in fp if line.strip()] pbr=True)
setup(
name = 'python-dracclient',
version = '0.0.3',
description = 'Library for managing machines with Dell iDRAC cards.',
author = 'Imre Farkas',
author_email = 'ifarkas@redhat.com',
url = 'https://github.com/ifarkas/python-dracclient',
packages = ['dracclient'],
install_requires = install_requires,
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: OpenStack',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7'
],
license = 'APL 2.0',
)