[arch-commits] Commit in python-pipenv/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat Sep 28 15:08:33 UTC 2019


    Date: Saturday, September 28, 2019 @ 15:08:32
  Author: foxboron
Revision: 512008

upgpkg: python-pipenv 2018.11.26-2

Removed python2

Modified:
  python-pipenv/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++----------------------------
 1 file changed, 5 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 15:05:13 UTC (rev 512007)
+++ PKGBUILD	2019-09-28 15:08:32 UTC (rev 512008)
@@ -1,16 +1,16 @@
 # Maintainer: Morten Linderud <foxboron at archlinux.org>
 # Contributor: Maikel Wever <maikelwever at gmail.com>
 
-pkgbase=python-pipenv
-pkgname=(python-pipenv python2-pipenv)
+pkgname=python-pipenv
 pkgver=2018.11.26
-pkgrel=1
+pkgrel=2
 pkgdesc="Sacred Marriage of Pipfile, Pip, & Virtualenv."
 url="https://docs.pipenv.org"
 arch=('any')
 license=('MIT')
-makedepends=('python-setuptools'
-             'python2-setuptools')
+depends=('python' 'python-pip' 'python-pew' 'python-virtualenv'
+		 'python-virtualenv-clone' 'python-certifi')
+makedepends=('python-setuptools')
 #checkdepends=('python-pytest' 'python-pytest-runner'
 #	      'python-pip' 'python-certifi' 'python-virtualenv'
 #	      'python-virtualenv-clone' 'python-strict-rfc3339'
@@ -23,15 +23,11 @@
 
 prepare() {
   patch -p1 -d pipenv-$pkgver < 0001-setup-don-t-setup_requires-on-things-used-to-run-dev.patch
-  cp -a pipenv-$pkgver{,-py2}
 }
 
 build(){
   cd "$srcdir/pipenv-$pkgver"
   python setup.py build
-
-  cd "$srcdir/pipenv-$pkgver-py2"
-  python2 setup.py build
 }
 
 #check(){
@@ -42,26 +38,7 @@
 #  python2 setup.py pytest
 #}
 
-package_python2-pipenv() {
-  depends=('python2' 'python2-pip' 'python2-pew' 'python2-virtualenv'
-  	   'python2-virtualenv-clone' 'python2-ordereddict'
-	   'python2-setuptools' 'python2-certifi' 'python2-pyopenssl'
-	   'python2-cryptography' 'python2-idna')
-  cd "pipenv-$pkgver-py2"
-  python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
-  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-  mv "${pkgdir}/usr/bin/pipenv" "${pkgdir}/usr/bin/pipenv2"
-  mv "${pkgdir}/usr/bin/pipenv-resolver" "${pkgdir}/usr/bin/pipenv-resolver2"
-
-  PIPENV_SHELL=bash python2 -m pipenv --completion | sed 's/pipenv/pipenv2/g' | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/pipenv2"
-  PIPENV_SHELL=zsh  python2 -m pipenv --completion | sed 's/pipenv/pipenv2/g' | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_pipenv2"
-  PIPENV_SHELL=fish python2 -m pipenv --completion | sed 's/pipenv/pipenv2/g' | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/pipenv2.fish"
-}
-
 package_python-pipenv() {
-  depends=('python' 'python-pip' 'python-pew' 'python-virtualenv'
-  	   'python-setuptools' 'python-virtualenv-clone' 'python-certifi')
   cd "pipenv-$pkgver"
   python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
   install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"



More information about the arch-commits mailing list