[arch-commits] Commit in python-pyroute2/repos/community-any (3 files)

Thore Bödecker foxxx0 at gemini.archlinux.org
Wed Sep 1 09:37:32 UTC 2021


    Date: Wednesday, September 1, 2021 @ 09:37:29
  Author: foxxx0
Revision: 1010265

archrelease: copy trunk to community-any

Added:
  python-pyroute2/repos/community-any/PKGBUILD
    (from rev 1010264, python-pyroute2/trunk/PKGBUILD)
  python-pyroute2/repos/community-any/fix_sphinx_css.patch
    (from rev 1010264, python-pyroute2/trunk/fix_sphinx_css.patch)
Deleted:
  python-pyroute2/repos/community-any/PKGBUILD

----------------------+
 PKGBUILD             |   80 ++++++++++++++++++++++++++++---------------------
 fix_sphinx_css.patch |    9 +++++
 2 files changed, 55 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-01 09:37:06 UTC (rev 1010264)
+++ PKGBUILD	2021-09-01 09:37:29 UTC (rev 1010265)
@@ -1,34 +0,0 @@
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-# Contributor: brent s. <bts[at]square-r00t[dot]net>
-# Contributor: Alexander Phinikarides <alexisph _AT_ gmail _DOT_ com>
-
-pkgbase='python-pyroute2'
-_pkgbase="${pkgbase//python-/}"
-pkgname=("python-${_pkgbase}")
-pkgdesc="A pure Python netlink and Linux network configuration library"
-pkgver=0.5.19
-pkgrel=1
-arch=('any')
-url="https://docs.pyroute2.org/"
-license=('GPL2' 'Apache')
-depends=('python')
-makedepends=('python' 'python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
-sha512sums=('bd60e2adf59b8438ff4f6abf2d41cf18eb60dcef3072577648488db45ffe89bd9c7207c4eccc38eb9256533ea2950e7f20b82ae4940b1207ba71d0f261e83f6d')
-
-build() {
-  cd "${srcdir}/${_pkgbase}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${srcdir}/${_pkgbase}-${pkgver}"
-  python setup.py check
-}
-
-package() {
-  cd "${srcdir}/${_pkgbase}-${pkgver}"
-  python setup.py install --root="$pkgdir/" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pyroute2/repos/community-any/PKGBUILD (from rev 1010264, python-pyroute2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-01 09:37:29 UTC (rev 1010265)
@@ -0,0 +1,46 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: brent s. <bts[at]square-r00t[dot]net>
+# Contributor: Alexander Phinikarides <alexisph _AT_ gmail _DOT_ com>
+
+pkgbase='python-pyroute2'
+_pkgbase="${pkgbase//python-/}"
+pkgname=("python-${_pkgbase}")
+pkgdesc="A pure Python netlink and Linux network configuration library"
+pkgver=0.5.19
+pkgrel=2
+arch=('any')
+url="https://docs.pyroute2.org/"
+license=('GPL2' 'Apache')
+depends=('python')
+makedepends=('python' 'python-setuptools' 'python-setuptools-scm' 'python-sphinx' 'git' 'python-aafigure' 'twine')
+#source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
+source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/svinota/${_pkgbase}/archive/${pkgver}.tar.gz"
+        'fix_sphinx_css.patch')
+sha512sums=('19b0acbff17415acad20a214e0622ca9a3fc51b92e603ab15663ea7e8da290fc0b2033aeca1c20200307e34173802f89998151f77d5bcfc5f87eb8b42ba591ce'
+            '18be191800ccebfb31fc310b1d0185bd221ec6f528569a6418fba61cdf9ed0b7b8f309c92b50cdb15774d45d0d8d4efa7a6d855b185099b2a94c0bbefa063b86')
+
+prepare() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  patch -p1 -N -i "${srcdir}/fix_sphinx_css.patch"
+}
+
+build() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  make dist
+  make docs
+}
+
+check() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  make test
+}
+
+package() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  make install root="${pkgdir}/"
+  # Tests get installed into the package for some reason
+  PY_MAJ_MIN="$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
+  rm -rf "${pkgdir}/usr/lib/python${PY_MAJ_MIN}/site-packages/tests"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-pyroute2/repos/community-any/fix_sphinx_css.patch (from rev 1010264, python-pyroute2/trunk/fix_sphinx_css.patch)
===================================================================
--- fix_sphinx_css.patch	                        (rev 0)
+++ fix_sphinx_css.patch	2021-09-01 09:37:29 UTC (rev 1010265)
@@ -0,0 +1,9 @@
+diff -upr a/docs/conf.py b/docs/conf.py
+--- a/docs/conf.py	2021-05-13 23:09:46.000000000 +0200
++++ b/docs/conf.py	2021-09-01 11:32:22.089740192 +0200
+@@ -46,4 +46,4 @@ texinfo_documents = [('index',
+ 
+ 
+ def setup(app):
+-    app.add_stylesheet('custom.css')
++    app.add_css_file('custom.css')



More information about the arch-commits mailing list