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

Thore Bödecker foxxx0 at gemini.archlinux.org
Fri Sep 3 08:38:34 UTC 2021


    Date: Friday, September 3, 2021 @ 08:38:33
  Author: foxxx0
Revision: 1010648

archrelease: copy trunk to community-any

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

----------------------+
 PKGBUILD             |   90 +++++++++++++++++++++++--------------------------
 fix_sphinx_css.patch |   18 ++++-----
 2 files changed, 53 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-03 08:38:30 UTC (rev 1010647)
+++ PKGBUILD	2021-09-03 08:38:33 UTC (rev 1010648)
@@ -1,46 +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=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/PKGBUILD (from rev 1010647, python-pyroute2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-03 08:38:33 UTC (rev 1010648)
@@ -0,0 +1,44 @@
+# 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=3
+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=('bd60e2adf59b8438ff4f6abf2d41cf18eb60dcef3072577648488db45ffe89bd9c7207c4eccc38eb9256533ea2950e7f20b82ae4940b1207ba71d0f261e83f6d')
+
+prepare() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  :
+}
+
+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
+  # Tests get installed into the package for some reason
+  PYTHON_STDLIB="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")"
+  rm -rf "${pkgdir%/}/${PYTHON_STDLIB#/}/site-packages/tests"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: fix_sphinx_css.patch
===================================================================
--- fix_sphinx_css.patch	2021-09-03 08:38:30 UTC (rev 1010647)
+++ fix_sphinx_css.patch	2021-09-03 08:38:33 UTC (rev 1010648)
@@ -1,9 +0,0 @@
-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')

Copied: python-pyroute2/repos/community-any/fix_sphinx_css.patch (from rev 1010647, python-pyroute2/trunk/fix_sphinx_css.patch)
===================================================================
--- fix_sphinx_css.patch	                        (rev 0)
+++ fix_sphinx_css.patch	2021-09-03 08:38:33 UTC (rev 1010648)
@@ -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