diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/overrides | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/overrides')
| -rw-r--r-- | dev-python/overrides/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/overrides/files/overrides-7.7.0-py314.patch | 35 | ||||
| -rw-r--r-- | dev-python/overrides/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/overrides/overrides-7.7.0-r1.ebuild | 26 |
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/overrides/Manifest b/dev-python/overrides/Manifest new file mode 100644 index 000000000000..4cbd129a96ee --- /dev/null +++ b/dev-python/overrides/Manifest @@ -0,0 +1 @@ +DIST overrides-7.7.0.tar.gz 22812 BLAKE2B e51af6806e741f18fbfda57824e8f0db9f77686719b287c2b8abb8a33925c2ded8ac3fd40cb097cfcad60e06dcf5ced291e278b03a28afe15a6a6312306d200b SHA512 b2ad06da01e657839c5cbd62c49aa1022c4302fad44fd6b1a57e623e27d1c9d8cabdd9bf9c9a02c87a3b3618a662b922533cf407d17efa43769b0fc6360b5073 diff --git a/dev-python/overrides/files/overrides-7.7.0-py314.patch b/dev-python/overrides/files/overrides-7.7.0-py314.patch new file mode 100644 index 000000000000..22f32892146f --- /dev/null +++ b/dev-python/overrides/files/overrides-7.7.0-py314.patch @@ -0,0 +1,35 @@ +From 77f006c388ab3a93c88fb8aeb3d2bde20d585682 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 31 May 2025 18:58:45 +0200 +Subject: [PATCH] Fix `ImportError` on Python 3.14 due to missing + `typing.ByteString` + +Add `typing.ByteString` to `BUILTINS_MAPPING` only when it is present. +The type has been removed in Python 3.14. + +Fixes #127 +--- + overrides/typing_utils.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/overrides/typing_utils.py b/overrides/typing_utils.py +index f628d40..15ab796 100644 +--- a/overrides/typing_utils.py ++++ b/overrides/typing_utils.py +@@ -47,12 +47,15 @@ + typing.Set: set, + typing.Dict: dict, + typing.Tuple: tuple, +- typing.ByteString: bytes, # https://docs.python.org/3/library/typing.html#typing.ByteString + typing.Callable: collections.abc.Callable, + typing.Sequence: collections.abc.Sequence, + type(None): None, + } + ++if hasattr(typing, "ByteString"): ++ # https://docs.python.org/3/library/typing.html#typing.ByteString ++ BUILTINS_MAPPING[typing.ByteString] = bytes ++ + STATIC_SUBTYPE_MAPPING: typing.Dict[type, typing.Type] = { + io.TextIOWrapper: typing.TextIO, + io.TextIOBase: typing.TextIO, diff --git a/dev-python/overrides/metadata.xml b/dev-python/overrides/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/overrides/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/overrides/overrides-7.7.0-r1.ebuild b/dev-python/overrides/overrides-7.7.0-r1.ebuild new file mode 100644 index 000000000000..0515c4c17d1d --- /dev/null +++ b/dev-python/overrides/overrides-7.7.0-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A decorator to automatically detect mismatch when overriding a method" +HOMEPAGE=" + https://pypi.org/project/overrides/ + https://github.com/mkorpela/overrides/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/mkorpela/overrides/pull/133 + "${FILESDIR}/${P}-py314.patch" +) |
