summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Stahlberg2020-07-08 10:41:47 +0200
committerMaximilian Stahlberg2020-07-08 10:41:47 +0200
commit0502d6862f188c7a866c6ca4b002ee0a6bcfd9c7 (patch)
tree9fd70819c784dc10191848606e21e998ca429142
parent92d456a4855ceb60042bd872b8f3c303d96d109b (diff)
downloadaur-0502d6862f188c7a866c6ca4b002ee0a6bcfd9c7.tar.gz
Remove Python 2 support.
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD24
2 files changed, 10 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 15e48ff10d3..ce45f20b0b2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,16 @@
pkgbase = python-picos
pkgdesc = A Python interface to conic optimization solvers.
pkgver = 2.0
- pkgrel = 1
+ pkgrel = 2
url = https://gitlab.com/picos-api/picos
arch = any
license = GPL3
makedepends = python-setuptools
- makedepends = python2-setuptools
- source = https://gitlab.com/picos-api/picos/-/archive/v2.0/picos-v2.0.tar.gz
- md5sums = 3317dc2fd98202a413acae19efdc844e
-
-pkgname = python-picos
depends = python-numpy
depends = python-cvxopt
conflicts = python-picos-git
+ source = https://gitlab.com/picos-api/picos/-/archive/v2.0/picos-v2.0.tar.gz
+ md5sums = 3317dc2fd98202a413acae19efdc844e
-pkgname = python2-picos
- depends = python2-numpy
- depends = python2-cvxopt
- conflicts = python2-picos-git
+pkgname = python-picos
diff --git a/PKGBUILD b/PKGBUILD
index 1a1bf5b040b..9eab64c3e5f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,20 @@
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>
-pkgbase=python-picos
-pkgname=('python-picos' 'python2-picos')
+pkgname=python-picos
pkgver=2.0
-pkgrel=1
+pkgrel=2
pkgdesc='A Python interface to conic optimization solvers.'
arch=('any')
url='https://gitlab.com/picos-api/picos'
license=('GPL3')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python-numpy' 'python-cvxopt')
+makedepends=('python-setuptools')
+conflicts=('python-picos-git')
source=("https://gitlab.com/picos-api/picos/-/archive/v${pkgver}/picos-v${pkgver}.tar.gz")
-package_python-picos() {
- depends=('python-numpy' 'python-cvxopt')
- conflicts=('python-picos-git')
-
+package() {
cd "${srcdir}/picos-v${pkgver}"
-
python setup.py install --root=${pkgdir}
}
-package_python2-picos() {
- depends=('python2-numpy' 'python2-cvxopt')
- conflicts=('python2-picos-git')
-
- cd "${srcdir}/picos-v${pkgver}"
-
- python2 setup.py install --root=${pkgdir}
-}
-
md5sums=('3317dc2fd98202a413acae19efdc844e')