From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0D3D15FA50 for ; Fri, 03 Oct 2025 05:38:41 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id BAE8E3431C0 for ; Fri, 03 Oct 2025 05:38:41 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id BF516113145; Fri, 03 Oct 2025 05:38:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id AE865113149 for ; Fri, 03 Oct 2025 05:38:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 60267343187 for ; Fri, 03 Oct 2025 05:38:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 758B53A84 for ; Fri, 03 Oct 2025 05:38:05 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1759469877.a0179b6d650d7041056b72b0a15d3ca80d82c197.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/authlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/authlib/Manifest dev-python/authlib/authlib-1.6.5.ebuild X-VCS-Directories: dev-python/authlib/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a0179b6d650d7041056b72b0a15d3ca80d82c197 X-VCS-Branch: master Date: Fri, 03 Oct 2025 05:38:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: de2e4fc1-fb5f-4dab-a119-174162d0b653 X-Archives-Hash: 8427af41fd60545888f47c302f17ed0f commit: a0179b6d650d7041056b72b0a15d3ca80d82c197 Author: Michał Górny gentoo org> AuthorDate: Fri Oct 3 05:22:14 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Oct 3 05:37:57 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0179b6d dev-python/authlib: Bump to 1.6.5 Signed-off-by: Michał Górny gentoo.org> dev-python/authlib/Manifest | 1 + dev-python/authlib/authlib-1.6.5.ebuild | 74 +++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/dev-python/authlib/Manifest b/dev-python/authlib/Manifest index 324d2b118f10..b0e3e9b414a5 100644 --- a/dev-python/authlib/Manifest +++ b/dev-python/authlib/Manifest @@ -1 +1,2 @@ DIST authlib-1.6.4.gh.tar.gz 327564 BLAKE2B eb9c21d2b60dc9ec38b643c2d3a8cddb3676b3a6de1d4d926cfaa60ad02189fa78e825d0a591883e6cf5a07a430ab7b3dab3bafa4e5e5679378dea6150a6ab41 SHA512 4081671cb93e7470d908145140379e8f647959dc240a934984a8a74120bf5a0ecfec377bd67591945360045e024f32f4e0bb1cea24d9d7a39be7ae08b308d10c +DIST authlib-1.6.5.gh.tar.gz 328496 BLAKE2B 8065cbeaa699671d7ab5a8463f48b5ebfd3d13fe6282829ee84efea2558beacee1838a5fac8d0244469aac1d486c49b30d8638765d54f16c5d27f669bcbecf08 SHA512 ddb9e51690cbaa6d990ac35a180def19808ccb95e08aedf5351d61717cf141358fb749ae593f1cbdf6274ca97c9c49a7085c973461825a631604ab6e6cbf1693 diff --git a/dev-python/authlib/authlib-1.6.5.ebuild b/dev-python/authlib/authlib-1.6.5.ebuild new file mode 100644 index 000000000000..625edf4230ee --- /dev/null +++ b/dev-python/authlib/authlib-1.6.5.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517="setuptools" +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 + +DESCRIPTION="A Python library in building OAuth and OpenID Connect servers and clients" +HOMEPAGE=" + https://authlib.org/ + https://github.com/authlib/authlib/ + https://pypi.org/project/Authlib/ +" +# pypi source distribution excludes the tests +SRC_URI=" + https://github.com/authlib/authlib/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="django flask jose test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/cryptography[${PYTHON_USEDEP}] + django? ( + dev-python/django[${PYTHON_USEDEP}] + ) + flask? ( + dev-python/flask[${PYTHON_USEDEP}] + dev-python/flask-sqlalchemy[${PYTHON_USEDEP}] + ) + jose? ( + >=dev-python/pycryptodome-3.10[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + test? ( + dev-python/anyio[${PYTHON_USEDEP}] + dev-python/cachelib[${PYTHON_USEDEP}] + dev-python/django[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/flask-sqlalchemy[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + >=dev-python/pycryptodome-3.10[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/starlette[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-asyncio ) +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # convert from pycryptodomex to pycryptodome + sed -i -e 's:from Cryptodome:from Crypto:' \ + authlib/jose/drafts/_jwe_enc_cryptodome.py || die +} + +python_test() { + local -x DJANGO_SETTINGS_MODULE=tests.django_settings + epytest tests/{core,jose,clients,flask} + + # TODO: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. + #epytest tests/django +}