Skip to content

Commit

Permalink
Upgrade to v7.3.0.
Browse files Browse the repository at this point in the history
Also: Fix scheduled action.

This patch closes #5.
  • Loading branch information
funilrys committed Dec 26, 2024
1 parent 38a8890 commit ef5f4bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
run: |
current=$(grep -P "^pkgver" PKGBUILD | cut -d= -f2)
latest=$(curl --silent "https://pypi.org/pypi/python-box/json" | jq -r .info.version)
latestUrl=$(curl --silent "https://pypi.org/pypi/python-box/json" | jq -r '.releases[.info.version] | .[] | select(.filename | test(".tar.gz")?) | .url')
aurRepoDir=/tmp/${AUR_PKG_NAME}
githubRepoDir="${PWD}"
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:
sed "/^pkgver=/s/.*/pkgver=${latest}/" -i PKGBUILD
sed "/^pkgrel=/s/.*/pkgrel=1/" -i PKGBUILD
sed "s#https:\/\/files\.pythonhosted\.org\/.*\.tar\.gz#${latestUrl}#g" -i PKGBUILD
su makepkg -c "updpkgsums"
su makepkg -c "makepkg --printsrcinfo" > .SRCINFO
Expand Down
11 changes: 6 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=python-box
pkgver=7.1.1
pypiPkgName=python_box
pkgver=7.3.0
pkgrel=1
pkgdesc="Advanced Python dictionaries with dot notation access"
arch=('x86_64')
Expand All @@ -15,16 +16,16 @@ optdepends=(
'python-toml: TOML support'
'python-yaml: YAML support')
makedepends=('cython' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('2a3df244a5a79ac8f8447b5d11b5be0f2747d7b141cb2866060081ae9b53cc50')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/79/8d/ed12ca8b90b2fce966fdaad7de40f0980f1e9dababb9c963738326687c6a/python_box-7.3.0.tar.gz")
sha256sums=('39a85ba457d07122226ca60597882d763549713ab56ac7d55da41c4ad0e89a05')

build() {
cd "$pkgname-$pkgver"
cd "$pypiPkgName-$pkgver"
python -m build --wheel --no-isolation
}

package() {
cd "$pkgname-$pkgver"
cd "$pypiPkgName-$pkgver"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -d "$pkgdir/usr/share/licenses/$pkgname/"
Expand Down

0 comments on commit ef5f4bb

Please sign in to comment.