Update for modern Debian/Ubuntu build

Change-Id: Ia22d711512137fcaf30174b0e899d6ce7d937fec
This commit is contained in:
Jarrod Johnson 2024-06-11 13:26:47 -04:00
parent ea0bfc99c9
commit 3673666035
4 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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',