Date: Monday, November 28, 2022 @ 23:55:22
Author: andrewsc
Revision: 1354961
archrelease: copy trunk to community-any
Added:
python-pipenv/repos/community-any/PKGBUILD
(from rev 1354960, python-pipenv/trunk/PKGBUILD)
Deleted:
python-pipenv/repos/community-any/PKGBUILD
----------+
PKGBUILD | 84 ++++++++++++++++++++++++++++++++++++-------------------------
1 file changed, 50 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-28 23:54:55 UTC (rev 1354960)
+++ PKGBUILD 2022-11-28 23:55:22 UTC (rev 1354961)
@@ -1,34 +0,0 @@
-# Maintainer: Morten Linderud <[email protected]>
-# Maintainer: Andrew Crerar <[email protected]>
-# Contributor: Maikel Wever <[email protected]>
-
-pkgname=python-pipenv
-pkgver=2022.11.11
-pkgrel=1
-pkgdesc="Sacred Marriage of Pipfile, Pip, & Virtualenv."
-url="https://pipenv.pypa.io"
-arch=('any')
-license=('MIT')
-depends=('python' 'python-pip' 'python-certifi'
- 'python-virtualenv-clone' 'python-virtualenv')
-makedepends=('python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/pipenv/archive/v${pkgver}.tar.gz")
-b2sums=('a24392e3f23d4c47a7fa723a26b416720bc22d820abe56fc0a7e2b9fe9a67428a1bea1053b6bab79061976c1bf74f786ae0eb6465fcbf4636daacd103fe0c77f')
-
-build() {
- cd "pipenv-${pkgver}"
- python setup.py build
-}
-
-package() {
- cd "pipenv-${pkgver}"
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- pushd pipenv
- find . -name \*LICENSE\* -exec install -Dm 644 \{\}
"${pkgdir}/usr/share/licenses/${pkgname}/"\{\} \;
- popd
-
- 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"
-}
Copied: python-pipenv/repos/community-any/PKGBUILD (from rev 1354960,
python-pipenv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-28 23:55:22 UTC (rev 1354961)
@@ -0,0 +1,50 @@
+# Maintainer: Morten Linderud <[email protected]>
+# Maintainer: Andrew Crerar <[email protected]>
+# Contributor: Maikel Wever <[email protected]>
+
+pkgname=python-pipenv
+pkgver=2022.11.25
+pkgrel=1
+pkgdesc="Sacred Marriage of Pipfile, Pip, & Virtualenv."
+url="https://pipenv.pypa.io"
+arch=('any')
+license=('MIT')
+depends=('python'
+ 'python-pip'
+ 'python-certifi'
+ 'python-virtualenv-clone'
+ 'python-virtualenv')
+makedepends=('python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel')
+checkdepends=('python-pytest'
+ 'python-pytz')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/pipenv/archive/v${pkgver}.tar.gz")
+b2sums=('49150e97ad0b7cddabbc2581b9d686b3713d656752fb43290ca2b525ea3d0b4237e80d441fe5d3a64701cc5264ea4566b5b9fc42bf55422f0d88d428842c96f5')
+
+build() {
+ cd "pipenv-${pkgver}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "pipenv-${pkgver}"
+ pytest tests/unit --ignore tests/unit/test_utils_windows_executable.py
+}
+
+package() {
+ local _site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+
+ cd "pipenv-${pkgver}"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ pushd pipenv
+ find . -name \*LICENSE\* -exec install -Dm 644 \{\}
"${pkgdir}/usr/share/licenses/${pkgname}/"\{\} \;
+ popd
+
+ PYTHONPATH="${pkgdir}/${_site_packages}" _PIPENV_COMPLETE=bash_source
"${pkgdir}"/usr/bin/pipenv | install -Dm644 /dev/stdin
"${pkgdir}/usr/share/bash-completion/completions/pipenv"
+ PYTHONPATH="${pkgdir}/${_site_packages}" _PIPENV_COMPLETE=zsh_source
"${pkgdir}"/usr/bin/pipenv | install -Dm644 /dev/stdin
"${pkgdir}/usr/share/zsh/site-functions/_pipenv"
+ PYTHONPATH="${pkgdir}/${_site_packages}" _PIPENV_COMPLETE=fish_source
"${pkgdir}"/usr/bin/pipenv | install -Dm644 /dev/stdin
"${pkgdir}/usr/share/fish/vendor_completions.d/pipenv.fish"
+}