[arch-commits] Commit in python-pyroute2/trunk (PKGBUILD fix_sphinx_css.patch)
Thore Bödecker
foxxx0 at gemini.archlinux.org
Wed Sep 1 09:37:14 UTC 2021
Date: Wednesday, September 1, 2021 @ 09:37:06
Author: foxxx0
Revision: 1010264
upgpkg: python-pyroute2 0.5.19-2
strip tests from $pkgdir
fixes FS#71954
Added:
python-pyroute2/trunk/fix_sphinx_css.patch
Modified:
python-pyroute2/trunk/PKGBUILD
----------------------+
PKGBUILD | 26 +++++++++++++++++++-------
fix_sphinx_css.patch | 9 +++++++++
2 files changed, 28 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-09-01 09:21:15 UTC (rev 1010263)
+++ PKGBUILD 2021-09-01 09:37:06 UTC (rev 1010264)
@@ -7,28 +7,40 @@
pkgname=("python-${_pkgbase}")
pkgdesc="A pure Python netlink and Linux network configuration library"
pkgver=0.5.19
-pkgrel=1
+pkgrel=2
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')
+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}"
- python setup.py build
+ make dist
+ make docs
}
check() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
- python setup.py check
+ make test
}
package() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
- python setup.py install --root="$pkgdir/" --optimize=1
+ 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:
Added: fix_sphinx_css.patch
===================================================================
--- fix_sphinx_css.patch (rev 0)
+++ fix_sphinx_css.patch 2021-09-01 09:37:06 UTC (rev 1010264)
@@ -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