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

Eli Schwartz eschwartz at archlinux.org
Tue Oct 23 21:19:40 UTC 2018


    Date: Tuesday, October 23, 2018 @ 21:19:40
  Author: eschwartz
Revision: 398727

upgpkg: python-pipenv 2018.10.13-2; revert r398107

Revert sweeping changes to the PKGBUILD which removed e.g. the optimize pass
for python2-pipenv and thus preventing optimized bytecode from being shipped.

The only changes between 2018.7.1-3 and 2018.10.13-2 are:
- bump the pkgver
- stop trying to mv pewtwo script which no longer exists
- rebase *.patch on top of upstream

Modified:
  python-pipenv/trunk/PKGBUILD

----------+
 PKGBUILD |   89 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 40 insertions(+), 49 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-23 21:09:27 UTC (rev 398726)
+++ PKGBUILD	2018-10-23 21:19:40 UTC (rev 398727)
@@ -4,39 +4,34 @@
 pkgbase=python-pipenv
 pkgname=(python-pipenv python2-pipenv)
 pkgver=2018.10.13
-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")
-#checkdepends=(
-#	"python-pytest" "python-pytest-runner"
-#	"python-pip" "python-certifi" "python-virtualenv"
-#	"python-virtualenv-clone" "python-strict-rfc3339"
-#	"python-pytz" "python-flaky" "python-mock"
-#	"python2-pytest" "python2-pytest-runner"
-#)
-source=(
-	"${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/pipenv/archive/v${pkgver}.tar.gz"
-	"0001-setup-don-t-setup_requires-on-things-used-to-run-dev.patch"
-)
-sha256sums=(
-	"7d34a075ee0f252b2a26e576c6231b9d44553dc3703a21dcdbd2ede786b6ccd3"
-	"878fd681571afe7e9664fcb06828f41e999d33dc31ae3b11cfbd93475fe8516d"
-)
+arch=('any')
+license=('MIT')
+makedepends=('python-setuptools'
+             'python2-setuptools')
+#checkdepends=('python-pytest' 'python-pytest-runner'
+#	      'python-pip' 'python-certifi' 'python-virtualenv'
+#	      'python-virtualenv-clone' 'python-strict-rfc3339'
+#	      'python-pytz' 'python-flaky' 'python-mock'
+#	      'python2-pytest' 'python2-pytest-runner')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/pipenv/archive/v${pkgver}.tar.gz"
+        "0001-setup-don-t-setup_requires-on-things-used-to-run-dev.patch")
+sha256sums=('7d34a075ee0f252b2a26e576c6231b9d44553dc3703a21dcdbd2ede786b6ccd3'
+            '878fd681571afe7e9664fcb06828f41e999d33dc31ae3b11cfbd93475fe8516d')
 
 prepare() {
-	patch -p1 -d pipenv-$pkgver < 0001-setup-don-t-setup_requires-on-things-used-to-run-dev.patch
-	cp -a pipenv-$pkgver{,-py2}
+  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"
+  python setup.py build
 
-	cd "$srcdir/pipenv-$pkgver-py2"
-	python2 setup.py build
+  cd "$srcdir/pipenv-$pkgver-py2"
+  python2 setup.py build
 }
 
 #check(){
@@ -48,34 +43,30 @@
 #}
 
 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/" --skip-build
-	install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  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"
+  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"
+  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"
+  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"
 
-	PIPENV_SHELL=bash python -m pipenv --completion | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/pipenv"
-	PIPENV_SHELL=zsh  python -m pipenv --completion | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_pipenv"
-	PIPENV_SHELL=fish python -m pipenv --completion | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/pipenv.fish"
+  PIPENV_SHELL=bash python -m pipenv --completion | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/pipenv"
+  PIPENV_SHELL=zsh  python -m pipenv --completion | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_pipenv"
+  PIPENV_SHELL=fish python -m pipenv --completion | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/pipenv.fish"
 }



More information about the arch-commits mailing list