blob: 1ac9f96636d92710c9fe8104fe809889315c210d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Ilaï Deutel <PlMWPh1WSmypRv0JQljz> (echo ... | tr 'A-Za-z' 'l-za-kL-ZA-K' | base64 -d)
# Contributor: i.further
# Contributor: Flaviu Tamas <me@flaviutamas.com>
# Contributor: Morten Linderud <foxboron@archlinux.org>
# Contributor: Maikel Wever <maikelwever@gmail.com>
pkgname=python-pipenv-git
pkgver=2023.12.1.r37.g3ac18c34
pkgrel=1
pkgdesc="Python Development Workflow for Humans."
url="https://pipenv.pypa.io"
arch=('any')
license=('MIT')
depends=('python' 'python-pip' 'python-virtualenv' 'python-setuptools'
'python-certifi')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
conflicts=('python-pipenv')
provides=('python-pipenv')
# checkdepends=('python-pytest' 'pypiserver' 'python-click' 'python-flaky')
source=(
"$pkgname::git+https://github.com/pypa/pipenv.git"
# The following sources are used for check()
# "test-submodules/dateutil::git+https://github.com/dateutil/dateutil.git"
# "test-submodules/flask::git+https://github.com/pallets/flask.git"
# "test-submodules/jinja2::git+https://github.com/pallets/jinja.git"
# "test-submodules/pinax::git+https://github.com/pinax/pinax.git"
# "test-submodules/pyinstaller::git+https://github.com/pyinstaller/pyinstaller.git"
# "test-submodules/pypi::git+https://github.com/sarugaku/pipenv-test-artifacts.git"
# "test-submodules/requests::git+https://github.com/psf/requests.git"
# "test-submodules/six::git+https://github.com/benjaminp/six.git"
)
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "$srcdir/$pkgname"
python -m build --wheel --no-isolation
}
# check(){
# cd "$srcdir/$pkgname/tests"
#
# git submodule init pypi
# git config submodule.tests/pypi.url "$srcdir/pypi"
#
# for artifact in dateutil flask jinja2 pinax pyinstaller requests six; do
# git submodule init "test_artifacts/git/$artifact"
# git config "submodule.tests/test_artifacts/git/$artifact.url" "$srcdir/${artifact%-*}"
# done
#
# git -c protocol.file.allow=always submodule update
#
# pypi-server run --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback pypi fixtures &
# PYPI_SERVER_PID="$!"
# trap "kill ${PYPI_SERVER_PID}" EXIT
#
# export PIPENV_CACHE_DIR=$(mktemp -d)
# trap "rm -r ${PIPENV_CACHE_DIR}" EXIT
# pytest -k 'not needs_internet and not system'
#}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
_PIPENV_COMPLETE=bash_source python -m pipenv | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/pipenv"
_PIPENV_COMPLETE=zsh_source python -m pipenv | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_pipenv"
/usr/bin/env _PIPENV_COMPLETE=fish_source python -m pipenv | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/pipenv.fish"
cd pipenv/vendor
find -name '*LICENSE' -type f -exec install -Dm 644 {} "${pkgdir}/usr/share/licenses/${pkgname}/vendor/{}" \;
}
|