George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / python-josepy
Commits: 7f95733a by George Rawlinson at 2023-11-03T20:54:01+13:00 upgpkg: 1.14.0-1 * New upstream release. * Poetry proves yet again that it is not PEP-517 compliant. - - - - - 3 changed files: - + .SRCINFO - PKGBUILD - + no-thanks-poetry.patch Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,21 @@ +pkgbase = python-josepy + pkgdesc = JOSE protocol implementation in Python + pkgver = 1.14.0 + pkgrel = 1 + url = https://github.com/certbot/josepy + arch = any + license = Apache + checkdepends = python-pytest + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-poetry-core + depends = python + depends = python-cryptography + depends = python-pyopenssl + source = python-josepy::git+https://github.com/certbot/josepy#commit=a6861675bc943026e8c0d5c550e17eba23289547 + source = no-thanks-poetry.patch + b2sums = SKIP + b2sums = b7bf362e953247424fadea853b3c7be9977021b7d109d240ced847b9271c739e6dfcf8025efbdd9bb746dc42e21905cb1c9c93982d4e39dab60354ab06c6e76a + +pkgname = python-josepy ===================================== PKGBUILD ===================================== @@ -2,8 +2,8 @@ # Contributor: Felix Yan <[email protected]> pkgname=python-josepy -pkgver=1.13.0 -pkgrel=4 +pkgver=1.14.0 +pkgrel=1 pkgdesc='JOSE protocol implementation in Python' arch=('any') url='https://github.com/certbot/josepy' @@ -17,13 +17,16 @@ makedepends=( 'git' 'python-build' 'python-installer' - 'python-setuptools' - 'python-wheel' + 'python-poetry-core' ) checkdepends=('python-pytest') -_commit='10e2e3a1c09974d41097cc4c08f836421ce39f1b' -source=("$pkgname::git+$url#commit=$_commit") -b2sums=('SKIP') +_commit='a6861675bc943026e8c0d5c550e17eba23289547' +source=( + "$pkgname::git+$url#commit=$_commit" + 'no-thanks-poetry.patch' +) +b2sums=('SKIP' + 'b7bf362e953247424fadea853b3c7be9977021b7d109d240ced847b9271c739e6dfcf8025efbdd9bb746dc42e21905cb1c9c93982d4e39dab60354ab06c6e76a') pkgver() { cd "$pkgname" @@ -34,16 +37,10 @@ pkgver() { prepare() { cd "$pkgname" - # thou shalt not enforce coverage in distro packaging - # https://github.com/certbot/josepy/issues/34 - rm pytest.ini - - # nuke setuptools from orbit ^W install_requires - sed \ - -e '/setuptools>=/d' \ - -i setup.py + # poetry strikes again + # https://github.com/certbot/josepy/issues/172 + patch -p1 -i "$srcdir/no-thanks-poetry.patch" } - build() { cd "$pkgname" @@ -53,7 +50,10 @@ build() { check() { cd "$pkgname" - PYTHONPATH="$(pwd)/build/lib" pytest -v + # install to temporary location + python -m installer --destdir=test_dir dist/*.whl + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + PYTHONPATH="test_dir/$site_packages:$PYTHONPATH" pytest -v } package() { ===================================== no-thanks-poetry.patch ===================================== @@ -0,0 +1,13 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 2dd0e348..c8b6b0f8 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -30,8 +30,6 @@ homepage = "https://github.com/certbot/josepy" + authors = ["Certbot Project <[email protected]>"] + readme = "README.rst" + include = [ +- "CHANGELOG.rst", +- "CONTRIBUTING.md", + "docs", "tests", + ] + View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-josepy/-/commit/7f95733a1dffd94865c5e7246843a2819e097f6e -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-josepy/-/commit/7f95733a1dffd94865c5e7246843a2819e097f6e You're receiving this email because of your account on gitlab.archlinux.org.
