[arch-commits] Commit in python-ethtool/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Sunday, February 17, 2019 @ 17:06:38 Author: dvzrv Revision: 434136 archrelease: copy trunk to community-x86_64 Added: python-ethtool/repos/community-x86_64/PKGBUILD (from rev 434135, python-ethtool/trunk/PKGBUILD) Deleted: python-ethtool/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 114 - 1 file changed, 45 insertions(+), 69 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-02-17 17:06:30 UTC (rev 434135) +++ PKGBUILD2019-02-17 17:06:38 UTC (rev 434136) @@ -1,69 +0,0 @@ -# Maintainer: David Runge -# Contributor: Konstantin Shalygin - -pkgbase=python-ethtool -pkgname=('python-ethtool' 'python2-ethtool') -pkgver=0.14 -pkgrel=1 -pkgdesc='Python bindings for the ethtool kernel interface.' -arch=('x86_64') -url="https://github.com/fedora-python/python-ethtool; -license=('GPL') -makedepends=('asciidoc' 'libnl' 'python-setuptools' 'python2-setuptools') -checkdepends=('net-tools' 'python-pytest' 'python2-pytest') -source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/fedora-python/${pkgbase}/archive/v${pkgver}.tar.gz;) -sha512sums=('57a3f2d60dd8309192fc858614645d4e7533c90c03113ffc1eeeb810b86eb71b0a80b4eb209d3452c7624c5318a853de50d9d716d41334bf079e6e3e2490fd4b') - -build() { - cd "${pkgbase}-${pkgver}" - python setup.py build - a2x -d manpage -f manpage "man/pethtool.8.asciidoc" - a2x -d manpage -f manpage "man/pifconfig.8.asciidoc" - python2 setup.py build - cp -v man/pethtool.8 man/pethtool2.8 - cp -v man/pifconfig.8 man/pifconfig2.8 -} - -# do not run flaky tests: -# https://github.com/fedora-python/python-ethtool/issues/40 -check() { - cd "${pkgbase}-${pkgver}" - local _py3_ver=$(python --version | cut -d " " -f2) - export PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver%"."*}:${PYTHONPATH}" - py.test -k 'not test_etherinfo_objects \ - and not test_get_interface_info_active \ - and not test_get_interface_info_all' - export PYTHONPATH="build/lib.linux-$CARCH-2.7:${PYTHONPATH}" - py.test2 -k 'not test_etherinfo_objects \ - and not test_get_interface_info_active \ - and not test_get_interface_info_all' -# python setup.py test -# python2 setup.py test -} - -package_python-ethtool() { - depends=('python' 'libnl') - cd "${pkgbase}-${pkgver}" - python setup.py install --skip-build \ ---optimize=1 \ ---prefix=/usr \ ---root="${pkgdir}" - - install -t "${pkgdir}/usr/share/man/man8" \ --vDm 644 man/{pethtool,pifconfig}.8 -} - -package_python2-ethtool() { - depends=('python2' 'libnl') - cd "${pkgbase}-${pkgver}" - python2 setup.py install --skip-build \ ---optimize=1 \ ---prefix=/usr \ ---root="${pkgdir}" - - mv -v "${pkgdir}/usr/bin/pethtool" "${pkgdir}/usr/bin/pethtool2" - mv -v "${pkgdir}/usr/bin/pifconfig" "${pkgdir}/usr/bin/pifconfig2" - install -t "${pkgdir}/usr/share/man/man8" \ --vDm 644 man/{pethtool,pifconfig}2.8 -} - Copied: python-ethtool/repos/community-x86_64/PKGBUILD (from rev 434135, python-ethtool/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2019-02-17 17:06:38 UTC (rev 434136) @@ -0,0 +1,45 @@ +# Maintainer: David Runge +# Contributor: Konstantin Shalygin + +_name=ethtool +pkgname=python-ethtool +pkgver=0.14 +pkgrel=2 +pkgdesc='Python bindings for the ethtool kernel interface.' +arch=('x86_64') +url="https://github.com/fedora-python/python-ethtool; +license=('GPL') +depends=('python' 'libnl') +makedepends=('asciidoc' 'libnl' 'python-setuptools') +checkdepends=('net-tools' 'python-pytest') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz;) +sha512sums=('1b211527cab50d012312476171897beed0885d5a37e5713e5ac2e9a57fcbf67b8e0983160d0f13da8804b04738f60095bef21ab127651cb87b4f0629bb89ccf7') + +build() { + cd "${_name}-${pkgver}" + python setup.py build + a2x -d manpage -f manpage "man/pethtool.8.asciidoc" + a2x -d manpage -f manpage "man/pifconfig.8.asciidoc" +} + +# do not run flaky tests: +# https://github.com/fedora-python/python-ethtool/issues/40 +check() { + cd "${_name}-${pkgver}" + local _py3_ver=$(python --version | cut -d " " -f2) + export PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver%"."*}:${PYTHONPATH}" + py.test -k 'not test_etherinfo_objects \ + and not test_get_interface_info_active \ + and not test_get_interface_info_all' +} + +package() { + cd "${_name}-${pkgver}" + python setup.py install --skip-build \ +--optimize=1 \ +--prefix=/usr \ +--root="${pkgdir}" + + install -t "${pkgdir}/usr/share/man/man8" \ +-vDm 644 man/{pethtool,pifconfig}.8 +}
[arch-commits] Commit in python-ethtool/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, September 20, 2018 @ 19:43:47 Author: dvzrv Revision: 383787 archrelease: copy trunk to community-x86_64 Added: python-ethtool/repos/community-x86_64/PKGBUILD (from rev 383786, python-ethtool/trunk/PKGBUILD) Deleted: python-ethtool/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 135 +++-- 1 file changed, 69 insertions(+), 66 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-09-20 19:43:39 UTC (rev 383786) +++ PKGBUILD2018-09-20 19:43:47 UTC (rev 383787) @@ -1,66 +0,0 @@ -# Maintainer: David Runge -# Contributor: Konstantin Shalygin - -pkgbase=python-ethtool -pkgname=('python-ethtool' 'python2-ethtool') -pkgver=0.13 -pkgrel=8 -pkgdesc='Python bindings for the ethtool kernel interface.' -arch=('x86_64') -url="https://github.com/fedora-python/python-ethtool; -license=('GPL') -makedepends=('asciidoc' 'libnl' 'python-setuptools' 'python2-setuptools') -checkdepends=('net-tools') -source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/fedora-python/${pkgbase}/archive/v${pkgver}.tar.gz;) -sha512sums=('f7fe0dadae8b163a0116c64b1b3c6897bc7d302d1b764abf26e853342495ab3fefc0558ab08c6081b1cda535c134c7181c08951c96c1cf389ae069acc4c8efab') - -prepare(){ - cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}" -} - -build() { - cd "${pkgname[0]}-${pkgver}" - python setup.py build - a2x -d manpage -f manpage "man/pethtool.8.asciidoc" - a2x -d manpage -f manpage "man/pifconfig.8.asciidoc" - cd ../"${pkgname[1]}-${pkgver}" - python2 setup.py build - a2x -v -d manpage -f manpage "man/pethtool.8.asciidoc" - a2x -v -d manpage -f manpage "man/pifconfig.8.asciidoc" -} - -# build without tests for now -# https://github.com/fedora-python/python-ethtool/issues/40 -#check() { -# cd "${pkgname[0]}-${pkgver}" -# python setup.py test -# cd ../"${pkgname[1]}-${pkgver}" -# python2 setup.py test -#} - -package_python-ethtool() { - depends=('python' 'libnl') - cd "${pkgname[0]}-${pkgver}" - python setup.py install --skip-build \ ---optimize=1 \ ---prefix=/usr \ ---root="${pkgdir}" - - install -t "${pkgdir}/usr/share/man/man8" \ --vDm644 man/{pethtool,pifconfig}.8 -} - -package_python2-ethtool() { - depends=('python2' 'libnl') - cd "${pkgname[1]}-${pkgver}" - python2 setup.py install --skip-build \ ---optimize=1 \ ---prefix=/usr \ ---root="${pkgdir}" - - mv -v "${pkgdir}/usr/bin/pethtool" "${pkgdir}/usr/bin/pethtool2" - mv -v "${pkgdir}/usr/bin/pifconfig" "${pkgdir}/usr/bin/pifconfig2" - install -vDm644 man/pethtool.8 "${pkgdir}/usr/share/man/man8/pethtool2.8" - install -vDm644 man/pifconfig.8 "${pkgdir}/usr/share/man/man8/pifconfig2.8" -} - Copied: python-ethtool/repos/community-x86_64/PKGBUILD (from rev 383786, python-ethtool/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-09-20 19:43:47 UTC (rev 383787) @@ -0,0 +1,69 @@ +# Maintainer: David Runge +# Contributor: Konstantin Shalygin + +pkgbase=python-ethtool +pkgname=('python-ethtool' 'python2-ethtool') +pkgver=0.14 +pkgrel=1 +pkgdesc='Python bindings for the ethtool kernel interface.' +arch=('x86_64') +url="https://github.com/fedora-python/python-ethtool; +license=('GPL') +makedepends=('asciidoc' 'libnl' 'python-setuptools' 'python2-setuptools') +checkdepends=('net-tools' 'python-pytest' 'python2-pytest') +source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/fedora-python/${pkgbase}/archive/v${pkgver}.tar.gz;) +sha512sums=('57a3f2d60dd8309192fc858614645d4e7533c90c03113ffc1eeeb810b86eb71b0a80b4eb209d3452c7624c5318a853de50d9d716d41334bf079e6e3e2490fd4b') + +build() { + cd "${pkgbase}-${pkgver}" + python setup.py build + a2x -d manpage -f manpage "man/pethtool.8.asciidoc" + a2x -d manpage -f manpage "man/pifconfig.8.asciidoc" + python2 setup.py build + cp -v man/pethtool.8 man/pethtool2.8 + cp -v man/pifconfig.8 man/pifconfig2.8 +} + +# do not run flaky tests: +# https://github.com/fedora-python/python-ethtool/issues/40 +check() { + cd "${pkgbase}-${pkgver}" + local _py3_ver=$(python --version | cut -d " " -f2) + export PYTHONPATH="build/lib.linux-$CARCH-${_py3_ver%"."*}:${PYTHONPATH}" + py.test -k 'not test_etherinfo_objects \ + and not test_get_interface_info_active \ + and not test_get_interface_info_all' + export PYTHONPATH="build/lib.linux-$CARCH-2.7:${PYTHONPATH}" + py.test2 -k 'not test_etherinfo_objects \ + and not test_get_interface_info_active \ + and not test_get_interface_info_all' +# python setup.py test +# python2 setup.py test +} + +package_python-ethtool() { + depends=('python' 'libnl') + cd "${pkgbase}-${pkgver}" + python setup.py install --skip-build \ +--optimize=1 \ +--prefix=/usr \ +--root="${pkgdir}" + + install -t "${pkgdir}/usr/share/man/man8" \