summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdo Roig-Maranges2021-04-25 15:37:26 +0200
committerAbdo Roig-Maranges2021-04-25 15:37:26 +0200
commit4f4e3dde5dcfd452113407c3c6735fb1e257908e (patch)
treefccfbaafed9ad466f5c714704e6f881d45b9f5ca
parent87edd2f7d5b531584b12604020ae579e747c9f29 (diff)
downloadaur-4f4e3dde5dcfd452113407c3c6735fb1e257908e.tar.gz
drop python2 version
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD22
2 files changed, 7 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b4d3a566f87c..dbe99c88487a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,21 +6,13 @@ pkgbase = python-github3.py
arch = any
license = custom:Modified BSD
makedepends = python-setuptools
- makedepends = python2-setuptools
- source = github3::git+https://github.com/sigmavirus24/github3.py.git#commit=e586949a4dbed22f169afaffe25cb07e5a60a606
- sha256sums = SKIP
-
-pkgname = python-github3.py
depends = python
depends = python-requests
depends = python-uritemplate
depends = python-dateutil
depends = python-jwcrypto
+ source = github3::git+https://github.com/sigmavirus24/github3.py.git#commit=e586949a4dbed22f169afaffe25cb07e5a60a606
+ sha256sums = SKIP
-pkgname = python2-github3.py
- depends = python2
- depends = python2-requests
- depends = python2-uritemplate
- depends = python-dateutil
- depends = python-jwcrypto
+pkgname = python-github3.py
diff --git a/PKGBUILD b/PKGBUILD
index 349d55504b8b..41e37486cc35 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,32 @@
# Maintainer: Diego Nieto Cid <dnietoc@gmail.com>
-pkgbase="python-github3.py"
-pkgname=("python-github3.py" "python2-github3.py")
-
+pkgname="python-github3.py"
_commit="e586949a4dbed22f169afaffe25cb07e5a60a606"
pkgver="2.0.0"
pkgrel=1
-
pkgdesc="A comprehensive wrapper around the GitHub API (v3)"
arch=("any")
url="https://github.com/sigmavirus24/github3.py"
license=("custom:Modified BSD")
-makedepends=("python-setuptools" "python2-setuptools")
+makedepends=("python-setuptools")
+depends=("python" "python-requests" "python-uritemplate" "python-dateutil" "python-jwcrypto")
source=(github3::"git+https://github.com/sigmavirus24/github3.py.git#commit=${_commit}")
sha256sums=('SKIP')
build() {
cd "${srcdir}/github3"
python setup.py build
- python2 setup.py build
}
check() {
## TODO This needs betamax, coverage and mock as makedepends
# cd "${srcdir}/${_module}-${pkgver}"
# python setup.py test
-# python2 setup.py test
:
}
-package_python-github3.py() {
- depends=("python" "python-requests" "python-uritemplate" "python-dateutil" "python-jwcrypto")
-
+package() {
cd "${srcdir}/github3"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
-
-package_python2-github3.py() {
- depends=("python2" "python2-requests" "python2-uritemplate" "python-dateutil" "python-jwcrypto")
-
- cd "${srcdir}/github3"
- python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
-}