Update for modern Debian/Ubuntu build
Change-Id: Ia22d711512137fcaf30174b0e899d6ce7d937fec
This commit is contained in:
parent
ea0bfc99c9
commit
3673666035
2
builddeb
2
builddeb
@ -4,7 +4,7 @@ mkdir -p /tmp/pyghmi
|
||||
cp -a * .git /tmp/pyghmi
|
||||
cd /tmp/pyghmi
|
||||
export PYEXEC=python3
|
||||
export DSCARGS="--with-python2=True --with-python3=True"
|
||||
export DSCARGS="--with-python2=False --with-python3=True"
|
||||
if grep wheezy /etc/os-release; then
|
||||
# also it's old, use python2 instead of python3
|
||||
export PYEXEC=python
|
||||
|
@ -3,7 +3,7 @@ cd `dirname $0`
|
||||
VERSION=`git describe|cut -d- -f 1`
|
||||
NUMCOMMITS=`git describe|cut -d- -f 2`
|
||||
if [ "$NUMCOMMITS" != "$VERSION" ]; then
|
||||
VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3`
|
||||
VERSION=$VERSION.dev$NUMCOMMITS+g`git describe|cut -d- -f 3`
|
||||
fi
|
||||
echo $VERSION > VERSION
|
||||
sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py
|
||||
|
@ -1,11 +1,11 @@
|
||||
[metadata]
|
||||
name = pyghmi
|
||||
summary = Python General Hardware Management Initiative (IPMI and others)
|
||||
description-file =
|
||||
description_file =
|
||||
README
|
||||
author = Jarrod Johnson
|
||||
author-email = jjohnson2@lenovo.com
|
||||
home-page = http://github.com/openstack/pyghmi/
|
||||
author_email = jjohnson2@lenovo.com
|
||||
home_page = http://github.com/openstack/pyghmi/
|
||||
classifier =
|
||||
Intended Audience :: Information Technology
|
||||
Intended Audience :: System Administrators
|
||||
|
@ -21,6 +21,7 @@ setuptools.setup(
|
||||
name='pyghmi',
|
||||
version='#VERSION#',
|
||||
description='Python General Hardware Management Initiative (IPMI, redfish, etc)',
|
||||
long_description='Python General Hardware Management Initiative (IPMI, redfish, etc)',
|
||||
author='Jarrod Johnson',
|
||||
author_email='jjohnson2@lenovo.com',
|
||||
packages=['pyghmi', 'pyghmi.util', 'pyghmi.ipmi', 'pyghmi.cmd',
|
||||
|
Loading…
Reference in New Issue
Block a user