blob: f20b4d28c273aed1749c01d57cff7bc1e9ff9fde (
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
|
# Maintainer: Brian Thompson <brianrobt@pm.me>
#
# This PKGBUILD is based off of the PKGBUILD in python-cx-freeze[1]. The only difference
# is that this package is built from the latest commit in the main development branch.
#
# References:
# [1]: https://gitlab.archlinux.org/archlinux/packaging/packages/python-cx-freeze
pkgname=python-cx-freeze-git
pkgver=r2066.6cdbad7
pkgrel=1
pkgdesc="Create standalone executables from Python scripts (built from latest commit)"
arch=('x86_64')
url="https://github.com/marcelotduarte/cx_Freeze"
license=('PSF-2.0')
depends=(
'glibc'
'patchelf'
'python'
'python-filelock'
'python-packaging'
'python-pyqt5'
'python-setuptools'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
)
checkdepends=(
'python-bcrypt'
'python-cryptography'
'python-openpyxl'
'python-pandas'
'python-pillow'
'python-pydantic'
'python-pytest'
'python-pytest-datafiles'
'python-pytest-mock'
'python-pytest-xdist'
'python-pytz'
'rpm-tools'
)
provides=('cxfreeze')
conflicts=('cxfreeze')
replaces=('python-cx-freeze')
source=('python-cx-freeze-git::git+https://github.com/marcelotduarte/cx_Freeze#branch=main')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$srcdir/$pkgname"
python -m build --wheel --no-isolation
}
check() {
echo "Removing the following directory for a clean install: $PWD/cx_Freeze-$pkgver/test_dir"
rm -rf "$pkgname/test_dir"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd "$srcdir/$pkgname"
python -m installer --destdir=test_dir dist/*.whl
export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
unset SOURCE_DATE_EPOCH # Workaround for 'FATAL ERROR:SOURCE_DATE_EPOCH' (see https://github.com/AppImage/AppImageKit/issues/1202)
pytest -vv
}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|