diff --git a/.gitignore b/.gitignore index ba74660..11da9f3 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,7 @@ docs/_build/ # PyBuilder target/ + +# PBR +AUTHORS +ChangeLog \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 6b1a294..c7609c6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ # process, which may cause wedges in the gate later. lxml>=2.3 +pbr>=1.6 requests>=2.5.2 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..373618f --- /dev/null +++ b/setup.cfg @@ -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 diff --git a/setup.py b/setup.py index 0534f6f..87c6194 100644 --- a/setup.py +++ b/setup.py @@ -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: - install_requires = [re.split(r'[<>=]', line)[0] - for line in fp if line.strip()] - - -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', -) +setuptools.setup( + setup_requires=['pbr>=1.8'], + pbr=True)