[arch-commits] Commit in python-rdflib/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Nov 2 00:18:34 UTC 2019
Date: Saturday, November 2, 2019 @ 00:18:33
Author: arojas
Revision: 366430
Drop python2
Modified:
python-rdflib/trunk/PKGBUILD
----------+
PKGBUILD | 39 ++++++---------------------------------
1 file changed, 6 insertions(+), 33 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-02 00:13:45 UTC (rev 366429)
+++ PKGBUILD 2019-11-02 00:18:33 UTC (rev 366430)
@@ -2,8 +2,7 @@
# Contributor: Andrea Scarpino <andrea at archlinux.org>
# Contributor: Leif Warner <abimelech at gmail.com>
-pkgbase=python-rdflib
-pkgname=('python2-rdflib' 'python-rdflib')
+pkgname=python-rdflib
pkgver=4.2.2
pkgrel=2
pkgdesc="A Python library for working with RDF, a simple yet powerful language for representing information"
@@ -10,11 +9,10 @@
arch=('any')
url="http://rdflib.net/"
license=('BSD')
-makedepends=('python2-isodate' 'python-isodate' 'python2-setuptools' 'python-setuptools')
-checkdepends=('python2-nose' 'python-nose' 'python2-pyparsing' 'python-pyparsing' 'python2-six'
- 'python-six' 'python-html5lib' 'python2-html5lib' 'python-sparqlwrapper'
- 'python2-sparqlwrapper' 'python-networkx' 'python2-networkx' 'python-decorator'
- 'python2-decorator')
+depends=('python-isodate')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-pyparsing' 'python-six' 'python-html5lib' 'python-sparqlwrapper'
+ 'python-networkx' 'python-decorator')
source=(rdflib-$pkgver.tar.gz::https://github.com/RDFLib/rdflib/tarball/$pkgver
py3.7.diff)
sha1sums=('08fe9d3480af78ca70380eeae082524ce70bb9d3'
@@ -22,18 +20,11 @@
prepare() {
patch -d RDFLib-rdflib-* -p1 < py3.7.diff
- cp -r RDFLib-rdflib-* python2-rdflib
- cd python2-rdflib
- sed -i 's|/usr/bin/env python|/usr/bin/env python2|' rdflib/extras/{describer.py,infixowl.py} \
- rdflib/plugins/parsers/{ntriples.py,notation3.py,structureddata.py,pyRdfa/extras/httpheader.py} \
- rdflib/tools/rdfpipe.py
}
build() {
cd RDFLib-rdflib-*
python setup.py build
- cd ../python2-rdflib
- python2 setup.py build
}
check() {
@@ -43,27 +34,9 @@
--with-doctest \
--doctest-extension=.doctest \
--doctest-tests
- cd ../python2-rdflib
- #python2 setup.py test # Same
- python2 run_tests.py --with-xunit
}
-package_python2-rdflib() {
- depends=('python2-isodate')
-
- cd python2-rdflib
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
- cd "$pkgdir/usr/bin"
- for i in * ; do
- mv $i $i-py2
- done
-}
-
-package_python-rdflib() {
- depends=('python-isodate')
-
+package() {
cd RDFLib-rdflib-*
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
More information about the arch-commits
mailing list