Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-ptyprocess
Commits:
70065ea4 by Carl Smedstad at 2025-01-23T08:05:55+01:00
Update maintainer/contributor comments
- - - - -
a74b4840 by Carl Smedstad at 2025-01-23T08:09:37+01:00
Use license file from released source archive instead of master branch
- - - - -
332be67c by Carl Smedstad at 2025-01-23T08:10:52+01:00
Re-format - one dep per line
- - - - -
da2fe757 by Carl Smedstad at 2025-01-23T08:11:41+01:00
Remove custom _pkgname variable
- - - - -
a79d7959 by Carl Smedstad at 2025-01-23T08:16:10+01:00
Source from GitHub instead of PyPI
- - - - -
a484f931 by Carl Smedstad at 2025-01-23T08:24:46+01:00
upgpkg: 0.7.0-8: Adopt & add testing
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,18 +1,18 @@
pkgbase = python-ptyprocess
pkgdesc = Run a subprocess in a pseudo terminal
pkgver = 0.7.0
- pkgrel = 7
+ pkgrel = 8
url = https://github.com/pexpect/ptyprocess
arch = any
license = ISC
makedepends = python-build
+ makedepends = python-flit-core
makedepends = python-installer
makedepends = python-wheel
- makedepends = python-flit-core
depends = python
- source =
https://pypi.io/packages/source/p/ptyprocess/ptyprocess-0.7.0.tar.gz
- source =
LIC-pty-0.7.0::https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE
- sha512sums =
791d8f2e79900627215ce80ce67ee9c79173dbc08297c6219d5058f9b80c5e323b93049e6836a70c4073f43548d22e3cf310f2e9948ef12f96bcaa15b0ddb2f3
- sha512sums =
77465d8319848ad6e4c3811276d6f7f5241f715d1f72012f155f5a1850abc6542fe7a74fcafc39d9801def60884d6d1acc4393700a552e44a05b763ae84970f0
+ source =
https://github.com/pexpect/ptyprocess/archive/0.7.0/ptyprocess-0.7.0.tar.gz
+ source =
python-3.13-compatibility.patch::https://src.fedoraproject.org/rpms/python-ptyprocess/raw/rawhide/f/75.patch
+ sha512sums =
2ccba731cc3c17d1a942b319c7cbb894b69b4228b2141f30c845f4d64c9033bcdb2adaa735ebcdcf936bdb7124c0351a58cba614387325abacd683f256b705d9
+ sha512sums =
19c9c71357488c88c5f0ca8ba93bb18e83189f6df455bce81a01f4f045f9766ca72111de85f2922ce99b9cb4d57479793a7a949bd720b15f3a453a2cb868a3d1
pkgname = python-ptyprocess
=====================================
PKGBUILD
=====================================
@@ -1,34 +1,45 @@
-# Maintainer: Kyle Keen <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
+# Contributor: Kyle Keen <[email protected]>
# Contributor: Will Shanks <wsha dot code at g mail dot com>
pkgname=python-ptyprocess
-_pkgname=ptyprocess
pkgver=0.7.0
-pkgrel=7
+pkgrel=8
pkgdesc="Run a subprocess in a pseudo terminal"
-url="https://github.com/pexpect/ptyprocess"
arch=('any')
+url="https://github.com/pexpect/ptyprocess"
license=('ISC')
depends=('python')
-makedepends=('python-build' 'python-installer' 'python-wheel'
'python-flit-core')
-source=("https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
-
"LIC-pty-$pkgver::https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE")
-sha512sums=('791d8f2e79900627215ce80ce67ee9c79173dbc08297c6219d5058f9b80c5e323b93049e6836a70c4073f43548d22e3cf310f2e9948ef12f96bcaa15b0ddb2f3'
-
'77465d8319848ad6e4c3811276d6f7f5241f715d1f72012f155f5a1850abc6542fe7a74fcafc39d9801def60884d6d1acc4393700a552e44a05b763ae84970f0')
+makedepends=(
+ 'python-build'
+ 'python-flit-core'
+ 'python-installer'
+ 'python-wheel'
+)
+source=(
+ "$url/archive/$pkgver/${pkgname#python-}-$pkgver.tar.gz"
+
"python-3.13-compatibility.patch::https://src.fedoraproject.org/rpms/python-ptyprocess/raw/rawhide/f/75.patch"
+)
+sha512sums=('2ccba731cc3c17d1a942b319c7cbb894b69b4228b2141f30c845f4d64c9033bcdb2adaa735ebcdcf936bdb7124c0351a58cba614387325abacd683f256b705d9'
+
'19c9c71357488c88c5f0ca8ba93bb18e83189f6df455bce81a01f4f045f9766ca72111de85f2922ce99b9cb4d57479793a7a949bd720b15f3a453a2cb868a3d1')
prepare() {
- cd "$srcdir"
- cp -r $_pkgname-$pkgver ${_pkgname}2-$pkgver
- mv "LIC-pty-$pkgver" LICENSE
+ cd ${pkgname#python-}-$pkgver
+ patch -Np1 -i ../python-3.13-compatibility.patch
}
build() {
- cd "$srcdir/$_pkgname-$pkgver"
+ cd ${pkgname#python-}-$pkgver
python -m build --wheel --no-isolation
}
+check() {
+ cd ${pkgname#python-}-$pkgver
+ python -m unittest discover -v
+}
+
package() {
- cd "$srcdir/$_pkgname-$pkgver"
+ cd ${pkgname#python-}-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
- install -Dm644 "$srcdir/LICENSE"
"$pkgdir/usr/share/licenses/python-$_pkgname/LICENSE"
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ptyprocess/-/compare/54fdb7b7e97d659f53a7763d8246efaa545ea738...a484f931c04f6ae0f829d3a2fc3d11dd12346ab3
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ptyprocess/-/compare/54fdb7b7e97d659f53a7763d8246efaa545ea738...a484f931c04f6ae0f829d3a2fc3d11dd12346ab3
You're receiving this email because of your account on gitlab.archlinux.org.