Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / python-httpx
Commits: f424b529 by Carl Smedstad at 2025-06-23T08:34:13+02:00 Add tests suite to the package Add tests suite to the package for reverse dependencies to be able to rely on it (see e.g. https://gitlab.archlinux.org/archlinux/packaging/packages/python-httpx-aiohttp/-/merge_requests/1) - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -7,7 +7,6 @@ pkgbase = python-httpx license = BSD-3-Clause checkdepends = python-pytest-asyncio checkdepends = python-pytest-trio - checkdepends = python-typing_extensions checkdepends = python-brotli checkdepends = python-brotlicffi checkdepends = python-h2 ===================================== PKGBUILD ===================================== @@ -29,7 +29,7 @@ optdepends=( ) makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-hatch-fancy-pypi-readme' 'python-pygments') -checkdepends=('python-pytest-asyncio' 'python-pytest-trio' 'python-typing_extensions' 'python-brotli' 'python-brotlicffi' 'python-h2' 'python-trustme' 'uvicorn' 'python-socksio' +checkdepends=('python-pytest-asyncio' 'python-pytest-trio' 'python-brotli' 'python-brotlicffi' 'python-h2' 'python-trustme' 'uvicorn' 'python-socksio' 'python-rich' 'python-chardet' 'python-zstandard') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz" "uvicorn-test-server-use-h11.diff") @@ -64,5 +64,9 @@ package() { cd ${_pkgname}-${pkgver} python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md + install -vDm644 LICENSE.md "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md + + # Package the test suite as it is used to test python-httpx-aiohttp. + install -vDm644 -t "${pkgdir}/usr/share/${pkgname}" pyproject.toml + cp -va -t "${pkgdir}/usr/share/${pkgname}" tests } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-httpx/-/commit/f424b52969c1b26581a1c86a2dad716818e0f8e1 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-httpx/-/commit/f424b52969c1b26581a1c86a2dad716818e0f8e1 You're receiving this email because of your account on gitlab.archlinux.org.