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
|
cp -a * .git /tmp/pyghmi
|
||||||
cd /tmp/pyghmi
|
cd /tmp/pyghmi
|
||||||
export PYEXEC=python3
|
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
|
if grep wheezy /etc/os-release; then
|
||||||
# also it's old, use python2 instead of python3
|
# also it's old, use python2 instead of python3
|
||||||
export PYEXEC=python
|
export PYEXEC=python
|
||||||
|
@ -3,7 +3,7 @@ cd `dirname $0`
|
|||||||
VERSION=`git describe|cut -d- -f 1`
|
VERSION=`git describe|cut -d- -f 1`
|
||||||
NUMCOMMITS=`git describe|cut -d- -f 2`
|
NUMCOMMITS=`git describe|cut -d- -f 2`
|
||||||
if [ "$NUMCOMMITS" != "$VERSION" ]; then
|
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
|
fi
|
||||||
echo $VERSION > VERSION
|
echo $VERSION > VERSION
|
||||||
sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py
|
sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = pyghmi
|
name = pyghmi
|
||||||
summary = Python General Hardware Management Initiative (IPMI and others)
|
summary = Python General Hardware Management Initiative (IPMI and others)
|
||||||
description-file =
|
description_file =
|
||||||
README
|
README
|
||||||
author = Jarrod Johnson
|
author = Jarrod Johnson
|
||||||
author-email = jjohnson2@lenovo.com
|
author_email = jjohnson2@lenovo.com
|
||||||
home-page = http://github.com/openstack/pyghmi/
|
home_page = http://github.com/openstack/pyghmi/
|
||||||
classifier =
|
classifier =
|
||||||
Intended Audience :: Information Technology
|
Intended Audience :: Information Technology
|
||||||
Intended Audience :: System Administrators
|
Intended Audience :: System Administrators
|
||||||
|
@ -21,6 +21,7 @@ setuptools.setup(
|
|||||||
name='pyghmi',
|
name='pyghmi',
|
||||||
version='#VERSION#',
|
version='#VERSION#',
|
||||||
description='Python General Hardware Management Initiative (IPMI, redfish, etc)',
|
description='Python General Hardware Management Initiative (IPMI, redfish, etc)',
|
||||||
|
long_description='Python General Hardware Management Initiative (IPMI, redfish, etc)',
|
||||||
author='Jarrod Johnson',
|
author='Jarrod Johnson',
|
||||||
author_email='jjohnson2@lenovo.com',
|
author_email='jjohnson2@lenovo.com',
|
||||||
packages=['pyghmi', 'pyghmi.util', 'pyghmi.ipmi', 'pyghmi.cmd',
|
packages=['pyghmi', 'pyghmi.util', 'pyghmi.ipmi', 'pyghmi.cmd',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user