summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarrat2020-01-15 22:09:17 +0100
committerNarrat2020-01-15 22:09:17 +0100
commit7622477b2c39ef3f59d0c00439cb96ea4b73e5f6 (patch)
tree16713bc8a2c4335958cd091db7a75e9f9a953016
parent6dd6ab9fc584315a620d444fd0bea7beec466e08 (diff)
downloadaur-python-textblob-git.tar.gz
Drop check function
Upstream removed "setup.py test" https://github.com/sloria/TextBlob/commit/64fdd18eaef9931564ad5effedceecd6732a54b5 Dropped check deps, which should have been in checkdepends anyway.
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD40
2 files changed, 19 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 32f235d2d3f..0a83ec211af 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-textblob-git
- pkgdesc = A Python 3 library for processing textual data. Provides an API for diving into commmon natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more.
- pkgver = 0.9.1.r355.238aa50
- pkgrel = 2
+ pkgdesc = library for processing textual data and provides an API for diving into commmon natural language processing (NLP)
+ pkgver = 0.15.3.r8.ge6cd979
+ pkgrel = 1
url = https://github.com/sloria/textblob
arch = any
license = MIT
@@ -9,8 +9,6 @@ pkgbase = python-textblob-git
makedepends = python-setuptools
depends = python
depends = python-nltk
- depends = python-nose
- depends = python-mock
depends = nltk-data
optdepends = python-textblob-aptagger-git: A fast and accurte part-of-speech tagger for TextBlob
provides = python-textblob
diff --git a/PKGBUILD b/PKGBUILD
index 5b2b2f0ecb4..2648ec4dd7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,48 +1,40 @@
-# Maintainer: jyantis <yantis@yantis.net>
+# Contributor: Lex Black <autumn-wind@web.de>
+# Contributor: jyantis <yantis@yantis.net>
+_pkgname=textblob
pkgname=python-textblob-git
-pkgver=0.9.1.r355.238aa50
-pkgrel=2
-pkgdesc='A Python 3 library for processing textual data. Provides an API for diving into commmon natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more.'
+pkgver=0.15.3.r8.ge6cd979
+pkgrel=1
+pkgdesc='library for processing textual data and provides an API for diving into commmon natural language processing (NLP)'
arch=('any')
url='https://github.com/sloria/textblob'
license=('MIT')
-depends=('python' 'python-nltk' 'python-nose' 'python-mock' 'nltk-data')
-source=('git+https://github.com/sloria/textblob.git')
-sha256sums=('SKIP')
+depends=('python' 'python-nltk' 'nltk-data')
makedepends=('git' 'python-setuptools')
+optdepends=('python-textblob-aptagger-git: A fast and accurte part-of-speech tagger for TextBlob')
provides=('python-textblob')
conflicts=('python-textblob')
-optdepends=('python-textblob-aptagger-git: A fast and accurte part-of-speech tagger for TextBlob')
+source=('git+https://github.com/sloria/textblob.git')
+sha256sums=('SKIP')
+
pkgver() {
- cd textblob
- _gitversion=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" )
-
- if [ -f "textblob/__init__.py" ]; then
- printf "%s.%s" "$(grep -R "__version__ =" textblob/__init__.py | awk -F\' '{print $2}')" $_gitversion | sed 's/-/./g'
- else
- printf "%s" $_gitversion
- fi
+ cd "${_pkgname}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd textblob
+ cd "${_pkgname}"
python setup.py build
}
-check() {
- cd textblob
- python setup.py test --verbose
-}
-
package() {
- cd textblob
+ cd "${_pkgname}"
# We don't need anything related to git in the package
rm -rf .git*
- python setup.py install --root="${pkgdir}" --optimize=1
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
# Install License
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"