[arch-commits] Commit in python-ethtool/repos/community-staging-x86_64 (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 13:39:10 UTC 2020
Date: Thursday, November 12, 2020 @ 13:39:09
Author: felixonmars
Revision: 751815
archrelease: copy trunk to community-staging-x86_64
Added:
python-ethtool/repos/community-staging-x86_64/PKGBUILD
(from rev 751814, python-ethtool/trunk/PKGBUILD)
Deleted:
python-ethtool/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 88 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 43 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 13:38:58 UTC (rev 751814)
+++ PKGBUILD 2020-11-12 13:39:09 UTC (rev 751815)
@@ -1,45 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: Konstantin Shalygin <k0ste at k0ste.ru>
-
-_name=ethtool
-pkgname=python-ethtool
-pkgver=0.14
-pkgrel=5
-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
-}
Copied: python-ethtool/repos/community-staging-x86_64/PKGBUILD (from rev 751814, python-ethtool/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 13:39:09 UTC (rev 751815)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Konstantin Shalygin <k0ste at k0ste.ru>
+
+_name=ethtool
+pkgname=python-ethtool
+pkgver=0.14
+pkgrel=6
+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
+}
More information about the arch-commits
mailing list