commit:     3c98df9c592562623209d6b6ecf7e4a90a108ad6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 18 05:32:29 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 18 07:11:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c98df9c

dev-python/oauthlib: Bump to 3.3.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/oauthlib/Manifest                       |  1 +
 .../files/oauthlib-3.3.0-stray-examples.patch      | 24 ++++++++++++++++
 dev-python/oauthlib/oauthlib-3.3.0.ebuild          | 33 ++++++++++++++++++++++
 3 files changed, 58 insertions(+)

diff --git a/dev-python/oauthlib/Manifest b/dev-python/oauthlib/Manifest
index 2137052efeb7..0379290811c6 100644
--- a/dev-python/oauthlib/Manifest
+++ b/dev-python/oauthlib/Manifest
@@ -1 +1,2 @@
 DIST oauthlib-3.2.2.tar.gz 177352 BLAKE2B 
98c128eb0ec2a24f45fd63826eb2253e2e90afb37c1954a9d21f0046168bfff8d52a24b230b60f4d756e4730c0cc05b3484d2cb6ac3eb2d710ee113dea6598c9
 SHA512 
c147b96e0ab0d1a8845f525e80831cfd04495134dd1f17fd95eac62f3a95c91e6dca9d38e34206537d77f3c12dd5b553252239318ba39546979c350e96536b8b
+DIST oauthlib-3.3.0.tar.gz 190292 BLAKE2B 
705fcb31504c11caa97de44663599f2fa590557a2db8583eea30808d67d0a81b59d6ee910d2815b89734e5f6441b1b3e3941edf63a2537f3e829dd7ba8419fec
 SHA512 
92620ed0101469192f9104809ece387a9185622e95ec7f5aa1eb7838f6e27502fe77d4323951aeff31f3c74366d70596727f34ded2f40af1e0e4d259baa23325

diff --git a/dev-python/oauthlib/files/oauthlib-3.3.0-stray-examples.patch 
b/dev-python/oauthlib/files/oauthlib-3.3.0-stray-examples.patch
new file mode 100644
index 000000000000..1b14b9c1a49e
--- /dev/null
+++ b/dev-python/oauthlib/files/oauthlib-3.3.0-stray-examples.patch
@@ -0,0 +1,24 @@
+From db00c8c22dfbfdafb188f4e8796163af9d7fda59 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]>
+Date: Wed, 18 Jun 2025 07:35:40 +0200
+Subject: [PATCH] Stop installing `examples` into `site-packages`
+
+Fix `setup.py` not to install `examples` as a top-level package
+into `site-packages`.
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 70162daa..a35de99b 100755
+--- a/setup.py
++++ b/setup.py
+@@ -33,7 +33,7 @@ def fread(fn):
+     url='https://github.com/oauthlib/oauthlib',
+     platforms='any',
+     license='BSD-3-Clause',
+-    packages=find_packages(exclude=('docs', 'tests', 'tests.*')),
++    packages=find_packages(exclude=('docs', 'examples', 'tests', 'tests.*')),
+     python_requires='>=3.8',
+     extras_require={
+         'rsa': rsa_require,

diff --git a/dev-python/oauthlib/oauthlib-3.3.0.ebuild 
b/dev-python/oauthlib/oauthlib-3.3.0.ebuild
new file mode 100644
index 000000000000..f6935f16a6d9
--- /dev/null
+++ b/dev-python/oauthlib/oauthlib-3.3.0.ebuild
@@ -0,0 +1,33 @@
+# 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..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Spec-compliant and thorough implementation of the OAuth 
request-signing logic"
+HOMEPAGE="
+       https://github.com/oauthlib/oauthlib/
+       https://pypi.org/project/oauthlib/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+
+# optional extras hard set as RDEPs. See setup.py
+RDEPEND="
+       >=dev-python/pyjwt-1.0.0[${PYTHON_USEDEP}]
+       dev-python/blinker[${PYTHON_USEDEP}]
+       dev-python/cryptography[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+       # https://github.com/oauthlib/oauthlib/pull/904
+       "${FILESDIR}/${P}-stray-examples.patch"
+)

Reply via email to