[arch-commits] Commit in python-pip-api/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Nov 15 00:02:16 UTC 2020
Date: Sunday, November 15, 2020 @ 00:02:16
Author: felixonmars
Revision: 754285
archrelease: copy trunk to community-staging-any
Added:
python-pip-api/repos/community-staging-any/PKGBUILD
(from rev 754284, python-pip-api/trunk/PKGBUILD)
Deleted:
python-pip-api/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 40 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-15 00:02:00 UTC (rev 754284)
+++ PKGBUILD 2020-11-15 00:02:16 UTC (rev 754285)
@@ -1,29 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pip-api
-pkgver=0.0.14
-pkgrel=2
-pkgdesc="An unofficial, importable pip API"
-url="https://github.com/di/pip-api"
-license=('Apache')
-arch=('any')
-depends=('python-packaging' 'python-pip')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pretend' 'python-virtualenv')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/di/pip-api/archive/$pkgver.tar.gz")
-sha512sums=('d3802b8728b814dae9551cc12612eb10a8de061cd64ac40647513d083c45f4bee218b1d2ba772c4c4df05275c4dc8e935e8e69c2e2cf8c6420e6c1158c768c78')
-
-build() {
- cd pip-api-$pkgver
- python setup.py build
-}
-
-check() {
- cd pip-api-$pkgver
- python setup.py pytest
-}
-
-package() {
- cd pip-api-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
Copied: python-pip-api/repos/community-staging-any/PKGBUILD (from rev 754284, python-pip-api/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-15 00:02:16 UTC (rev 754285)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pip-api
+pkgver=0.0.14
+pkgrel=3
+pkgdesc="An unofficial, importable pip API"
+url="https://github.com/di/pip-api"
+license=('Apache')
+arch=('any')
+depends=('python-packaging' 'python-pyparsing' 'python-pip')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pretend') # 'python-virtualenv' needs < 20
+source=("$pkgname-$pkgver.tar.gz::https://github.com/di/pip-api/archive/$pkgver.tar.gz")
+sha512sums=('d3802b8728b814dae9551cc12612eb10a8de061cd64ac40647513d083c45f4bee218b1d2ba772c4c4df05275c4dc8e935e8e69c2e2cf8c6420e6c1158c768c78')
+
+prepare() {
+ cd pip-api-$pkgver
+ # Devendor
+ sed -i 's/pip_api._vendor.//' pip_api/*.py tests/*.py
+
+ # Make it install an old virtualenv for tests
+ sed -i '/install_requires/a \ tests_require=["virtualenv<20"],' setup.py
+
+ rm -r pip_api/_vendor
+}
+
+build() {
+ cd pip-api-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd pip-api-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd pip-api-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list