George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages /
python-serpent
Commits:
4413538e by George Rawlinson at 2025-10-27T21:44:21+00:00
nvchecker: switch to upstream repository
- - - - -
2686695a by George Rawlinson at 2025-10-27T21:44:29+00:00
reuse: simplify conf
- - - - -
97ffef57 by George Rawlinson at 2025-10-27T21:47:58+00:00
upgpkg: 1.42-1
- - - - -
4 changed files:
- .SRCINFO
- .nvchecker.toml
- PKGBUILD
- REUSE.toml
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,16 +1,20 @@
pkgbase = python-serpent
pkgdesc = Serializer for literal Python expressions
- pkgver = 1.41
- pkgrel = 6
+ pkgver = 1.42
+ pkgrel = 1
url = https://github.com/irmen/Serpent
arch = any
license = MIT
checkdepends = python-attrs
checkdepends = python-pytz
makedepends = git
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
+ makedepends = python-wheel
depends = python
- source =
git+https://github.com/irmen/Serpent#commit=83d06d779c05e259bf1e020aca9b850d3c6f010b
- b2sums = SKIP
+ source =
python-serpent::git+https://github.com/irmen/Serpent#tag=serpent-1.42
+ sha512sums =
1d2ded16b73a1b22f491edbdc995deaa7790a6bded290a9966601b99aa5de0826ee8db63faca64b852f4fe0d07b6efff499cd286804327ce686da50a0b8d6dac
+ b2sums =
2ade945a56d2646fe75ee79bc7ac0bedd03310d1747c00bcffac84347b742d1d5b45beb58681d87c0996748dc48ca93068f7993dad9e10be86d51e64e5752e45
pkgname = python-serpent
=====================================
.nvchecker.toml
=====================================
@@ -1,3 +1,5 @@
[python-serpent]
-source = "pypi"
-pypi = "serpent"
+source = "git"
+git = "https://github.com/irmen/Serpent.git"
+prefix = "serpent-"
+exclude_regex = "^(0|1|v).*"
=====================================
PKGBUILD
=====================================
@@ -2,25 +2,42 @@
# Contributor: razer <[email protected]>
pkgname=python-serpent
-pkgver=1.41
-pkgrel=6
+pkgver=1.42
+pkgrel=1
pkgdesc='Serializer for literal Python expressions'
url='https://github.com/irmen/Serpent'
arch=(any)
license=(MIT)
depends=(python)
-makedepends=(git python-setuptools)
+makedepends=(
+ git
+ python-build
+ python-installer
+ python-setuptools
+ python-wheel
+)
checkdepends=(python-attrs python-pytz)
-source=("git+$url#commit=83d06d779c05e259bf1e020aca9b850d3c6f010b") # tag:
serpent-1.41
-b2sums=(SKIP)
+source=("$pkgname::git+$url#tag=serpent-$pkgver")
+sha512sums=('1d2ded16b73a1b22f491edbdc995deaa7790a6bded290a9966601b99aa5de0826ee8db63faca64b852f4fe0d07b6efff499cd286804327ce686da50a0b8d6dac')
+b2sums=('2ade945a56d2646fe75ee79bc7ac0bedd03310d1747c00bcffac84347b742d1d5b45beb58681d87c0996748dc48ca93068f7993dad9e10be86d51e64e5752e45')
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
check() {
- cd Serpent
+ cd "$pkgname"
+
python3 -m unittest discover -vs tests
}
package() {
- cd Serpent
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
=====================================
REUSE.toml
=====================================
@@ -7,16 +7,6 @@ path = [
"keys/**",
".SRCINFO",
".nvchecker.toml",
- "*.install",
- "*.sysusers",
- "*.tmpfiles",
- "*.logrotate",
- "*.pam",
- "*.service",
- "*.socket",
- "*.timer",
- "*.desktop",
- "*.hook",
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-serpent/-/compare/0ace6428d199093d3cfdc06a82c55e7c7d334ca9...97ffef576573e54324e544499e72261d2571512e
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-serpent/-/compare/0ace6428d199093d3cfdc06a82c55e7c7d334ca9...97ffef576573e54324e544499e72261d2571512e
You're receiving this email because of your account on gitlab.archlinux.org.