Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / python-txaio
Commits: 2dd97246 by Chih-Hsuan Yen at 2024-04-28T20:57:53+08:00 Various fixes and cleanups * Drop python-six, which is not needed since v20.3.1 [1] * Switch to PEP 517 * Avoid PyPI tarballs, see RFC 20 [2] * Add optdepends Closes https://gitlab.archlinux.org/archlinux/packaging/packages/python-txaio/-/issues/1 [1] https://github.com/crossbario/txaio/commit/62b0e7eaa22769687df1de8f57374cb0a42bdc4d [2] https://rfc.archlinux.page/0020-sources-for-python-packaging/ - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,16 +1,22 @@ pkgbase = python-txaio pkgdesc = Compatibility API between asyncio/Twisted/Trollius pkgver = 23.1.1 - pkgrel = 3 + pkgrel = 4 url = https://github.com/crossbario/txaio arch = any license = MIT checkdepends = python-pytest checkdepends = python-twisted checkdepends = python-tests + makedepends = git + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools - depends = python-six - source = https://pypi.io/packages/source/t/txaio/txaio-23.1.1.tar.gz - sha512sums = 41320501ec3e2555edc63326f2c5ee9bbc2fd103198a515b6dc4c44603a41d633c99a8f12c92ffc85f43546f0382d40f0c9748b13f7a7e70d98c5c4a2de85e2e + makedepends = python-wheel + depends = python + optdepends = python-twisted: Twisted support + optdepends = python-zope-interface: Twisted support + source = git+https://github.com/crossbario/txaio.git#tag=v23.1.1 + sha512sums = ae0a25cb2d0b7e5c459650a83c388d7bae6000c3a0c909cc00994d8b5ac595800e97b55cbc9afe968b2bcd914657ec6c5d2b6a68333dde8872bb8211d981f5f8 pkgname = python-txaio ===================================== PKGBUILD ===================================== @@ -4,38 +4,42 @@ pkgname=python-txaio # https://github.com/crossbario/txaio/blob/master/docs/releases.rst pkgver=23.1.1 -pkgrel=3 +pkgrel=4 pkgdesc='Compatibility API between asyncio/Twisted/Trollius' arch=('any') url="https://github.com/crossbario/txaio" license=('MIT') -depends=('python-six') -makedepends=('python-setuptools') +depends=('python') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') # python-tests is used here: # https://github.com/crossbario/txaio/blob/v20.1.1/test/_asyncio_test_utils.py#L35 checkdepends=('python-pytest' 'python-twisted' 'python-tests') -source=("https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz") -sha512sums=('41320501ec3e2555edc63326f2c5ee9bbc2fd103198a515b6dc4c44603a41d633c99a8f12c92ffc85f43546f0382d40f0c9748b13f7a7e70d98c5c4a2de85e2e') +optdepends=( + 'python-twisted: Twisted support' + 'python-zope-interface: Twisted support' +) +source=("git+https://github.com/crossbario/txaio.git#tag=v$pkgver") +sha512sums=('ae0a25cb2d0b7e5c459650a83c388d7bae6000c3a0c909cc00994d8b5ac595800e97b55cbc9afe968b2bcd914657ec6c5d2b6a68333dde8872bb8211d981f5f8') prepare() { # This tests whether pip can install the sdist, and is completely broken # except in their boutique setup. They won't fix it. # https://github.com/crossbario/txaio/issues/77#issuecomment-246276723 - rm txaio-$pkgver/test/test_packaging.py + rm txaio/test/test_packaging.py } build() { - cd "$srcdir"/txaio-$pkgver - python setup.py build + cd "$srcdir"/txaio + python -m build --wheel --no-isolation } check() { - cd "$srcdir"/txaio-$pkgver + cd "$srcdir"/txaio python -m pytest } package() { - cd txaio-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + cd txaio + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-txaio/-/commit/2dd97246fa54678c50ffea3ad06357c7dd722663 -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-txaio/-/commit/2dd97246fa54678c50ffea3ad06357c7dd722663 You're receiving this email because of your account on gitlab.archlinux.org.