From 7a3eefaa2a75ebc81fd96083ae5ba4e57893fd95 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 9 Jul 2024 17:46:56 +0000 Subject: Adding metadata --- dev-python/amqp/amqp-5.2.0.ebuild | 2 +- dev-python/astroid/astroid-3.2.2-r1.ebuild | 86 ++++++++ dev-python/astroid/astroid-3.2.2.ebuild | 3 +- dev-python/astroid/files/astroid-3.2.2-py313.patch | 177 ++++++++++++++++ dev-python/asttokens/asttokens-2.4.1.ebuild | 2 +- dev-python/boto3/Manifest | 1 + dev-python/boto3/boto3-1.34.141.ebuild | 53 +++++ dev-python/botocore/Manifest | 1 + dev-python/botocore/botocore-1.34.141.ebuild | 77 +++++++ dev-python/btrfsutil/Manifest | 2 + dev-python/btrfsutil/btrfsutil-6.8.1.ebuild | 1 + dev-python/btrfsutil/btrfsutil-6.9.2.ebuild | 47 +++++ dev-python/btrfsutil/btrfsutil-6.9.ebuild | 1 + dev-python/cfn-lint/Manifest | 1 + dev-python/cfn-lint/cfn-lint-1.5.1.ebuild | 70 +++++++ dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild | 2 +- dev-python/deepdiff/Manifest | 1 - dev-python/deepdiff/deepdiff-6.7.1.ebuild | 39 ---- dev-python/deepdiff/deepdiff-7.0.1.ebuild | 16 ++ dev-python/desktop-notifier/Manifest | 2 +- .../desktop-notifier/desktop-notifier-5.0.0.ebuild | 33 --- .../desktop-notifier/desktop-notifier-5.0.1.ebuild | 33 +++ dev-python/dill/dill-0.3.8-r1.ebuild | 28 +++ dev-python/dill/dill-0.3.8-r2.ebuild | 33 +++ dev-python/dill/dill-0.3.8.ebuild | 24 --- dev-python/dissononce/dissononce-0.34.3-r3.ebuild | 19 +- .../django-cacheops/django-cacheops-7.0.2.ebuild | 2 +- dev-python/ensurepip-pip/Manifest | 1 + .../ensurepip-pip/ensurepip-pip-24.1.2.ebuild | 24 +++ dev-python/google-auth-oauthlib/Manifest | 1 + .../google-auth-oauthlib-1.2.1.ebuild | 44 ++++ dev-python/google-auth/Manifest | 1 + dev-python/google-auth/google-auth-2.32.0.ebuild | 58 ++++++ .../greenlet/files/greenlet-3.0.3-py313.patch | 225 +++++++++++++++++++++ dev-python/greenlet/greenlet-3.0.3-r1.ebuild | 53 +++++ dev-python/humanize/Manifest | 1 + dev-python/humanize/humanize-4.10.0.ebuild | 33 +++ dev-python/jedi/Manifest | 1 + dev-python/jedi/jedi-0.19.1_p20240706.ebuild | 86 ++++++++ dev-python/jsonschema/Manifest | 1 + dev-python/jsonschema/jsonschema-4.23.0.ebuild | 57 ++++++ dev-python/lmfit/files/lmfit-1.3.1-np2.patch | 39 ++++ dev-python/lmfit/lmfit-1.3.1-r1.ebuild | 42 ++++ dev-python/nanobind/Manifest | 1 + dev-python/nanobind/metadata.xml | 10 + dev-python/nanobind/nanobind-2.0.0-r1.ebuild | 71 +++++++ dev-python/persist-queue/Manifest | 1 + .../persist-queue/persist-queue-1.0.0.ebuild | 27 +++ dev-python/pip/Manifest | 1 + dev-python/pip/pip-24.1.2.ebuild | 171 ++++++++++++++++ dev-python/plexapi/Manifest | 2 +- dev-python/plexapi/plexapi-4.15.11.ebuild | 37 ---- dev-python/plexapi/plexapi-4.15.15.ebuild | 37 ++++ dev-python/protobuf-python/Manifest | 6 +- dev-python/protobuf-python/files/editions.patch | 58 ------ .../files/protobuf-python-4.22.5-c++-17.patch | 13 ++ .../files/protobuf-python-4.22.5-python.patch | 21 ++ dev-python/protobuf-python/metadata.xml | 14 +- .../protobuf-python/protobuf-python-4.21.12.ebuild | 78 +++++++ .../protobuf-python/protobuf-python-4.21.9.ebuild | 6 +- .../protobuf-python/protobuf-python-4.22.5.ebuild | 86 ++++++++ .../protobuf-python/protobuf-python-4.23.3.ebuild | 4 +- .../protobuf-python/protobuf-python-4.24.4.ebuild | 57 ------ .../protobuf-python/protobuf-python-4.25.3.ebuild | 57 ------ .../protobuf-python/protobuf-python-5.27.1.ebuild | 54 ----- .../protobuf-python/protobuf-python-5.27.2.ebuild | 30 +++ dev-python/psycopg/psycopg-2.9.9-r1.ebuild | 65 ++++++ .../pybind11/files/pybind11-2.13.1-gcc14-fix.patch | 23 +++ dev-python/pybind11/pybind11-2.13.1-r1.ebuild | 76 +++++++ dev-python/pyopencl/Manifest | 1 + .../files/pyopencl-2024.2.7-nanobind-flags.patch | 13 ++ dev-python/pyopencl/pyopencl-2024.2.7.ebuild | 78 +++++++ .../pytest-twisted/pytest-twisted-1.14.1.ebuild | 6 + .../python-glanceclient-4.6.0-test-py3.13.patch | 66 ++++++ .../python-glanceclient-4.6.0.ebuild | 4 + dev-python/python-statemachine/Manifest | 1 + .../python-statemachine-2.3.3.ebuild | 35 ++++ dev-python/readme-renderer/Manifest | 1 + .../readme-renderer/readme-renderer-44.0.ebuild | 29 +++ dev-python/rpds-py/Manifest | 18 ++ dev-python/rpds-py/rpds-py-0.19.0.ebuild | 57 ++++++ dev-python/sentry-sdk/Manifest | 1 + dev-python/sentry-sdk/sentry-sdk-2.8.0.ebuild | 127 ++++++++++++ dev-python/sympy/Manifest | 1 + dev-python/sympy/sympy-1.13.0.ebuild | 108 ++++++++++ dev-python/uv/Manifest | 2 + dev-python/uv/uv-0.2.23.ebuild | 108 ++++++++++ dev-python/validators/Manifest | 1 + dev-python/validators/validators-0.31.0.ebuild | 26 +++ 89 files changed, 2721 insertions(+), 391 deletions(-) create mode 100644 dev-python/astroid/astroid-3.2.2-r1.ebuild create mode 100644 dev-python/astroid/files/astroid-3.2.2-py313.patch create mode 100644 dev-python/boto3/boto3-1.34.141.ebuild create mode 100644 dev-python/botocore/botocore-1.34.141.ebuild create mode 100644 dev-python/btrfsutil/btrfsutil-6.9.2.ebuild create mode 100644 dev-python/cfn-lint/cfn-lint-1.5.1.ebuild delete mode 100644 dev-python/deepdiff/deepdiff-6.7.1.ebuild delete mode 100644 dev-python/desktop-notifier/desktop-notifier-5.0.0.ebuild create mode 100644 dev-python/desktop-notifier/desktop-notifier-5.0.1.ebuild create mode 100644 dev-python/dill/dill-0.3.8-r1.ebuild create mode 100644 dev-python/dill/dill-0.3.8-r2.ebuild delete mode 100644 dev-python/dill/dill-0.3.8.ebuild create mode 100644 dev-python/ensurepip-pip/ensurepip-pip-24.1.2.ebuild create mode 100644 dev-python/google-auth-oauthlib/google-auth-oauthlib-1.2.1.ebuild create mode 100644 dev-python/google-auth/google-auth-2.32.0.ebuild create mode 100644 dev-python/greenlet/files/greenlet-3.0.3-py313.patch create mode 100644 dev-python/greenlet/greenlet-3.0.3-r1.ebuild create mode 100644 dev-python/humanize/humanize-4.10.0.ebuild create mode 100644 dev-python/jedi/jedi-0.19.1_p20240706.ebuild create mode 100644 dev-python/jsonschema/jsonschema-4.23.0.ebuild create mode 100644 dev-python/lmfit/files/lmfit-1.3.1-np2.patch create mode 100644 dev-python/lmfit/lmfit-1.3.1-r1.ebuild create mode 100644 dev-python/nanobind/Manifest create mode 100644 dev-python/nanobind/metadata.xml create mode 100644 dev-python/nanobind/nanobind-2.0.0-r1.ebuild create mode 100644 dev-python/persist-queue/persist-queue-1.0.0.ebuild create mode 100644 dev-python/pip/pip-24.1.2.ebuild delete mode 100644 dev-python/plexapi/plexapi-4.15.11.ebuild create mode 100644 dev-python/plexapi/plexapi-4.15.15.ebuild delete mode 100644 dev-python/protobuf-python/files/editions.patch create mode 100644 dev-python/protobuf-python/files/protobuf-python-4.22.5-c++-17.patch create mode 100644 dev-python/protobuf-python/files/protobuf-python-4.22.5-python.patch create mode 100644 dev-python/protobuf-python/protobuf-python-4.21.12.ebuild create mode 100644 dev-python/protobuf-python/protobuf-python-4.22.5.ebuild delete mode 100644 dev-python/protobuf-python/protobuf-python-4.24.4.ebuild delete mode 100644 dev-python/protobuf-python/protobuf-python-4.25.3.ebuild delete mode 100644 dev-python/protobuf-python/protobuf-python-5.27.1.ebuild create mode 100644 dev-python/protobuf-python/protobuf-python-5.27.2.ebuild create mode 100644 dev-python/psycopg/psycopg-2.9.9-r1.ebuild create mode 100644 dev-python/pybind11/files/pybind11-2.13.1-gcc14-fix.patch create mode 100644 dev-python/pybind11/pybind11-2.13.1-r1.ebuild create mode 100644 dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch create mode 100644 dev-python/pyopencl/pyopencl-2024.2.7.ebuild create mode 100644 dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test-py3.13.patch create mode 100644 dev-python/python-statemachine/python-statemachine-2.3.3.ebuild create mode 100644 dev-python/readme-renderer/readme-renderer-44.0.ebuild create mode 100644 dev-python/rpds-py/rpds-py-0.19.0.ebuild create mode 100644 dev-python/sentry-sdk/sentry-sdk-2.8.0.ebuild create mode 100644 dev-python/sympy/sympy-1.13.0.ebuild create mode 100644 dev-python/uv/uv-0.2.23.ebuild create mode 100644 dev-python/validators/validators-0.31.0.ebuild (limited to 'dev-python') diff --git a/dev-python/amqp/amqp-5.2.0.ebuild b/dev-python/amqp/amqp-5.2.0.ebuild index e84d37dabca5..4e868129bd20 100644 --- a/dev-python/amqp/amqp-5.2.0.ebuild +++ b/dev-python/amqp/amqp-5.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/astroid/astroid-3.2.2-r1.ebuild b/dev-python/astroid/astroid-3.2.2-r1.ebuild new file mode 100644 index 000000000000..30e56689ef22 --- /dev/null +++ b/dev-python/astroid/astroid-3.2.2-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Abstract Syntax Tree for logilab packages" +HOMEPAGE=" + https://github.com/pylint-dev/astroid/ + https://pypi.org/project/astroid/ +" +SRC_URI=" + https://github.com/pylint-dev/astroid/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# Version specified in pyproject.toml +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}] + ' 3.10) +" +# dev-python/regex isn't available for pypy +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/regex[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +distutils_enable_tests pytest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +PATCHES=( + # https://github.com/pylint-dev/astroid/pull/2424 (rebased) + "${FILESDIR}/${P}-py313.patch" +) + +python_test() { + local EPYTEST_DESELECT=( + # no clue why they're broken + tests/test_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part + tests/test_regrtest.py::NonRegressionTests::test_numpy_distutils + # pydantic-2? + tests/brain/test_dataclasses.py::test_pydantic_field + # requires urllib3 with bundled six (skipped with urllib3>=2) + tests/test_modutils.py::test_file_info_from_modpath__SixMetaPathImporter + # hangs + tests/test_nodes.py::AsStringTest::test_recursion_error_trapped + # TODO + tests/test_builder.py::BuilderTest::test_data_build_error_filename + # numpy-2 (https://github.com/pylint-dev/astroid/issues/2442) + tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray + tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray + tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_ndarray + tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_datetime_astype_return + tests/brain/numpy/test_core_numerictypes.py::NumpyBrainCoreNumericTypesTest::test_generic_types_are_subscriptables + tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_return_type + tests/brain/numpy/test_core_umath.py::NumpyBrainCoreUmathTest::test_numpy_core_umath_functions_return_type_tuple + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + tests/test_transforms.py::TestTransforms::test_transform_aborted_if_recursion_limited + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/astroid/astroid-3.2.2.ebuild b/dev-python/astroid/astroid-3.2.2.ebuild index 4040ed2796f5..0aa8e3c8ceb6 100644 --- a/dev-python/astroid/astroid-3.2.2.ebuild +++ b/dev-python/astroid/astroid-3.2.2.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +# py3.13: https://github.com/pylint-dev/astroid/pull/2424 PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) inherit distutils-r1 @@ -58,7 +59,7 @@ python_test() { tests/test_nodes.py::AsStringTest::test_recursion_error_trapped # TODO tests/test_builder.py::BuilderTest::test_data_build_error_filename - # numpy-2 + # numpy-2 (https://github.com/pylint-dev/astroid/issues/2442) tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray tests/brain/numpy/test_core_multiarray.py::BrainNumpyCoreMultiarrayTest::test_numpy_function_calls_inferred_as_ndarray diff --git a/dev-python/astroid/files/astroid-3.2.2-py313.patch b/dev-python/astroid/files/astroid-3.2.2-py313.patch new file mode 100644 index 000000000000..f8addfe9ef7c --- /dev/null +++ b/dev-python/astroid/files/astroid-3.2.2-py313.patch @@ -0,0 +1,177 @@ +diff --git a/astroid/brain/brain_dataclasses.py b/astroid/brain/brain_dataclasses.py +index 88a4385f..743dfe96 100644 +--- a/astroid/brain/brain_dataclasses.py ++++ b/astroid/brain/brain_dataclasses.py +@@ -19,7 +19,7 @@ from typing import Literal, Tuple, Union + + from astroid import bases, context, nodes + from astroid.builder import parse +-from astroid.const import PY39_PLUS, PY310_PLUS ++from astroid.const import PY39_PLUS, PY310_PLUS, PY313_PLUS + from astroid.exceptions import AstroidSyntaxError, InferenceError, UseInferenceDefault + from astroid.inference_tip import inference_tip + from astroid.manager import AstroidManager +@@ -503,6 +503,15 @@ def _looks_like_dataclass_field_call( + return inferred.name == FIELD_NAME and inferred.root().name in DATACLASS_MODULES + + ++def _looks_like_dataclasses(node: nodes.Module) -> bool: ++ return node.qname() == "dataclasses" ++ ++ ++def _resolve_private_replace_to_public(node: nodes.Module) -> None: ++ if "_replace" in node.locals: ++ node.locals["replace"] = node.locals["_replace"] ++ ++ + def _get_field_default(field_call: nodes.Call) -> _FieldDefaultReturn: + """Return a the default value of a field call, and the corresponding keyword + argument name. +@@ -618,6 +627,13 @@ def _infer_instance_from_annotation( + + + def register(manager: AstroidManager) -> None: ++ if PY313_PLUS: ++ manager.register_transform( ++ nodes.Module, ++ _resolve_private_replace_to_public, ++ _looks_like_dataclasses, ++ ) ++ + manager.register_transform( + nodes.ClassDef, dataclass_transform, is_decorated_with_dataclass + ) +diff --git a/astroid/brain/brain_pathlib.py b/astroid/brain/brain_pathlib.py +index 116cd2ee..d0f53132 100644 +--- a/astroid/brain/brain_pathlib.py ++++ b/astroid/brain/brain_pathlib.py +@@ -8,6 +8,7 @@ from collections.abc import Iterator + + from astroid import bases, context, inference_tip, nodes + from astroid.builder import _extract_single_node ++from astroid.const import PY313_PLUS + from astroid.exceptions import InferenceError, UseInferenceDefault + from astroid.manager import AstroidManager + +@@ -27,10 +28,11 @@ def _looks_like_parents_subscript(node: nodes.Subscript) -> bool: + value = next(node.value.infer()) + except (InferenceError, StopIteration): + return False ++ parents = "builtins.tuple" if PY313_PLUS else "pathlib._PathParents" + return ( + isinstance(value, bases.Instance) + and isinstance(value._proxied, nodes.ClassDef) +- and value.qname() == "pathlib._PathParents" ++ and value.qname() == parents + ) + + +diff --git a/astroid/brain/brain_typing.py b/astroid/brain/brain_typing.py +index 9965abc2..7a7c7183 100644 +--- a/astroid/brain/brain_typing.py ++++ b/astroid/brain/brain_typing.py +@@ -15,7 +15,7 @@ from typing import Final + from astroid import context, extract_node, inference_tip + from astroid.brain.helpers import register_module_extender + from astroid.builder import AstroidBuilder, _extract_single_node +-from astroid.const import PY39_PLUS, PY312_PLUS ++from astroid.const import PY39_PLUS, PY312_PLUS, PY313_PLUS + from astroid.exceptions import ( + AstroidSyntaxError, + AttributeInferenceError, +@@ -168,6 +168,15 @@ def infer_typing_attr( + # If typing subscript belongs to an alias handle it separately. + raise UseInferenceDefault + ++ if ( ++ PY313_PLUS ++ and isinstance(value, FunctionDef) ++ and value.qname() == "typing.Annotated" ++ ): ++ # typing.Annotated is a FunctionDef on 3.13+ ++ node._explicit_inference = lambda node, context: iter([value]) ++ return iter([value]) ++ + if isinstance(value, ClassDef) and value.qname() in { + "typing.Generic", + "typing.Annotated", +diff --git a/tests/brain/test_brain.py b/tests/brain/test_brain.py +index b8bc84e3..78b6f8b3 100644 +--- a/tests/brain/test_brain.py ++++ b/tests/brain/test_brain.py +@@ -647,7 +647,7 @@ class TypingBrain(unittest.TestCase): + + @test_utils.require_version(minver="3.9") + def test_typing_annotated_subscriptable(self): +- """Test typing.Annotated is subscriptable with __class_getitem__""" ++ """typing.Annotated is subscriptable with __class_getitem__ below 3.13.""" + node = builder.extract_node( + """ + import typing +@@ -655,8 +655,13 @@ class TypingBrain(unittest.TestCase): + """ + ) + inferred = next(node.infer()) +- assert isinstance(inferred, nodes.ClassDef) +- assert isinstance(inferred.getattr("__class_getitem__")[0], nodes.FunctionDef) ++ if PY313_PLUS: ++ assert isinstance(inferred, nodes.FunctionDef) ++ else: ++ assert isinstance(inferred, nodes.ClassDef) ++ assert isinstance( ++ inferred.getattr("__class_getitem__")[0], nodes.FunctionDef ++ ) + + def test_typing_generic_slots(self): + """Test slots for Generic subclass.""" +diff --git a/tests/brain/test_pathlib.py b/tests/brain/test_pathlib.py +index d935d964..5aea8d37 100644 +--- a/tests/brain/test_pathlib.py ++++ b/tests/brain/test_pathlib.py +@@ -5,7 +5,7 @@ + + import astroid + from astroid import bases +-from astroid.const import PY310_PLUS ++from astroid.const import PY310_PLUS, PY313_PLUS + from astroid.util import Uninferable + + +@@ -23,7 +23,10 @@ def test_inference_parents() -> None: + inferred = name_node.inferred() + assert len(inferred) == 1 + assert isinstance(inferred[0], bases.Instance) +- assert inferred[0].qname() == "pathlib._PathParents" ++ if PY313_PLUS: ++ assert inferred[0].qname() == "builtins.tuple" ++ else: ++ assert inferred[0].qname() == "pathlib._PathParents" + + + def test_inference_parents_subscript_index() -> None: +@@ -40,7 +43,10 @@ def test_inference_parents_subscript_index() -> None: + inferred = path.inferred() + assert len(inferred) == 1 + assert isinstance(inferred[0], bases.Instance) +- assert inferred[0].qname() == "pathlib.Path" ++ if PY313_PLUS: ++ assert inferred[0].qname() == "pathlib._local.Path" ++ else: ++ assert inferred[0].qname() == "pathlib.Path" + + + def test_inference_parents_subscript_slice() -> None: +diff --git a/tests/test_inference.py b/tests/test_inference.py +index ec8fc71b..95f00821 100644 +--- a/tests/test_inference.py ++++ b/tests/test_inference.py +@@ -4458,8 +4458,7 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase): + # and reraise it as a TypeError in Class.getitem + node = extract_node( + """ +- def test(): +- yield ++ def test(): ... + test() + """ + ) diff --git a/dev-python/asttokens/asttokens-2.4.1.ebuild b/dev-python/asttokens/asttokens-2.4.1.ebuild index d51adad9acee..65aa2b12af97 100644 --- a/dev-python/asttokens/asttokens-2.4.1.ebuild +++ b/dev-python/asttokens/asttokens-2.4.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index c484393579a6..ed356634d1bb 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -1,3 +1,4 @@ DIST boto3-1.34.131.gh.tar.gz 822851 BLAKE2B cc4b06ca1785e62314308efb7d9ffa6e10a40fe48bdd3e31f9f12490a57843ad528685d04ea9ec40cf2203acc0ee0a9fb58ee272837c9a637f44c2716f60de7a SHA512 79cd8718c6d84cdcdcadfcde80368addc095770624806eb8cfa981852c2a8ebcc8074533ec8f8e24b01a3aed241afccb6f49fdce250ae07f630d8596931778e3 DIST boto3-1.34.136.gh.tar.gz 826543 BLAKE2B 307705ba777d155772a2dafad775e55d94e17a9e4c2986e48bd8a691c3bc4e433f212e1a59053222927bda42584b2d1d266bc2489f94fd3e4463416c56531d54 SHA512 f2307db517b393164028c17a8073c5baf7f7e3be36c988a90d455cad98a55b7a7e1a6e44584038141047237e81cb495bffaf70747de421ce316bb457e2d168e8 DIST boto3-1.34.140.gh.tar.gz 828290 BLAKE2B 129c0f791ddc07f90d2b9ae2972839a0bcaa393e3a8f843a9bca9ebf699f36290b95d17c3f906f49ae5c9ee8cd15c5de7f9de96572573f12d40c7ada778c7679 SHA512 b052ac336e68577140017b5a45f1787eec985e42d86e25cdafc15c6eadf8652b75bb006cf86ce0a3e0d9f3b657ae2afee41a75f624fb5e277a49f1653a83f64f +DIST boto3-1.34.141.gh.tar.gz 838371 BLAKE2B cf89956f3441e5936ff389fcb81527dc025d064d098ebc035474a7d079daba61972d9cf2a6bcdcbe163187f4f39313fc791dbc2ed3482091d7c27e1d7908cf1b SHA512 fc8d484d8cb7528b7f821f1cf8b22bf6df9be546fd2ac02a3ed697c75c9cc8c31c03c930e4f3a5edc4023b47121ded85df46510ec1f6a7b5e6076dd57641626a diff --git a/dev-python/boto3/boto3-1.34.141.ebuild b/dev-python/boto3/boto3-1.34.141.ebuild new file mode 100644 index 000000000000..509842b2699d --- /dev/null +++ b/dev-python/boto3/boto3-1.34.141.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/botocore-${PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}] +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 9cc647408609..4f27f2e35dd1 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -1,3 +1,4 @@ DIST botocore-1.34.131.gh.tar.gz 13129943 BLAKE2B 916360c6a9526edcfd338718f80556e59d54692aac13f38490e49457edd59016d264a5acbfeb6298af494f09f9c385e16347a9bf7f144c5a11afda2df188aeed SHA512 9bb788ac8e8a2ec7be999acafef88ccbb4e693ccb315efe5655b80cf3f6629eebccbdac6f201550d2f75e476d83c5a800f1add6c71e2fe5b3d503da313f6d3d3 DIST botocore-1.34.136.gh.tar.gz 13151618 BLAKE2B 800b800ff2481335f0defb79c10a4216c8bb107a3369e6a45a9c0a6d8f703209a9e44560ebf859f7fc616498c68e9b0de331478a8b5e2d3b36788bdedb597a0b SHA512 e9a31f6e8e241964fa34df65c8a9f8acaa1e33865eeb8257bf6da16982a3704b8ab66b6f424952ff100944471bb8f40cbdbcc26f72120da2d6033319948de81e DIST botocore-1.34.140.gh.tar.gz 13156596 BLAKE2B 4a264fe767c35dcc65ddbe1eb29529d2576553e4d6f9a3d6c28f249aaa0eab5a0fd150fdbdc1dbd1b83cc1fb6fce8f58c68de43f5dc338cb3feb5b9f76c8f973 SHA512 36c90da9670639ccc10e65ced501a2b16e50b664f11be2686f6fcfc56fa81271f160b27b7ffac513446afe09ef6ed4768818ad8b8ca540571737c47fdf980443 +DIST botocore-1.34.141.gh.tar.gz 13177346 BLAKE2B f62ffb736687cb016d0aa3c00b74c8ffbddadc0f7e47bfed9087872f930fcb85a03da9c3f9c494f21a405afc7c0d5f8e9d50d7c3cefa9c1ea17a97d5f184feff SHA512 91b0f6007e7f030f9ab0c83276884ea993cdaa1f395c51ff4ff3a43e4a8b6f80eed4a93f4f5248984f00b51a44cfe37d51cce70147ed5a578cc0e006c2d0b4dd diff --git a/dev-python/botocore/botocore-1.34.141.ebuild b/dev-python/botocore/botocore-1.34.141.ebuild new file mode 100644 index 000000000000..dc25df1879f6 --- /dev/null +++ b/dev-python/botocore/botocore-1.34.141.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + =dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + # memory use tests, probably fragile + tests/functional/leak/test_resource_leaks.py::TestDoesNotLeakMemory::test_create_single_paginator_memory_constant + tests/functional/leak/test_resource_leaks.py::TestDoesNotLeakMemory::test_create_single_waiter_memory_constant + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/btrfsutil/Manifest b/dev-python/btrfsutil/Manifest index 09b043547505..e81c9c007988 100644 --- a/dev-python/btrfsutil/Manifest +++ b/dev-python/btrfsutil/Manifest @@ -1,4 +1,6 @@ DIST btrfs-progs-v6.8.1.tar.sign 566 BLAKE2B 843eada2b00a2370522edc95d79bcfed88bd24233e647946d4807322550593e4d5f5bb5efa6652c754dd0965dc3e389bc97698a0bd8fc5d0e850bea94de98e72 SHA512 84ebaa6ec27aa5bc87a323f5c6cc82a860fada7311ab8319127de3592294c1076d25959e412f8387d54bad3b8ff838ce39c4db4b04a658b2de2eaa7c976e2b09 DIST btrfs-progs-v6.8.1.tar.xz 2652968 BLAKE2B 34406dedc6d97bd94a498c3bbb424d34a59b8251b37f9a40a87740f96db77780a4cd76c88055b4d9e4f673b4a3621503a6bedb67ceaf20870fb26c10f49b74e0 SHA512 b5f0694e56eecf1956313b3406610c2e22658ace51a636d79efe996780bb0b03fed95e68a8c9a11dd8649958c0e7dbc7417bb479859365d47b52e478f6830d46 +DIST btrfs-progs-v6.9.2.tar.sign 566 BLAKE2B 4cd95496d355444c7d3e582a7e6c05fbb55683008b1585a26f38aef6cceb1afd5e80c9611518d6bd92dc1167798d4012c4bcab2f9bda752c459d94cfa6f3c477 SHA512 3fb04e1894e231abde388a39d2f0c90f43c1a1494622c2158fab9b94bb340e064404bcf96e24d913c60aaf5e06ade42fbb91a479949109b329682bb089f66bf2 +DIST btrfs-progs-v6.9.2.tar.xz 2661684 BLAKE2B 38ab189ac8271ba8d68b74e82569159c671cca1cb946f56ccab28b6b206cb6ee5b330d83afc3536b7e0d7399da3fb01e368809c1ef4a64b843ea88796ebd28bd SHA512 1df9d5456d07a035c38c17795996a4fc621eeaa244ef54383d4387205826d2a6e971910e55031d20bb1baf23193efa7439e110312ffd8471f07aaf8c0baca20a DIST btrfs-progs-v6.9.tar.sign 566 BLAKE2B a2e26047775bcc407b8f5aa8b08b0708a01c84a8cd649e50a935e15d04e2ee917010fc98df0dfb80320ee25a8dbfbbbabbb1f155489f32391544100956ba9636 SHA512 1e8304b3df013a841e82a8656361946914d35f680b5bc547c1599fdd98a75b66e2b1f869c8b043d7532182318c2183e699a9d6101ab4b1544618d2c8a25362e1 DIST btrfs-progs-v6.9.tar.xz 2663052 BLAKE2B 9fad691327b6290b3ba0e1a638576b65e4e4d6c8f32549ea0f10188fdb40028315abf5e330976ff7a5efb6a258d0008e7602ae81ba0339888f474dc056791798 SHA512 e97907b377040371f4742a45345ec720e0cb8e0cf9ee5fdc60618ce2bc76f572725ec32e1a178fd57534f73affd3eeb5e6cfebf23734f04583bbbef858d913b2 diff --git a/dev-python/btrfsutil/btrfsutil-6.8.1.ebuild b/dev-python/btrfsutil/btrfsutil-6.8.1.ebuild index 8532e1a47bf5..710b2f100d02 100644 --- a/dev-python/btrfsutil/btrfsutil-6.8.1.ebuild +++ b/dev-python/btrfsutil/btrfsutil-6.8.1.ebuild @@ -5,6 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools +# py3.13: https://github.com/kdave/btrfs-progs/issues/838 PYTHON_COMPAT=( python3_{8,9,10,11,12} ) VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/dsterba.asc diff --git a/dev-python/btrfsutil/btrfsutil-6.9.2.ebuild b/dev-python/btrfsutil/btrfsutil-6.9.2.ebuild new file mode 100644 index 000000000000..379325febddc --- /dev/null +++ b/dev-python/btrfsutil/btrfsutil-6.9.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +# py3.13: https://github.com/kdave/btrfs-progs/issues/838 +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/dsterba.asc + +inherit distutils-r1 verify-sig + +DESCRIPTION="Library for managing Btrfs filesystems" +HOMEPAGE="https://github.com/kdave/btrfs-progs" + +MY_PN="btrfs-progs" +MY_PV="v${PV/_/-}" +MY_P="${MY_PN}-${MY_PV}" +SRC_URI=" + https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/${MY_PN}/${MY_P}.tar.xz + verify-sig? ( https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/${MY_PN}/${MY_P}.tar.sign ) +" +S="${WORKDIR}/${MY_P}/libbtrfsutil/python" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +DEPEND="~sys-fs/btrfs-progs-${PV}" +RDEPEND="${DEPEND}" + +distutils_enable_tests unittest + +RDEPEND+=" !sys-fs/btrfs-progs[python(-)]" + +src_unpack() { + # Upstream sign the decompressed .tar + if use verify-sig; then + einfo "Unpacking ${MY_P}.tar.xz ..." + verify-sig_verify_detached - "${DISTDIR}"/${MY_P}.tar.sign \ + < <(xz -cd "${DISTDIR}"/${MY_P}.tar.xz | tee >(tar -x)) + assert "Unpack failed" + else + default + fi +} diff --git a/dev-python/btrfsutil/btrfsutil-6.9.ebuild b/dev-python/btrfsutil/btrfsutil-6.9.ebuild index 1ef95d7a0f9b..379325febddc 100644 --- a/dev-python/btrfsutil/btrfsutil-6.9.ebuild +++ b/dev-python/btrfsutil/btrfsutil-6.9.ebuild @@ -5,6 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools +# py3.13: https://github.com/kdave/btrfs-progs/issues/838 PYTHON_COMPAT=( python3_{8,9,10,11,12} ) VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/dsterba.asc diff --git a/dev-python/cfn-lint/Manifest b/dev-python/cfn-lint/Manifest index 2770993d9c70..8000d4689302 100644 --- a/dev-python/cfn-lint/Manifest +++ b/dev-python/cfn-lint/Manifest @@ -4,3 +4,4 @@ DIST cfn_lint-1.3.7.tar.gz 2469769 BLAKE2B aa059688cee5dfc35ea76a0d771e3c3d37078 DIST cfn_lint-1.4.0.tar.gz 2428307 BLAKE2B 43987652c8f12dd24f62f9122b4aebb19edd2573e01d28ba121cc3681b3e04f5a5a3c15fd70f57b6ef9b715e686d191fab0cae11554c3c185ea756d89bce624d SHA512 d07b29794443a5df7465052ab1836a67212f5b6801ba1784e054aef26c1d4f2c923aa82032f7df18b22993334e5a957f8db7d7d9aa600edab91da7d92816339b DIST cfn_lint-1.4.2.tar.gz 2485843 BLAKE2B c2e64721b537ab38cad3c3f6d40c509741fb03f61202d7dace4023f4b5b3a7840b7deb88892d9d282d223756a1e3908680ed166cdf216b0c76abdc29d0749967 SHA512 c9761e253ba77198264eabdd9c4e6a290bb9010533628958853c8d5a0f5f7317338f271588b5cef2ac1667f6ed5e1a6e43a3192aa9ff7202b0ca6db061284818 DIST cfn_lint-1.5.0.tar.gz 2404325 BLAKE2B ba8b87334693da5b55365d47403a51922bc4230abe7b4179941c77e02cea6fff0934539cb83438830d71213ee7b8c6d73c6a49bd4ae6c2fb8093d0a2365b8aee SHA512 76513cebaf4e1d04c5846f40aca4be4ca6838c0f06948c8ce38739ef8d4b310c233f2d0a260ec7db8346ae56f0a5a0d1ab8ed618efdc4e03829840e66f3479f8 +DIST cfn_lint-1.5.1.tar.gz 2341772 BLAKE2B 00c1801a4f632febaf7a63f3a4b75b1cf21411584672096db56cfe497b83c64991aa049764e9be3bfba593d6ec8c5150f1f06e831de52df68ccc5b74fbe1cf46 SHA512 68acff7ad0532c4b3385ee620506c1391b7e9581663c04d5e763d67d265e05cf96f689dd4cfa9bfebdb0f3ac890835d02d1367900d64fa424ba7bc8bf1fb37a8 diff --git a/dev-python/cfn-lint/cfn-lint-1.5.1.ebuild b/dev-python/cfn-lint/cfn-lint-1.5.1.ebuild new file mode 100644 index 000000000000..cb4c0566bc6f --- /dev/null +++ b/dev-python/cfn-lint/cfn-lint-1.5.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="CloudFormation Linter" +HOMEPAGE=" + https://github.com/aws-cloudformation/cfn-lint/ + https://pypi.org/project/cfn-lint/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/aws-sam-translator-1.89.0[${PYTHON_USEDEP}] + dev-python/jsonpatch[${PYTHON_USEDEP}] + >=dev-python/jschema-to-python-1.2.3[${PYTHON_USEDEP}] + =dev-python/jsonschema-3.0[${PYTHON_USEDEP}] + dev-python/junit-xml[${PYTHON_USEDEP}] + dev-python/pyyaml-5.4[${PYTHON_USEDEP}] + >=dev-python/regex-2021.7.1[${PYTHON_USEDEP}] + >=dev-python/sarif-om-1.0.4[${PYTHON_USEDEP}] + >=dev-python/sympy-1.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/defusedxml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin the deps + sed -e 's:~=[0-9.]*::' -i pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO + test/unit/module/test_template.py::TestTemplate::test_build_graph + # requires git repo + test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs + # Internet + test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter + test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3 + # TODO: it looks as if AWS_DEFAULT_REGION didn't work + test/unit/module/core/test_run_cli.py::TestCli::test_bad_config + test/unit/module/core/test_run_cli.py::TestCli::test_override_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_positional_template_parameters + test/unit/module/core/test_run_cli.py::TestCli::test_template_config + # different graphviz version? + test/unit/module/template/test_template.py::TestTemplate::test_build_graph + ) + + # from tox.ini + local -x AWS_DEFAULT_REGION=us-east-1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild b/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild index a58941710328..e53763de2cb4 100644 --- a/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild +++ b/dev-python/cjkwrap/cjkwrap-2.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/deepdiff/Manifest b/dev-python/deepdiff/Manifest index e337b67d2f66..3a6e7680a331 100644 --- a/dev-python/deepdiff/Manifest +++ b/dev-python/deepdiff/Manifest @@ -1,2 +1 @@ -DIST deepdiff-6.7.1.tar.gz 409107 BLAKE2B b52b95f166eb564a5357a5f8f2d8759f9931333b857f5cfc62ac99ffb67d8be9cc3972c76e16d9a28b752983db2903089e2bcc0702e768e07d49b5c7fada4bc7 SHA512 89cf198aeaa392e9609641a9bbc1331c8badf3d4b7cafb1afef00f6f6237524dec72467abf9a9afeba5dc08b8f7e8321827faec5b9a8c27ffff97bfc3fdb0db0 DIST deepdiff-7.0.1.tar.gz 421718 BLAKE2B b6441b9c035db0cc6e4fa83811999e8a83b3faed2ea95bcbdad158486e583ea9d707595d2342f83d0c25f6a5c086a8070c714253e2db09fcaf43de1616d46cda SHA512 facc15beb82744a1b8baf29e0d8f06625e8d4ee4ed7ab5f1b131ad9d44134215651d1c6b19493c83532f612d81752df14aec2dbccc73cb5b994e0bafcaf5bbc2 diff --git a/dev-python/deepdiff/deepdiff-6.7.1.ebuild b/dev-python/deepdiff/deepdiff-6.7.1.ebuild deleted file mode 100644 index f25cbf63a388..000000000000 --- a/dev-python/deepdiff/deepdiff-6.7.1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="A library for comparing dictionaries, iterables, strings and other objects" -HOMEPAGE=" - https://github.com/seperman/deepdiff/ - https://pypi.org/project/deepdiff/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}] - >=dev-python/click-8.1.3[${PYTHON_USEDEP}] -" - -DEPEND=" - test? ( - >=dev-python/jsonpickle-3.0.0[${PYTHON_USEDEP}] - >=dev-python/numpy-1.23.5[${PYTHON_USEDEP}] - dev-python/pydantic[${PYTHON_USEDEP}] - dev-python/python-dateutil[${PYTHON_USEDEP}] - dev-python/tomli-w[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/tomli[${PYTHON_USEDEP}] - ' 3.10) - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/deepdiff/deepdiff-7.0.1.ebuild b/dev-python/deepdiff/deepdiff-7.0.1.ebuild index 50f222a66f36..97a1dd4f47ae 100644 --- a/dev-python/deepdiff/deepdiff-7.0.1.ebuild +++ b/dev-python/deepdiff/deepdiff-7.0.1.ebuild @@ -37,3 +37,19 @@ DEPEND=" " distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + # changed exception message + "tests/test_command.py::TestCommands::test_diff_command[t1_corrupt.json-t2.json-Expecting property name enclosed in double quotes-1]" + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/desktop-notifier/Manifest b/dev-python/desktop-notifier/Manifest index 7dfe129a89c6..7e296cfdd2ab 100644 --- a/dev-python/desktop-notifier/Manifest +++ b/dev-python/desktop-notifier/Manifest @@ -1,2 +1,2 @@ DIST desktop_notifier-4.0.0.tar.gz 29934 BLAKE2B da9944edd6577f36116a03a6620a5a8ec68071954df4ac31a96af148608a9c6d990805f025b44925a943274bc961d4412690dde7876520f9a42bca0b6b008f9b SHA512 a96f96d6cbf7876bebcc9eb8a33d348eb5ed8f2a86fd5a9761105684e0267d9496904bb38f54caba39d29dfc23e00530655669d8e849607e066c85512f67c045 -DIST desktop_notifier-5.0.0.tar.gz 32685 BLAKE2B 15f57cf1307fae127317da5590cdf7956a47741776ffc82d830ef634bea2ed059b8e7a392a214240fee6ba2c5073b2630cb4479d2fc3239a8bb92aa2146dd640 SHA512 d3eba090863e9c236e778680e9866c65b9fe584bd238e3819f4ae12cab570847708d70bfab81cd0e928a3945d5f339bf8d275fbf5709fbbe36f2a16a9544baca +DIST desktop_notifier-5.0.1.tar.gz 32731 BLAKE2B 1c1d567badc50b60bac1743cf0ab8e2dbb44d0b4de0fb5f5c82dc958bbd558637953f96a7e5a5920fe80be0007ef814ae2e15d1c3eb19503a2ac784f65813583 SHA512 72b9a928817bb0834801842d9d5f065ec704b3c64c0ca0cd2457f08e8f37902f94a6bb06070eb83bd3414f613c14c11152fed45ff4061ab652c89780aa95046e diff --git a/dev-python/desktop-notifier/desktop-notifier-5.0.0.ebuild b/dev-python/desktop-notifier/desktop-notifier-5.0.0.ebuild deleted file mode 100644 index d5389697be01..000000000000 --- a/dev-python/desktop-notifier/desktop-notifier-5.0.0.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2021-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 pypi - -DESCRIPTION="desktop-notifier is a Python library for cross-platform desktop notifications" -HOMEPAGE=" - https://desktop-notifier.readthedocs.io - https://pypi.org/project/desktop-notifier/ - https://github.com/samschott/desktop-notifier -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/dbus-next[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/build[${PYTHON_USEDEP}] -" - -# Tests on pypi are incomplete -# Tests on gh don't work -RESTRICT="test" diff --git a/dev-python/desktop-notifier/desktop-notifier-5.0.1.ebuild b/dev-python/desktop-notifier/desktop-notifier-5.0.1.ebuild new file mode 100644 index 000000000000..d5389697be01 --- /dev/null +++ b/dev-python/desktop-notifier/desktop-notifier-5.0.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 pypi + +DESCRIPTION="desktop-notifier is a Python library for cross-platform desktop notifications" +HOMEPAGE=" + https://desktop-notifier.readthedocs.io + https://pypi.org/project/desktop-notifier/ + https://github.com/samschott/desktop-notifier +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/dbus-next[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/build[${PYTHON_USEDEP}] +" + +# Tests on pypi are incomplete +# Tests on gh don't work +RESTRICT="test" diff --git a/dev-python/dill/dill-0.3.8-r1.ebuild b/dev-python/dill/dill-0.3.8-r1.ebuild new file mode 100644 index 000000000000..d73dbafb19b5 --- /dev/null +++ b/dev-python/dill/dill-0.3.8-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +# py3.13: https://github.com/uqfoundation/dill/issues/654 +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Serialize all of Python (almost)" +HOMEPAGE=" + https://github.com/uqfoundation/dill/ + https://pypi.org/project/dill/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + !!>=dev-python/numpy-2[${PYTHON_USEDEP}] +" + +python_test() { + "${EPYTHON}" -m dill.tests || die +} diff --git a/dev-python/dill/dill-0.3.8-r2.ebuild b/dev-python/dill/dill-0.3.8-r2.ebuild new file mode 100644 index 000000000000..605d29ca269c --- /dev/null +++ b/dev-python/dill/dill-0.3.8-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Serialize all of Python (almost)" +HOMEPAGE=" + https://github.com/uqfoundation/dill/ + https://pypi.org/project/dill/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +src_prepare() { + distutils-r1_src_prepare + + # numpy support broken: https://github.com/uqfoundation/dill/issues/667 + sed -i -e 's:import numpy:raise ImportError:' dill/__diff.py || die +} + +python_test() { + # disables a test broken under Python 3.13 + # https://github.com/uqfoundation/dill/issues/668 + local -x COVERAGE=1 + "${EPYTHON}" -m dill.tests || die +} diff --git a/dev-python/dill/dill-0.3.8.ebuild b/dev-python/dill/dill-0.3.8.ebuild deleted file mode 100644 index cb69f6cd402c..000000000000 --- a/dev-python/dill/dill-0.3.8.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -# py3.13: https://github.com/uqfoundation/dill/issues/654 -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) - -inherit distutils-r1 pypi - -DESCRIPTION="Serialize all of Python (almost)" -HOMEPAGE=" - https://github.com/uqfoundation/dill/ - https://pypi.org/project/dill/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" - -python_test() { - "${EPYTHON}" -m dill.tests || die -} diff --git a/dev-python/dissononce/dissononce-0.34.3-r3.ebuild b/dev-python/dissononce/dissononce-0.34.3-r3.ebuild index bc7c39bd0bfd..f386c9529513 100644 --- a/dev-python/dissononce/dissononce-0.34.3-r3.ebuild +++ b/dev-python/dissononce/dissononce-0.34.3-r3.ebuild @@ -9,8 +9,14 @@ PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 DESCRIPTION="A python implementation for Noise Protocol Framework" -HOMEPAGE="https://github.com/tgalal/dissononce" -SRC_URI="https://github.com/tgalal/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +HOMEPAGE=" + https://github.com/tgalal/dissononce/ + https://pypi.org/project/dissononce/ +" +SRC_URI=" + https://github.com/tgalal/dissononce/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" @@ -21,10 +27,13 @@ RDEPEND=" dev-python/cryptography[${PYTHON_USEDEP}] dev-python/transitions[${PYTHON_USEDEP}] " +BDEPEND=" + ${RDEPEND} +" -DEPEND="${RDEPEND}" - -PATCHES=( "${FILESDIR}/${P}-fix-test-requirements.patch" ) +PATCHES=( + "${FILESDIR}/${P}-fix-test-requirements.patch" +) distutils_enable_tests pytest diff --git a/dev-python/django-cacheops/django-cacheops-7.0.2.ebuild b/dev-python/django-cacheops/django-cacheops-7.0.2.ebuild index 69019024ba1f..34c6f6942483 100644 --- a/dev-python/django-cacheops/django-cacheops-7.0.2.ebuild +++ b/dev-python/django-cacheops/django-cacheops-7.0.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/ensurepip-pip/Manifest b/dev-python/ensurepip-pip/Manifest index 5b85d0e3bf20..998be6c39d43 100644 --- a/dev-python/ensurepip-pip/Manifest +++ b/dev-python/ensurepip-pip/Manifest @@ -1,3 +1,4 @@ DIST pip-24.0-py3-none-any.whl 2110226 BLAKE2B 6a0c8c9796cd574ef1d709de40a8530a15e50158143e332b79e5ad3edceda6ce93c5ef4df49b169062598618dcc6967c2115ac2c10b05abf345318204f1eeffc SHA512 5d7462a584105bccaa9cf376f5a8c5827ead099c813c8af7392d478a4398f373d9e8cac7bbad2db51b335411ab966b21e119b1b1234c9a7ab70c6ddfc9306da6 DIST pip-24.1-py3-none-any.whl 1823006 BLAKE2B ca5282b1100243cc4e391ce30d5ae7d4978987e46323b7e151c87457c4ab762f909c88ae3cb72015d09bf7c1243ddb6ad791e991093713431961962fc6fdde83 SHA512 84e8318896294e5750f30a3fa55833e5e5c802066091802e05ff94fe139c825f3fe0fb5014b899f0afd844ad1129e8d04b9fedd74a7f46a1c248dac546ab16f8 DIST pip-24.1.1-py3-none-any.whl 1824282 BLAKE2B dc8b4938002bc8ededf5f3fb5f47492b529cb846f145308d5392c04778417f7e85527064e791c4dec4bfe6fc407bcc4d7ad26ff84e0f4c436dce5db8d9ec1f25 SHA512 591c0862ca7469a00a4a0220ca9acbd4834394abb0abcd44bd071a1b392b46029d618c2219e327cd43bacdd5d62f0f47d88454d60d4028f0ba7cd02ce3e648bf +DIST pip-24.1.2-py3-none-any.whl 1824406 BLAKE2B b3e951f444bc93cf64a35acbef5363f7e44607f567f73eff886f5a14bd97fe5b18aa5a8de01b899601847bccee24318843b41c35cd484e758ffb4c11460b458f SHA512 bc8ed36bc9e618b7e299d412d07472b46968ba6485dd1d7eee4e8583996aa29cb268ff5d3114a6e5efeae9f6407c9f9066a0e4f5c2a0be76e6cd234b85cc2bec diff --git a/dev-python/ensurepip-pip/ensurepip-pip-24.1.2.ebuild b/dev-python/ensurepip-pip/ensurepip-pip-24.1.2.ebuild new file mode 100644 index 000000000000..85e9351f85b0 --- /dev/null +++ b/dev-python/ensurepip-pip/ensurepip-pip-24.1.2.ebuild @@ -0,0 +1,24 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pypi + +DESCRIPTION="Shared pip wheel for ensurepip Python module" +HOMEPAGE="https://pypi.org/project/pip/" +SRC_URI="$(pypi_wheel_url "${PN#ensurepip-}")" +S=${DISTDIR} + +LICENSE="Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MIT MPL-2.0 PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND=" + !py_recursion_depth = tstate->py_recursion_limit - tstate->py_recursion_remaining; +- this->c_recursion_depth = C_RECURSION_LIMIT - tstate->c_recursion_remaining; ++ this->c_recursion_depth = Py_C_RECURSION_LIMIT - tstate->c_recursion_remaining; + #else // not 312 + this->recursion_depth = tstate->recursion_limit - tstate->recursion_remaining; + #endif // GREENLET_PY312 ++ #if GREENLET_PY313 ++ this->current_frame = tstate->current_frame; ++ #elif GREENLET_USE_CFRAME + this->current_frame = tstate->cframe->current_frame; ++ #endif + this->datastack_chunk = tstate->datastack_chunk; + this->datastack_top = tstate->datastack_top; + this->datastack_limit = tstate->datastack_limit; +@@ -143,7 +151,9 @@ void PythonState::operator<<(const PyThreadState *const tstate) noexcept + Py_XDECREF(frame); // PyThreadState_GetFrame gives us a new + // reference. + this->_top_frame.steal(frame); +- #if GREENLET_PY312 ++ #if GREENLET_PY313 ++ this->delete_later = Py_XNewRef(tstate->delete_later); ++ #elif GREENLET_PY312 + this->trash_delete_nesting = tstate->trash.delete_nesting; + #else // not 312 + this->trash_delete_nesting = tstate->trash_delete_nesting; +@@ -199,17 +209,25 @@ void PythonState::operator>>(PyThreadState *const tstate) noexcept + #if GREENLET_PY311 + #if GREENLET_PY312 + tstate->py_recursion_remaining = tstate->py_recursion_limit - this->py_recursion_depth; +- tstate->c_recursion_remaining = C_RECURSION_LIMIT - this->c_recursion_depth; ++ tstate->c_recursion_remaining = Py_C_RECURSION_LIMIT - this->c_recursion_depth; + this->unexpose_frames(); + #else // \/ 3.11 + tstate->recursion_remaining = tstate->recursion_limit - this->recursion_depth; + #endif // GREENLET_PY312 ++ #if GREENLET_PY313 ++ tstate->current_frame = this->current_frame; ++ #elif GREENLET_USE_CFRAME + tstate->cframe->current_frame = this->current_frame; ++ #endif + tstate->datastack_chunk = this->datastack_chunk; + tstate->datastack_top = this->datastack_top; + tstate->datastack_limit = this->datastack_limit; + this->_top_frame.relinquish_ownership(); +- #if GREENLET_PY312 ++ #if GREENLET_PY313 ++ Py_XDECREF(tstate->delete_later); ++ tstate->delete_later = this->delete_later; ++ Py_CLEAR(this->delete_later); ++ #elif GREENLET_PY312 + tstate->trash.delete_nesting = this->trash_delete_nesting; + #else // not 3.12 + tstate->trash_delete_nesting = this->trash_delete_nesting; +@@ -238,7 +256,7 @@ void PythonState::set_initial_state(const PyThreadState* const tstate) noexcept + #if GREENLET_PY312 + this->py_recursion_depth = tstate->py_recursion_limit - tstate->py_recursion_remaining; + // XXX: TODO: Comment from a reviewer: +- // Should this be ``C_RECURSION_LIMIT - tstate->c_recursion_remaining``? ++ // Should this be ``Py_C_RECURSION_LIMIT - tstate->c_recursion_remaining``? + // But to me it looks more like that might not be the right + // initialization either? + this->c_recursion_depth = tstate->py_recursion_limit - tstate->py_recursion_remaining; +diff --git a/src/greenlet/greenlet.cpp b/src/greenlet/greenlet.cpp +index 5a9818e8..dfc748a8 100644 +--- a/src/greenlet/greenlet.cpp ++++ b/src/greenlet/greenlet.cpp +@@ -1328,6 +1328,7 @@ mod_enable_optional_cleanup(PyObject* UNUSED(module), PyObject* flag) + Py_RETURN_NONE; + } + ++#if !GREENLET_PY313 + PyDoc_STRVAR(mod_get_tstate_trash_delete_nesting_doc, + "get_tstate_trash_delete_nesting() -> Integer\n" + "\n" +@@ -1343,6 +1344,7 @@ mod_get_tstate_trash_delete_nesting(PyObject* UNUSED(module)) + return PyLong_FromLong(tstate->trash_delete_nesting); + #endif + } ++#endif + + static PyMethodDef GreenMethods[] = { + {"getcurrent", +@@ -1356,7 +1358,9 @@ static PyMethodDef GreenMethods[] = { + {"get_total_main_greenlets", (PyCFunction)mod_get_total_main_greenlets, METH_NOARGS, mod_get_total_main_greenlets_doc}, + {"get_clocks_used_doing_optional_cleanup", (PyCFunction)mod_get_clocks_used_doing_optional_cleanup, METH_NOARGS, mod_get_clocks_used_doing_optional_cleanup_doc}, + {"enable_optional_cleanup", (PyCFunction)mod_enable_optional_cleanup, METH_O, mod_enable_optional_cleanup_doc}, ++#if !GREENLET_PY313 + {"get_tstate_trash_delete_nesting", (PyCFunction)mod_get_tstate_trash_delete_nesting, METH_NOARGS, mod_get_tstate_trash_delete_nesting_doc}, ++#endif + {NULL, NULL} /* Sentinel */ + }; + +diff --git a/src/greenlet/greenlet_cpython_compat.hpp b/src/greenlet/greenlet_cpython_compat.hpp +index cdc1617f..ce5fd882 100644 +--- a/src/greenlet/greenlet_cpython_compat.hpp ++++ b/src/greenlet/greenlet_cpython_compat.hpp +@@ -12,19 +12,24 @@ + + #if PY_VERSION_HEX >= 0x30A00B1 + # define GREENLET_PY310 1 ++#else ++# define GREENLET_PY310 0 ++#endif ++ + /* + Python 3.10 beta 1 changed tstate->use_tracing to a nested cframe member. + See https://github.com/python/cpython/pull/25276 + We have to save and restore this as well. ++ ++Python 3.13 removed PyThreadState.cframe (GH-108035). + */ ++#if GREENLET_PY310 && PY_VERSION_HEX < 0x30D0000 + # define GREENLET_USE_CFRAME 1 + #else + # define GREENLET_USE_CFRAME 0 +-# define GREENLET_PY310 0 + #endif + + +- + #if PY_VERSION_HEX >= 0x30B00A4 + /* + Greenlet won't compile on anything older than Python 3.11 alpha 4 (see +@@ -50,6 +55,12 @@ Greenlet won't compile on anything older than Python 3.11 alpha 4 (see + # define GREENLET_PY312 0 + #endif + ++#if PY_VERSION_HEX >= 0x30D0000 ++# define GREENLET_PY313 1 ++#else ++# define GREENLET_PY313 0 ++#endif ++ + #ifndef Py_SET_REFCNT + /* Py_REFCNT and Py_SIZE macros are converted to functions + https://bugs.python.org/issue39573 */ +@@ -124,4 +135,8 @@ static inline void PyThreadState_LeaveTracing(PyThreadState *tstate) + } + #endif + ++#if !defined(Py_C_RECURSION_LIMIT) && defined(C_RECURSION_LIMIT) ++# define Py_C_RECURSION_LIMIT C_RECURSION_LIMIT ++#endif ++ + #endif /* GREENLET_CPYTHON_COMPAT_H */ +diff --git a/src/greenlet/greenlet_greenlet.hpp b/src/greenlet/greenlet_greenlet.hpp +index d52ce1fd..fbfdfbfc 100644 +--- a/src/greenlet/greenlet_greenlet.hpp ++++ b/src/greenlet/greenlet_greenlet.hpp +@@ -23,6 +23,7 @@ using greenlet::refs::BorrowedGreenlet; + #endif + + #if GREENLET_PY312 ++# define Py_BUILD_CORE + # include "internal/pycore_frame.h" + #endif + +@@ -110,7 +111,11 @@ namespace greenlet + #else + int recursion_depth; + #endif ++#if GREENLET_PY313 ++ PyObject *delete_later; ++#else + int trash_delete_nesting; ++#endif + #if GREENLET_PY311 + _PyInterpreterFrame* current_frame; + _PyStackChunk* datastack_chunk; +diff --git a/src/greenlet/tests/test_greenlet.py b/src/greenlet/tests/test_greenlet.py +index 51849cd6..259707ae 100644 +--- a/src/greenlet/tests/test_greenlet.py ++++ b/src/greenlet/tests/test_greenlet.py +@@ -471,7 +471,9 @@ def creator(): + # Unfortunately, this doesn't actually clear the references, they're in the + # fast local array. + if not wait_for_cleanup: +- result[0].gr_frame.f_locals.clear() ++ # f_locals has no clear method in Python 3.13 ++ if hasattr(result[0].gr_frame.f_locals, 'clear'): ++ result[0].gr_frame.f_locals.clear() + else: + self.assertIsNone(result[0].gr_frame) + +diff --git a/src/greenlet/tests/test_greenlet_trash.py b/src/greenlet/tests/test_greenlet_trash.py +index 8d9716e9..2bce8fd0 100644 +--- a/src/greenlet/tests/test_greenlet_trash.py ++++ b/src/greenlet/tests/test_greenlet_trash.py +@@ -29,8 +29,17 @@ + + import unittest + ++try: ++ from greenlet._greenlet import get_tstate_trash_delete_nesting ++except ImportError: ++ get_tstate_trash_delete_nesting = None ++ ++ + class TestTrashCanReEnter(unittest.TestCase): + ++ # Python 3.13 has not "trash delete nesting" anymore (but "delete later") ++ @unittest.skipIf(get_tstate_trash_delete_nesting is None, ++ 'need get_tstate_trash_delete_nesting()') + def test_it(self): + # Try several times to trigger it, because it isn't 100% + # reliable. diff --git a/dev-python/greenlet/greenlet-3.0.3-r1.ebuild b/dev-python/greenlet/greenlet-3.0.3-r1.ebuild new file mode 100644 index 000000000000..b780cf98e1a0 --- /dev/null +++ b/dev-python/greenlet/greenlet-3.0.3-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +# Note: greenlet is built-in in pypy +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Lightweight in-process concurrent programming" +HOMEPAGE=" + https://greenlet.readthedocs.io/en/latest/ + https://github.com/python-greenlet/greenlet/ + https://pypi.org/project/greenlet/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 -hppa -ia64 ~m68k ~mips ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +BDEPEND=" + test? ( + dev-python/objgraph[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs \ + dev-python/furo +distutils_enable_tests unittest + +src_prepare() { + local PATCHES=( + # https://github.com/python-greenlet/greenlet/pull/396 + "${FILESDIR}/${P}-py313.patch" + ) + + distutils-r1_src_prepare + + # patch cflag manipulations out + sed -i -e 's:global_compile_args[.]append.*:pass:' setup.py || die + # broken assertions on py3.12+ + # https://github.com/python-greenlet/greenlet/issues/368 + sed -e 's:test_trace_events_multiple_greenlets_switching:_&: ' \ + -i src/greenlet/tests/test_tracing.py || die +} + +python_test() { + eunittest greenlet.tests +} diff --git a/dev-python/humanize/Manifest b/dev-python/humanize/Manifest index 1a4751b20e78..c62b2f90136b 100644 --- a/dev-python/humanize/Manifest +++ b/dev-python/humanize/Manifest @@ -1 +1,2 @@ +DIST humanize-4.10.0.tar.gz 79192 BLAKE2B 398fe1eb3b39cfc93096f7e12f057959f3e336721fe05be4bfe0bf16d3470a04a33b978c6e4ffb73c58bfb1032f9ec48b29397ef51073aa881b036427e73eb10 SHA512 973fe7aecffcc7c9b56426b5a143402a97833122e63362115ae50318c909188bbe872fbfdfaa3015298ecd44c6ebc4223d9abd202c47622066b730908a6dda44 DIST humanize-4.9.0.tar.gz 78465 BLAKE2B bb13199f7ed9b833891e1e5f166dce33e167224c5fb75ab33130a551680e802aa347f5e19cd1162caa79917af6e0acbbb36226d5051a9d4eef07bc554ba0e19e SHA512 64238f6717302cec4cac853fd2813647132eb4f6cd73cc61fd43346577cd42bbc2cf5a7345910393cd9a4e9c2b5e949a50c6259b0bd8254a05e08d0d8d70a5d5 diff --git a/dev-python/humanize/humanize-4.10.0.ebuild b/dev-python/humanize/humanize-4.10.0.ebuild new file mode 100644 index 000000000000..4af13facc61a --- /dev/null +++ b/dev-python/humanize/humanize-4.10.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Common humanization utilities" +HOMEPAGE=" + https://github.com/python-humanize/humanize/ + https://pypi.org/project/humanize/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -e '/coverage/d' -i pyproject.toml || die + distutils-r1_src_prepare +} diff --git a/dev-python/jedi/Manifest b/dev-python/jedi/Manifest index 9ac00c7dec03..292e876933b4 100644 --- a/dev-python/jedi/Manifest +++ b/dev-python/jedi/Manifest @@ -1,3 +1,4 @@ DIST django-stubs-fd057010f6cbf176f57d1099e82be46d39b99cb9.tar.gz 183312 BLAKE2B a68f6139903f5001db994ee0d881f40ab74932e81c3e2c3a0c22dc56e6be681d0fb42ce837603b21e4d0d448ccb25884ef0f69039305f309e82603267cee9f6a SHA512 506322c132f94e6a1e88cdbde6027a566387731fa6ad59934f95c3511f49d90eff2a3138363811be648b096407d418cd1f801df0bc35b1e464ef181e4076ada1 DIST jedi-0.19.1.gh.tar.gz 472341 BLAKE2B 34238969acb5b6e6db0307d1d18c1c6f3cf666c00e590c5f2338584526135b75e56a3b4e0cef63dc52fd96db4078cb4b82e0652a9ca092c99f4da8448bf65d1f SHA512 aaa2684b787ec99d2477755d7b6ef4ec727fd244bb55178cf3a9e78b50f660c6fab7b88d09e3d02e76f17e656cd1cdb6078282b63516e5e52a1852a821540105 +DIST jedi-82d1902f382ddac5b0e6647646b72f28a3181ec3.gh.tar.gz 475311 BLAKE2B bb525951a57fd979f4b5dfc49c536b79e3713deb479062abaf668cadc005da98b3d921c48fd5e2d2e8a6ab62dbcae76fcf9cb9e7e26f94cb7d95c363e89c5b5b SHA512 bcfd6b676370363cd9568cf25775bc8a5b0362b04247e2cf5cba828f2578f4b16bb1550fd3bcf227bc6b80601b3de3074d32ea59a1c97673787dad098cc8afbe DIST typeshed-ae9d4f4b21bb5e1239816c301da7b1ea904b44c3.tar.gz 602044 BLAKE2B 53298918a7e9a1163e76d4c70ad2a2117ee90b49329aa82d82b2aaaeaf000c971872f83ed283af6dc4be068b813876760c8b1b4acb4131865572a4aed3ea9230 SHA512 b3b9da66b6c6e03e0b262b3262df31215a5e080468ca9ebf4332ed53d715cd3956db7067fad3ec267042ff704f81ac665c703ef2fd0c5b445d440bd8e52bf1aa diff --git a/dev-python/jedi/jedi-0.19.1_p20240706.ebuild b/dev-python/jedi/jedi-0.19.1_p20240706.ebuild new file mode 100644 index 000000000000..93c711357bf9 --- /dev/null +++ b/dev-python/jedi/jedi-0.19.1_p20240706.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +TYPESHED_P="typeshed-ae9d4f4b21bb5e1239816c301da7b1ea904b44c3" +DJANGO_STUBS_P="django-stubs-fd057010f6cbf176f57d1099e82be46d39b99cb9" +EGIT_COMMIT="82d1902f382ddac5b0e6647646b72f28a3181ec3" +MY_P="${PN}-${EGIT_COMMIT}" + +DESCRIPTION="Autocompletion library for Python" +HOMEPAGE=" + https://github.com/davidhalter/jedi/ + https://pypi.org/project/jedi/ +" +SRC_URI=" + https://github.com/davidhalter/jedi/archive/${EGIT_COMMIT}.tar.gz + -> ${MY_P}.gh.tar.gz + https://github.com/davidhalter/typeshed/archive/${TYPESHED_P#typeshed-}.tar.gz + -> ${TYPESHED_P}.tar.gz + https://github.com/davidhalter/django-stubs/archive/${DJANGO_STUBS_P#django-stubs-}.tar.gz + -> ${DJANGO_STUBS_P/v/}.tar.gz +" +S="${WORKDIR}"/${MY_P} + +LICENSE=" + MIT + test? ( Apache-2.0 ) +" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + =dev-python/parso-0.8.3[${PYTHON_USEDEP}] +" + +# RDEPEND needed because of an import jedi inside conf.py +distutils_enable_sphinx docs \ + dev-python/parso \ + dev-python/sphinx-rtd-theme +distutils_enable_tests pytest + +python_prepare_all() { + # upstream includes these as submodules ... + rmdir "${S}"/jedi/third_party/{django-stubs,typeshed} || die + mv "${WORKDIR}/${DJANGO_STUBS_P/v/}" \ + "${S}/jedi/third_party/django-stubs" || die + mv "${WORKDIR}/${TYPESHED_P}" \ + "${S}/jedi/third_party/typeshed" || die + + # test_complete_expanduser relies on $HOME not being empty + > "${HOME}"/somefile || die + + distutils-r1_python_prepare_all +} + +python_test() { + local EPYTEST_DESELECT=( + # fragile + test/test_speed.py + # assumes pristine virtualenv + test/test_inference/test_imports.py::test_os_issues + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + test/test_api/test_api.py::test_preload_modules + test/test_api/test_interpreter.py::test_param_infer_default + test/test_inference/test_compiled.py::test_next_docstr + test/test_inference/test_compiled.py::test_time_docstring + ) + ;; + esac + + # some plugin breaks case-insensitivity on completions + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # django and pytest tests are very version dependent + epytest -o addopts= -k "not django and not pytest" +} diff --git a/dev-python/jsonschema/Manifest b/dev-python/jsonschema/Manifest index be3aeb25184f..c2e9a5c8ec07 100644 --- a/dev-python/jsonschema/Manifest +++ b/dev-python/jsonschema/Manifest @@ -1 +1,2 @@ DIST jsonschema-4.22.0.tar.gz 325490 BLAKE2B aa0fcd9cb35ffe93d9e7ae940f9fbfc6e20656b09bdec91163ee7120b3495210522c2354dd3e74b33274f61bd9364b6b33f9e6482bac58b2ee0c6dd4bba3658e SHA512 72c9ffd1edf8820696d831062cfae2d38729935b32d12b7fa5171fefa3d38d495b588152c07224a5c9d1f4b9f97bd9b2aa7919d3d4ecdae0ba396e60e954b1c5 +DIST jsonschema-4.23.0.tar.gz 325778 BLAKE2B ccfcfa2b8f27e1d1f3a7d282f4701b04e3711bb57853f5f252ea286bb240395814c33219fff1b2bea661f462d1fc20fcf7d919fe85593d2e1dd89ac289f18ced SHA512 3bc3f7c4bb22dc0233bf99ca5cb8e22002cc3b097c7ae8a78c83ae106e4791dcaca228a6830074b1c42312889374b66c1f5390932768110a1e453babd7302bf9 diff --git a/dev-python/jsonschema/jsonschema-4.23.0.ebuild b/dev-python/jsonschema/jsonschema-4.23.0.ebuild new file mode 100644 index 000000000000..ed30a83848b1 --- /dev/null +++ b/dev-python/jsonschema/jsonschema-4.23.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="An implementation of JSON-Schema validation for Python" +HOMEPAGE=" + https://pypi.org/project/jsonschema/ + https://github.com/python-jsonschema/jsonschema/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/attrs-22.2.0[${PYTHON_USEDEP}] + >=dev-python/jsonschema-specifications-2023.03.6[${PYTHON_USEDEP}] + >=dev-python/referencing-0.28.4[${PYTHON_USEDEP}] + >=dev-python/rpds-py-0.7.1[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + test? ( + !!dev-python/shiboken6 + ) +" + +# formatter deps +RDEPEND+=" + dev-python/fqdn[${PYTHON_USEDEP}] + dev-python/idna[${PYTHON_USEDEP}] + dev-python/isoduration[${PYTHON_USEDEP}] + >=dev-python/jsonpointer-1.13[${PYTHON_USEDEP}] + dev-python/rfc3339-validator[${PYTHON_USEDEP}] + dev-python/rfc3986-validator[${PYTHON_USEDEP}] + dev-python/rfc3987[${PYTHON_USEDEP}] + dev-python/uri-template[${PYTHON_USEDEP}] + >=dev-python/webcolors-24.6.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # requires pip, does not make much sense for the users + jsonschema/tests/test_cli.py::TestCLIIntegration::test_license + # fragile warning tests + jsonschema/tests/test_deprecations.py + # wtf? + jsonschema/tests/test_jsonschema_test_suite.py::test_suite_bug +) diff --git a/dev-python/lmfit/files/lmfit-1.3.1-np2.patch b/dev-python/lmfit/files/lmfit-1.3.1-np2.patch new file mode 100644 index 000000000000..6b6bbb2308cf --- /dev/null +++ b/dev-python/lmfit/files/lmfit-1.3.1-np2.patch @@ -0,0 +1,39 @@ +diff --git a/lmfit/parameter.py b/lmfit/parameter.py +index ca9ccc72..a7ec9a65 100644 +--- a/lmfit/parameter.py ++++ b/lmfit/parameter.py +@@ -181,9 +181,8 @@ def __reduce__(self): + params = [self[k] for k in self] + + # find the symbols from _asteval.symtable, that need to be remembered. +- sym_unique = self._asteval.user_defined_symbols() + unique_symbols = {key: deepcopy(self._asteval.symtable[key]) +- for key in sym_unique} ++ for key in self._asteval.user_defined_symbols()} + + return self.__class__, (), {'unique_symbols': unique_symbols, + 'params': params} +@@ -567,9 +566,8 @@ def dumps(self, **kws): + + """ + params = [p.__getstate__() for p in self.values()] +- sym_unique = self._asteval.user_defined_symbols() + unique_symbols = {key: encode4js(deepcopy(self._asteval.symtable[key])) +- for key in sym_unique} ++ for key in self._asteval.user_defined_symbols()} + return json.dumps({'unique_symbols': unique_symbols, + 'params': params}, **kws) + +diff --git a/tests/test_model.py b/tests/test_model.py +index 396ea0b1..24dfbfcd 100644 +--- a/tests/test_model.py ++++ b/tests/test_model.py +@@ -900,7 +900,7 @@ def test_independent_var_parsing(self): + yatan = stepmod2.eval(pars, x=x) + + assert (yatan-yline).std() > 0.1 +- assert (yatan-yline).ptp() > 1.0 ++ assert np.ptp(yatan-yline) > 1.0 + + voigtmod = Model(voigt) + assert 'x' in voigtmod.independent_vars diff --git a/dev-python/lmfit/lmfit-1.3.1-r1.ebuild b/dev-python/lmfit/lmfit-1.3.1-r1.ebuild new file mode 100644 index 000000000000..232601b5a845 --- /dev/null +++ b/dev-python/lmfit/lmfit-1.3.1-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Non-Linear Least-Squares Minimization and Curve-Fitting for Python" +HOMEPAGE=" + https://lmfit.github.io/lmfit-py/ + https://github.com/lmfit/lmfit-py/ + https://pypi.org/project/lmfit/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/asteval-1.0.0[${PYTHON_USEDEP}] + >=dev-python/dill-0.3.4[${PYTHON_USEDEP}] + >=dev-python/numpy-1.19[${PYTHON_USEDEP}] + >=dev-python/scipy-1.6[${PYTHON_USEDEP}] + >=dev-python/uncertainties-3.1.4[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-6.2[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/lmfit/lmfit-py/pull/959 + "${FILESDIR}/${P}-np2.patch" +) + +python_test() { + epytest -o addopts= +} diff --git a/dev-python/nanobind/Manifest b/dev-python/nanobind/Manifest new file mode 100644 index 000000000000..779583f66f8b --- /dev/null +++ b/dev-python/nanobind/Manifest @@ -0,0 +1 @@ +DIST nanobind-2.0.0.gh.tar.gz 842956 BLAKE2B 82a2b44d904a2bfc88538d3bac6d5d96b473bcca2ff98647f9edd656a1d20fae324fcf334b848f861723aae666690b6b17ee626dede89bac6b140e9ef8cd01fe SHA512 1bafbf6b18c9b65b5ecb3bbf23a164b17ee52ef4f053a00de986a35e17e662422b54cea1c145f83ee8a3973bba383a949b3c305dcfecfbf139ab90006d42935e diff --git a/dev-python/nanobind/metadata.xml b/dev-python/nanobind/metadata.xml new file mode 100644 index 000000000000..853174b8f2ab --- /dev/null +++ b/dev-python/nanobind/metadata.xml @@ -0,0 +1,10 @@ + + + + + python@gentoo.org + Python + + + gentoo-staging + \ No newline at end of file diff --git a/dev-python/nanobind/nanobind-2.0.0-r1.ebuild b/dev-python/nanobind/nanobind-2.0.0-r1.ebuild new file mode 100644 index 000000000000..9aa8bec468a8 --- /dev/null +++ b/dev-python/nanobind/nanobind-2.0.0-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit cmake distutils-r1 + +DESCRIPTION="Tiny and efficient C++/Python bindings" +HOMEPAGE=" + https://github.com/wjakob/nanobind + https://pypi.org/project/nanobind/ +" +SRC_URI=" + https://github.com/wjakob/nanobind/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=dev-cpp/robin-map-1.3.0" +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.10) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # This test assumes in-source build for the .pyi stubs. + # (Hack because EPYTEST_IGNORE doesn't work with the paths it collects(?)) + echo > tests/test_stubs.py || die + + cmake_src_prepare + distutils-r1_python_prepare_all +} + +python_configure() { + # XXX: nanobind installs a CMake config file which by default passes -Os + # We currently patch around it in dev-python/pyopencl. In future, we + # may want to add some override with Gentoo specific environment vars. + local mycmakeargs=( + -DNB_CREATE_INSTALL_RULES=ON + -DNB_USE_SUBMODULE_DEPS=OFF + -DNB_TEST=$(usex test) + ) + cmake_src_configure +} + +python_compile() { + distutils-r1_python_compile + cmake_src_compile +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cd "${BUILD_DIR}/tests" || die + epytest "${S}/tests" +} + +python_install() { + distutils-r1_python_install + cmake_src_install +} diff --git a/dev-python/persist-queue/Manifest b/dev-python/persist-queue/Manifest index dd8eb88c24fe..e5a396bf27d3 100644 --- a/dev-python/persist-queue/Manifest +++ b/dev-python/persist-queue/Manifest @@ -1 +1,2 @@ DIST persist-queue-0.8.1.tar.gz 29652 BLAKE2B b088a1d1784928e682151d0ccf984439df13b771aea4c5125b213a87fea05fbbc654fd80b787e141083a148b8b4b661b50fbe22f85cc582d0f411297089a88e2 SHA512 a5582deddd06108b4e748ee10fed5f64a328fe361b2db8f74400f7e43fc5800aafee67230e7edf481f926c8e20c73fb5d32109d15504a24caa67da848458ce6c +DIST persist-queue-1.0.0.tar.gz 30262 BLAKE2B 266b731302ea4a805755df89ef62ad79f60d2b65a3b8f8acdb0daf9816e6a8f8a31f896f5757020f61403382612f00cbfee8d9ceea90782409c08bd8999162d9 SHA512 5fba323ca24dfe79688d2c89ac044729d4ef0b63d195d8fcac6da3ca5e6667d930c348626bce3cb808a560f06d0bfcad041be97b22811e7de0868324b3ef7c1b diff --git a/dev-python/persist-queue/persist-queue-1.0.0.ebuild b/dev-python/persist-queue/persist-queue-1.0.0.ebuild new file mode 100644 index 000000000000..f1b96c2499ca --- /dev/null +++ b/dev-python/persist-queue/persist-queue-1.0.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A thread-safe disk based persistent queue in Python" +HOMEPAGE="https://github.com/peter-wangxu/persist-queue" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +# It tries to connect to a local MySQL server +RESTRICT="test" + +DEPEND=" + dev-python/dbutils[${PYTHON_USEDEP}] + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/pymysql[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND}" diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest index 17338c1045d4..f6b6c6716eb4 100644 --- a/dev-python/pip/Manifest +++ b/dev-python/pip/Manifest @@ -1,3 +1,4 @@ DIST pip-24.0.gh.tar.gz 9398156 BLAKE2B 17a7ed9e15e9b8efa0d3e3c5586dc446958b62cf9ba52155a0d1ad97a3e212ee7a08a0e88a592718fc3d542eb8f434155a75cb98d90c008904bd8f59bd2b40b6 SHA512 0c2ecb2ecde4f155c83468d35bc4f52f37efffc16821ae7c706d035e1e8cc3709b41cb10f8140ff09205e8bbdba2c76128ad76d1cbd18401328b619228e834df DIST pip-24.1.1.gh.tar.gz 9190972 BLAKE2B 1ce876d2767c1c36bac3237c17a3aced9dd5a335a7b522c70cee1e155bc0b47256db74c6835aab5f58133ebcde0daeb8e6eb217b06f76418c355034cbe736cf6 SHA512 523e7273134b68252693ba7a032e7992c72075aebd2bcd895fbd90ad28d76f98b13ea1a7df0b6da1802650782ae977868177f740dc6f0a2eaccb95915c27b318 +DIST pip-24.1.2.gh.tar.gz 9192691 BLAKE2B 9b5a07e9f10b5787d668766423d8b3a9dfcc62564673155b80c7bc95ffe79daafa8788d8141f67c76d4098c21922e62fcb2164f72bf580bbeec136786c48d512 SHA512 222a957030e9c51defa6f741f8e176f2a19bd54f0ef664d2e218d3d2c2b5a335c9b7ce4bd1c804133d6116b3fbf37648453cd85f7a2bcf86a5aeb43e22db4b0f DIST pip-24.1.gh.tar.gz 9188658 BLAKE2B 4a43ff0199d811dd30461e376f655a447f3f706a48dd97fe1d0ccf630f558e72209ccd06d98949a1541cd6b2942a816db23ce8aaa7fbbf9aef429502fb91ab92 SHA512 c60ab329fe91202ff64b5f0f90209085fbf8db0f0a05f0703f952ad69e39e2e3edb5dadc006a3f317cdd4ba4fb5abe56dfbd22792249a2d139702eec272186d1 diff --git a/dev-python/pip/pip-24.1.2.ebuild b/dev-python/pip/pip-24.1.2.ebuild new file mode 100644 index 000000000000..400c52360af0 --- /dev/null +++ b/dev-python/pip/pip-24.1.2.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# please bump dev-python/ensurepip-pip along with this package! + +DISTUTILS_USE_PEP517=setuptools +PYTHON_TESTED=( python3_{8,9,10,11,12} ) +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="ssl(+),threads(+)" + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="The PyPA recommended tool for installing Python packages" +HOMEPAGE=" + https://pip.pypa.io/en/stable/ + https://pypi.org/project/pip/ + https://github.com/pypa/pip/ +" +SRC_URI=" + https://github.com/pypa/pip/archive/${PV}.tar.gz -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +# bundled deps +LICENSE+=" Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MPL-2.0 PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~riscv ~sparc ~x86" +IUSE="test-rust" + +# see src/pip/_vendor/vendor.txt +RDEPEND=" + >=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}] + >=dev-python/distlib-0.3.8[${PYTHON_USEDEP}] + >=dev-python/distro-1.9.0[${PYTHON_USEDEP}] + >=dev-python/msgpack-1.0.8[${PYTHON_USEDEP}] + >=dev-python/packaging-24.1[${PYTHON_USEDEP}] + >=dev-python/platformdirs-4.2.1[${PYTHON_USEDEP}] + >=dev-python/pyproject-hooks-1.0.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.32.0[${PYTHON_USEDEP}] + >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] + >=dev-python/resolvelib-1.0.1[${PYTHON_USEDEP}] + >=dev-python/setuptools-69.5.1[${PYTHON_USEDEP}] + >=dev-python/tenacity-8.2.3[${PYTHON_USEDEP}] + >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] + >=dev-python/truststore-0.9.1[${PYTHON_USEDEP}] + + >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + $(python_gen_cond_dep ' + dev-python/ensurepip-setuptools + dev-python/ensurepip-wheel + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/scripttest[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + test-rust? ( + dev-python/cryptography[${PYTHON_USEDEP}] + ) + dev-vcs/git + ' "${PYTHON_TESTED[@]}") + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/pip-23.1-no-coverage.patch" + # prepare to unbundle dependencies + "${FILESDIR}/pip-24.1-unbundle.patch" + ) + + distutils-r1_python_prepare_all + + # unbundle dependencies + rm -r src/pip/_vendor || die + find -name '*.py' -exec sed -i \ + -e 's:from pip\._vendor import:import:g' \ + -e 's:from pip\._vendor\.:from :g' \ + {} + || die + + if use test; then + local wheels=( + "${BROOT}"/usr/lib/python/ensurepip/{setuptools,wheel}-*.whl + ) + mkdir tests/data/common_wheels/ || die + cp "${wheels[@]}" tests/data/common_wheels/ || die + fi +} + +python_compile_all() { + # 'pip completion' command embeds full $0 into completion script, which confuses + # 'complete' and causes QA warning when running as "${PYTHON} -m pip". + # This trick sets correct $0 while still calling just installed pip. + local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())' + "${EPYTHON}" -c "${pipcmd}" completion --bash > completion.bash || die + "${EPYTHON}" -c "${pipcmd}" completion --zsh > completion.zsh || die +} + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON}" + return 0 + fi + + local EPYTEST_DESELECT=( + tests/functional/test_inspect.py::test_inspect_basic + # Internet + tests/functional/test_config_settings.py::test_backend_sees_config_via_sdist + tests/functional/test_install.py::test_double_install_fail + tests/functional/test_install.py::test_install_sdist_links + tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed + # broken by system site-packages use + tests/functional/test_check.py::test_basic_check_clean + tests/functional/test_check.py::test_check_skip_work_dir_pkg + tests/functional/test_check.py::test_check_complicated_name_clean + tests/functional/test_check.py::test_check_development_versions_are_also_considered + tests/functional/test_freeze.py::test_freeze_with_setuptools + tests/functional/test_pip_runner_script.py::test_runner_work_in_environments_with_no_pip + tests/functional/test_uninstall.py::test_basic_uninstall_distutils + tests/unit/test_base_command.py::test_base_command_global_tempdir_cleanup + tests/unit/test_base_command.py::test_base_command_local_tempdir_cleanup + tests/unit/test_base_command.py::test_base_command_provides_tempdir_helpers + # broken by unbundling + "tests/functional/test_debug.py::test_debug[vendored library versions:]" + tests/functional/test_debug.py::test_debug__library_versions + tests/functional/test_python_option.py::test_python_interpreter + tests/functional/test_uninstall.py::test_uninstall_non_local_distutils + ) + local EPYTEST_IGNORE=( + # requires proxy.py + tests/functional/test_proxy.py + ) + + if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/functional/test_install.py::test_install_sends_client_cert + tests/functional/test_install_config.py::test_do_not_prompt_for_authentication + tests/functional/test_install_config.py::test_prompt_for_authentication + tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed + ) + fi + + local -x PIP_DISABLE_PIP_VERSION_CHECK=1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local EPYTEST_XDIST=1 + # rerunfailures because test suite breaks if packages are installed + # in parallel + epytest -m "not network" -o tmp_path_retention_policy=all \ + -p rerunfailures --reruns=5 +} + +python_install_all() { + local DOCS=( AUTHORS.txt docs/html/**/*.rst ) + distutils-r1_python_install_all + + newbashcomp completion.bash pip + + insinto /usr/share/zsh/site-functions + newins completion.zsh _pip +} diff --git a/dev-python/plexapi/Manifest b/dev-python/plexapi/Manifest index e7c77f4bc271..8e7537b3fc8d 100644 --- a/dev-python/plexapi/Manifest +++ b/dev-python/plexapi/Manifest @@ -1,2 +1,2 @@ -DIST plexapi-4.15.11.gh.tar.gz 22519567 BLAKE2B 20f5e3d426475c63aa39f960838a0501abbf6af6f2c214163825e53d052076cd8a8ba982eafe0faa9971d0b6f857a266f092a3d4fb3b6cb7fff8c7f9380f4e03 SHA512 c68b414aa9262c3505dc2490c38e8d5dd896970f4df7fe8d382a0c5f2276ecc9833767e243b596c4f0f625e6d8984f5f89790fe7a71e9b6cab1c439f26b9cde1 DIST plexapi-4.15.14.gh.tar.gz 22523062 BLAKE2B ced898e7e4fdfbf605882e683afea9e12161dc8ff633bc8c03a788f0684252ae4bd2a33d24d921ed6924e6831b976f564213ad8a5d2bf9b5fd9d38874163a3a2 SHA512 1bacbb0fe37d6d9c9807f25d794305e3da0b532e1108299335fbc8b4a9398d4c5c57fdb7aadc61f8edd0b14b58df78adaea655b5193439069bfa22cc5b553089 +DIST plexapi-4.15.15.gh.tar.gz 22523094 BLAKE2B e7e6412e779565066b13b6c0833bae7652cb8dbcbf00ea36734b54667c5214e398449983f891e19fe650fa5f786e69718a4a6ada963ea7d821b040a9c3d54f08 SHA512 90d82435008072b687a74683d2c230088a2bfefab990f5901cf0cf95e1a47273c886e2e4b591c695e2cc5733a58a4a1399033761d4c88d01b7810b352ea08904 diff --git a/dev-python/plexapi/plexapi-4.15.11.ebuild b/dev-python/plexapi/plexapi-4.15.11.ebuild deleted file mode 100644 index b1050ad4b03c..000000000000 --- a/dev-python/plexapi/plexapi-4.15.11.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# left here in case we switch to pypi -PYPI_PN="PlexAPI" -PYPI_NO_NORMALIZE=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 - -DESCRIPTION="Python bindings for the Plex API." -HOMEPAGE=" - https://pypi.org/project/plexapi/ - https://github.com/pkkid/python-plexapi -" - -# pypi release don't have docs -SRC_URI="https://github.com/pkkid/python-plexapi/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" - -S="${WORKDIR}/python-${P}" -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -# almost all tests requires a running server -RESTRICT="test" - -RDEPEND=" - dev-python/requests[${PYTHON_USEDEP}] -" - -BDEPEND="doc? ( dev-python/sphinx-rtd-theme )" - -distutils_enable_sphinx docs diff --git a/dev-python/plexapi/plexapi-4.15.15.ebuild b/dev-python/plexapi/plexapi-4.15.15.ebuild new file mode 100644 index 000000000000..61fcc5d815f1 --- /dev/null +++ b/dev-python/plexapi/plexapi-4.15.15.ebuild @@ -0,0 +1,37 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# left here in case we switch to pypi +PYPI_PN="PlexAPI" +PYPI_NO_NORMALIZE=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for the Plex API." +HOMEPAGE=" + https://pypi.org/project/PlexAPI/ + https://github.com/pkkid/python-plexapi +" + +# pypi release don't have docs +SRC_URI="https://github.com/pkkid/python-plexapi/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +S="${WORKDIR}/python-${P}" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +# almost all tests requires a running server +RESTRICT="test" + +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] +" + +BDEPEND="doc? ( dev-python/sphinx-rtd-theme )" + +distutils_enable_sphinx docs diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest index 476fc3b84d30..f5b9bc33329a 100644 --- a/dev-python/protobuf-python/Manifest +++ b/dev-python/protobuf-python/Manifest @@ -1,5 +1,5 @@ +DIST protobuf-21.12.tar.gz 5141166 BLAKE2B 33500612d103afb817062486a741e8e5503f82c42c70054d47d1899e6bb79f3fdde2666cad5b8eff6e1bc539c3b0cdf9f2b125ce7e5d3a459a69e84d67ab535e SHA512 2dc8f552388438268d8b9f7a9e84c6abf1736be3d5031438c789c317410c9f4b5cedd25bf7da6d67b3ba32ca890869f9ddaab2284d6ac0e734a5b135ffbb1346 DIST protobuf-21.9.tar.gz 5110670 BLAKE2B a4f5b7f58e1c5904ca990b100a72992f6f56177b28773f8de8c99e4158391d33cfb8aa8575915887fc9ae4294faf81d4ff6b470bc07b394bfd5885a09ba0fafe SHA512 6954b42d21921e630173b7848c056ab95635627d8eddec960f3db2ddda13eedde00520a9b350722e76e2998649eb8ebe10758e1db938b6a91e38ff3295b1b7c1 +DIST protobuf-22.5.tar.gz 4924661 BLAKE2B d69c73f4ebfddf45fd94b4f5f898faf00256fe674f2cbc0443c60a88d7a0f47fb96f2f6262879927c6da88095b4ea3ee7fd4c471c100bf42a2bae9edf48c07f1 SHA512 058ab2fec5b11007972e6043071056d1944c3b6fe1d31246cddba8eb57686e3b5280f6ad3d58e78940ca63005e74a8de3c72237f9f7c5066548c5a2513ddc584 DIST protobuf-23.3.tar.gz 5043803 BLAKE2B ee2edee230969555c9ef95069c7b1d6c23c3d1f8ea1b2249fb3e9f6fcf63312c6e10e9da65b80629fb08d5fb08d05a19bb9c752c25b892c1e3fd6f18b9279eb3 SHA512 646af367dbc61b42e322cf0b335f360e428b272e2b1f5361b2f17c18d3dc9dddd615e1279436028b1a42275a0beadda37c2c934fc27d6c892131cc8d526d8b3b -DIST protobuf-24.4.tar.gz 5180235 BLAKE2B 1c7e9035d9f3810886baaea7d679414c882463c79828c99dd8895a9549638c1ca17f9ab3b38d461019f3e1412d9cb9584b995b1da99866eb6fdbb8bdeb063e6f SHA512 52b6ab5587d03cbd1f35cf3cdc388e1710fa50f3031559ac53cf754965407ded7602cdead56080444ab695588112cc3391a1d7fdd5e565d90d0af7ad08706315 -DIST protobuf-25.3.tar.gz 5878962 BLAKE2B 9268f9bd993a1cfd6d3937a2ad56ba4cfe3d84923756513841cbf13039d4a07acb260468745cb1294f30334cb34b45c6fde272f5c40d9de63ac6a4ce5c263077 SHA512 1f73e237c919082e5423ae9e2ea8813dccf672c059051d1531fe89ffaa45872d3cf3052b8c3af26f674296ec17d7dc861c67b8f0834ed80261ce4a6a14ed7115 -DIST protobuf-5.27.1.tar.gz 401656 BLAKE2B 6e29467b8f38043c0f274e655f110361bc4b56d82dc13b2db90aaadf3b1c29cfa042b34fb6234072b13c0dbcf769e900878cb832b95fc087976fb977cf95d469 SHA512 4324a73182e2cceb61a0e06aa0157d6b75024fc277e0bc23e224cf75c85ecd2eb9ada2f7cd627a691d049eb03334c4666c96573d7f38acb72ceeb69849d38d61 +DIST protobuf-python-5.27.2.tar.gz 401640 BLAKE2B 9d3420b75536ffd452cc2a3317a6ad1e16a62df36085f1e329f0178026032f5533e1a96f7b613f91093ac12a44d7ad4059ebededea636f38ded29da563afd075 SHA512 b3afcf13e223d7e855ac0aa000cc395e3ea1301b2e3dfe3c0d5435d8031be3726e6aec1fb6228c572aa1685f75aba2d97d2c9dfdb6d9e058a2e88321d6ba9180 diff --git a/dev-python/protobuf-python/files/editions.patch b/dev-python/protobuf-python/files/editions.patch deleted file mode 100644 index bd81416897a9..000000000000 --- a/dev-python/protobuf-python/files/editions.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 2eee41224e2eac1aa4e8e8f4a28ff11748e49a41 Mon Sep 17 00:00:00 2001 -From: Mike Kruskal -Date: Thu, 10 Aug 2023 15:35:41 -0700 -Subject: [PATCH] Remove editions test proto from setup.py. - -This proto is only used in C++ tests, and doesn't need to be built in python. Python doesn't support editions yet, so we should just remove it for now. This also fixes some other issues with setup.py where tests fail. - -Closes #13501 - -PiperOrigin-RevId: 555681295 ---- - python/google/protobuf/internal/descriptor_test.py | 5 ++--- - python/setup.py | 2 +- - 2 files changed, 3 insertions(+), 4 deletions(-) - -diff --git a/python/google/protobuf/internal/descriptor_test.py b/python/google/protobuf/internal/descriptor_test.py -index b070bca87dc..b7e8d71f4d6 100755 ---- a/python/google/protobuf/internal/descriptor_test.py -+++ b/python/google/protobuf/internal/descriptor_test.py -@@ -67,7 +67,7 @@ - message ResponseMessage { - } - --service Service { -+service DescriptorTestService { - rpc CallMethod(.protobuf_unittest.NestedMessage) returns (.protobuf_unittest.ResponseMessage); - } - -@@ -97,8 +97,7 @@ def setUp(self): - enum_proto.value.add(name='FOREIGN_BAZ', number=6) - - file_proto.message_type.add(name='ResponseMessage') -- service_proto = file_proto.service.add( -- name='Service') -+ service_proto = file_proto.service.add(name='DescriptorTestService') - method_proto = service_proto.method.add( - name='CallMethod', - input_type='.protobuf_unittest.NestedMessage', -diff --git a/python/setup.py b/python/setup.py -index e65631013eb..c686ddc25a7 100755 ---- a/python/setup.py -+++ b/python/setup.py -@@ -131,7 +131,6 @@ def GenerateUnittestProtos(): - GenProto('../src/google/protobuf/map_unittest.proto', False) - GenProto('../src/google/protobuf/test_messages_proto3.proto', False) - GenProto('../src/google/protobuf/test_messages_proto2.proto', False) -- GenProto('../src/google/protobuf/unittest_arena.proto', False) - GenProto('../src/google/protobuf/unittest.proto', False) - GenProto('../src/google/protobuf/unittest_custom_options.proto', False) - GenProto('../src/google/protobuf/unittest_import.proto', False) -@@ -140,6 +139,7 @@ def GenerateUnittestProtos(): - GenProto('../src/google/protobuf/unittest_mset_wire_format.proto', False) - GenProto('../src/google/protobuf/unittest_no_generic_services.proto', False) - GenProto('../src/google/protobuf/unittest_proto3_arena.proto', False) -+ GenProto('../src/google/protobuf/unittest_retention.proto', False) - GenProto('../src/google/protobuf/util/json_format.proto', False) - GenProto('../src/google/protobuf/util/json_format_proto3.proto', False) - GenProto('google/protobuf/internal/any_test.proto', False) diff --git a/dev-python/protobuf-python/files/protobuf-python-4.22.5-c++-17.patch b/dev-python/protobuf-python/files/protobuf-python-4.22.5-c++-17.patch new file mode 100644 index 000000000000..3ca6a5776d04 --- /dev/null +++ b/dev-python/protobuf-python/files/protobuf-python-4.22.5-c++-17.patch @@ -0,0 +1,13 @@ +diff --git a/python/setup.py b/python/setup.py +index e65631013..8a6cbe59a 100755 +--- a/python/setup.py ++++ b/python/setup.py +@@ -370,7 +370,7 @@ if __name__ == '__main__': + extra_compile_args.append('-Wno-invalid-offsetof') + extra_compile_args.append('-Wno-sign-compare') + extra_compile_args.append('-Wno-unused-variable') +- extra_compile_args.append('-std=c++14') ++ extra_compile_args.append('-std=c++17') + + if sys.platform == 'darwin': + extra_compile_args.append('-Wno-shorten-64-to-32') diff --git a/dev-python/protobuf-python/files/protobuf-python-4.22.5-python.patch b/dev-python/protobuf-python/files/protobuf-python-4.22.5-python.patch new file mode 100644 index 000000000000..65cb22d5f653 --- /dev/null +++ b/dev-python/protobuf-python/files/protobuf-python-4.22.5-python.patch @@ -0,0 +1,21 @@ +See also https://github.com/protocolbuffers/protobuf/pull/9098 +--- a/google/protobuf/internal/json_format_test.py ++++ b/google/protobuf/internal/json_format_test.py +@@ -1060,7 +1060,7 @@ class JsonFormatTest(JsonFormatBase): + def testInvalidTimestamp(self): + message = json_format_proto3_pb2.TestTimestamp() + text = '{"value": "10000-01-01T00:00:00.00Z"}' +- self.assertRaisesRegexp( ++ self.assertRaisesRegex( + json_format.ParseError, 'Failed to parse value field: ' + 'time data \'10000-01-01T00:00:00\' does not match' + ' format \'%Y-%m-%dT%H:%M:%S\' at TestTimestamp.value.', +@@ -1097,7 +1097,7 @@ class JsonFormatTest(JsonFormatBase): + def testInvalidOneof(self): + message = json_format_proto3_pb2.TestOneof() + text = '{"oneofInt32Value": 1, "oneofStringValue": "2"}' +- self.assertRaisesRegexp( ++ self.assertRaisesRegex( + json_format.ParseError, 'Message type "proto3.TestOneof"' + ' should not have multiple "oneof_value" oneof fields at "TestOneof".', + json_format.Parse, text, message) diff --git a/dev-python/protobuf-python/metadata.xml b/dev-python/protobuf-python/metadata.xml index 52a56dcdbaf1..af249ed82217 100644 --- a/dev-python/protobuf-python/metadata.xml +++ b/dev-python/protobuf-python/metadata.xml @@ -1,20 +1,8 @@ - - dev@liguros.net - Development - - - arfrever.fta@gmail.com - Arfrever Frehtes Taifersar Arahesis - - - cjk@gentoo.org - Cjk - - ports + gentoo-staging Soname version number of Protobuf diff --git a/dev-python/protobuf-python/protobuf-python-4.21.12.ebuild b/dev-python/protobuf-python/protobuf-python-4.21.12.ebuild new file mode 100644 index 000000000000..12885afc9088 --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-4.21.12.ebuild @@ -0,0 +1,78 @@ +# Copyright 2008-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +PARENT_PN="${PN/-python/}" +PARENT_PV="$(ver_cut 2-)" +PARENT_P="${PARENT_PN}-${PARENT_PV}" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf.git" + EGIT_SUBMODULES=() + EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}" +else + SRC_URI=" + https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz + -> ${PARENT_P}.tar.gz + " + KEYWORDS="~alpha amd64 arm arm64 ~loong ~mips ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~x64-macos" +fi + +DESCRIPTION="Google's Protocol Buffers - Python bindings" +HOMEPAGE=" + https://developers.google.com/protocol-buffers/ + https://pypi.org/project/protobuf/ +" + +LICENSE="BSD" +SLOT="0/3.${PARENT_PV}.0" + +S="${WORKDIR}/${PARENT_P}/python" + +DEPEND=" + ${PYTHON_DEPS} +" +RDEPEND=" + ${BDEPEND} + dev-libs/protobuf:${SLOT} +" + +distutils_enable_tests setup.py + +# Same than PATCHES but from repository's root directory, +# please see function `python_prepare_all` below. +# Simplier for users IMHO. +PARENT_PATCHES=( +) + +# Here for patches within "python/" subdirectory. +PATCHES=( + "${FILESDIR}"/${PN}-3.20.3-python311.patch +) + +python_prepare_all() { + pushd "${WORKDIR}/${PARENT_P}" > /dev/null || die + [[ -n "${PARENT_PATCHES[@]}" ]] && eapply "${PARENT_PATCHES[@]}" + eapply_user + popd > /dev/null || die + + distutils-r1_python_prepare_all +} + +src_configure() { + DISTUTILS_ARGS=( --cpp_implementation ) +} + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die +} diff --git a/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild b/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild index fd5dd50205b7..5a4ae7aa90ad 100644 --- a/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild +++ b/dev-python/protobuf-python/protobuf-python-4.21.9.ebuild @@ -24,7 +24,7 @@ else https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz -> ${PARENT_P}.tar.gz " - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos" fi DESCRIPTION="Google's Protocol Buffers - Python bindings" @@ -67,6 +67,10 @@ python_prepare_all() { eapply_user popd > /dev/null || die + # py3.12 + sed -i -e 's:assertRaisesRegexp:assertRaisesRegex:' \ + google/protobuf/internal/json_format_test.py || die + distutils-r1_python_prepare_all } diff --git a/dev-python/protobuf-python/protobuf-python-4.22.5.ebuild b/dev-python/protobuf-python/protobuf-python-4.22.5.ebuild new file mode 100644 index 000000000000..c73f6a9949dd --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-4.22.5.ebuild @@ -0,0 +1,86 @@ +# Copyright 2008-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +PARENT_PN="${PN/-python/}" +PARENT_PV="$(ver_cut 2-)" +PARENT_P="${PARENT_PN}-${PARENT_PV}" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf.git" + EGIT_SUBMODULES=() + EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}" +else + SRC_URI=" + https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz + -> ${PARENT_P}.tar.gz + " + KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +fi + +DESCRIPTION="Google's Protocol Buffers - Python bindings" +HOMEPAGE=" + https://developers.google.com/protocol-buffers/ + https://pypi.org/project/protobuf/ +" + +LICENSE="BSD" +SLOT="0/22.5.0" + +S="${WORKDIR}/${PARENT_P}/python" + +DEPEND=" + ${PYTHON_DEPS} +" +RDEPEND=" + dev-libs/protobuf:${SLOT} +" + +distutils_enable_tests setup.py + +# Same than PATCHES but from repository's root directory, +# please see function `python_prepare_all` below. +# Simplier for users IMHO. +PARENT_PATCHES=( + "${FILESDIR}/${P}-c++-17.patch" +) + +# Here for patches within "python/" subdirectory. +PATCHES=( + "${FILESDIR}/${PN}-4.22.5-python.patch" +) + +python_prepare_all() { + pushd "${WORKDIR}/${PARENT_P}" > /dev/null || die + [[ -n "${PARENT_PATCHES[@]}" ]] && eapply "${PARENT_PATCHES[@]}" + eapply_user + popd > /dev/null || die + + distutils-r1_python_prepare_all +} + +src_configure() { + DISTUTILS_ARGS=( --cpp_implementation ) +} + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die +} + +python_install() { + distutils-r1_python_install + + einfo "Installing headers" + insinto /usr/include/google/protobuf + doins google/protobuf/proto_api.h +} diff --git a/dev-python/protobuf-python/protobuf-python-4.23.3.ebuild b/dev-python/protobuf-python/protobuf-python-4.23.3.ebuild index 0d86c559c2a4..6f92f8570f38 100644 --- a/dev-python/protobuf-python/protobuf-python-4.23.3.ebuild +++ b/dev-python/protobuf-python/protobuf-python-4.23.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 2008-2023 Gentoo Authors +# Copyright 2008-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -24,7 +24,7 @@ else https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz -> ${PARENT_P}.tar.gz " - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos" fi DESCRIPTION="Google's Protocol Buffers - Python bindings" diff --git a/dev-python/protobuf-python/protobuf-python-4.24.4.ebuild b/dev-python/protobuf-python/protobuf-python-4.24.4.ebuild deleted file mode 100644 index 54e79a43a6b0..000000000000 --- a/dev-python/protobuf-python/protobuf-python-4.24.4.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 2023 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 flag-o-matic - -PARENT_PN="${PN/-python/}" -PARENT_PV="$(ver_cut 2-)" -PARENT_P="${PARENT_PN}-${PARENT_PV}" - -SRC_URI=" - https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz -> ${PARENT_P}.tar.gz -" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" - -DESCRIPTION="Google's Protocol Buffers - Python bindings" -HOMEPAGE=" - https://developers.google.com/protocol-buffers/ - https://pypi.org/project/protobuf/ -" - -LICENSE="BSD" -SLOT="0/24.4.0" - -S="${WORKDIR}/${PARENT_P}/python" - -BDEPEND=" -" -DEPEND=" - ${PYTHON_DEPS} -" -RDEPEND=" - ${BDEPEND} - dev-libs/protobuf:${SLOT} -" - -distutils_enable_tests setup.py - -python_prepare_all() { - eapply_user - - distutils-r1_python_prepare_all -} - -src_configure() { - append-cxxflags -std=c++17 - DISTUTILS_ARGS=( --cpp_implementation ) -} - -python_compile() { - distutils-r1_python_compile - find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die -} diff --git a/dev-python/protobuf-python/protobuf-python-4.25.3.ebuild b/dev-python/protobuf-python/protobuf-python-4.25.3.ebuild deleted file mode 100644 index cce4f9cfeb4a..000000000000 --- a/dev-python/protobuf-python/protobuf-python-4.25.3.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 2023-2024 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 flag-o-matic - -PARENT_PN="${PN/-python/}" -PARENT_PV="$(ver_cut 2-)" -PARENT_P="${PARENT_PN}-${PARENT_PV}" - -SRC_URI=" - https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz -> ${PARENT_P}.tar.gz -" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" - -DESCRIPTION="Google's Protocol Buffers - Python bindings" -HOMEPAGE=" - https://developers.google.com/protocol-buffers/ - https://pypi.org/project/protobuf/ -" - -LICENSE="BSD" -SLOT="0/25.3.0" - -S="${WORKDIR}/${PARENT_P}/python" - -BDEPEND=" -" -DEPEND=" - ${PYTHON_DEPS} -" -RDEPEND=" - ${BDEPEND} - dev-libs/protobuf:${SLOT} -" - -distutils_enable_tests setup.py - -python_prepare_all() { - eapply_user - - distutils-r1_python_prepare_all -} - -src_configure() { - append-cxxflags -std=c++17 - DISTUTILS_ARGS=( --cpp_implementation ) -} - -python_compile() { - distutils-r1_python_compile - find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die -} diff --git a/dev-python/protobuf-python/protobuf-python-5.27.1.ebuild b/dev-python/protobuf-python/protobuf-python-5.27.1.ebuild deleted file mode 100644 index b17e7d263f27..000000000000 --- a/dev-python/protobuf-python/protobuf-python-5.27.1.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 2023-2024 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 flag-o-matic - -PARENT_PN="${PN/-python/}" -PARENT_P="${PARENT_PN}-${PV}" - -SRC_URI="https://files.pythonhosted.org/packages/20/5f/00d891817d4031bbf4e846a99834bf949a76714c10a726833aa184176772/protobuf-5.27.1.tar.gz" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" - -DESCRIPTION="Google's Protocol Buffers - Python bindings" -HOMEPAGE=" - https://developers.google.com/protocol-buffers/ - https://pypi.org/project/protobuf/ -" - -LICENSE="BSD" -SLOT="0/27.1.0" - -S="${WORKDIR}/${PARENT_P}" - -BDEPEND=" -" -DEPEND=" - ${PYTHON_DEPS} -" -RDEPEND=" - ${BDEPEND} - dev-libs/protobuf:${SLOT} -" - -distutils_enable_tests setup.py - - -python_prepare_all() { - eapply_user - - distutils-r1_python_prepare_all -} - -src_configure() { - append-cxxflags -std=c++17 -} - -python_compile() { - distutils-r1_python_compile - find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die -} diff --git a/dev-python/protobuf-python/protobuf-python-5.27.2.ebuild b/dev-python/protobuf-python/protobuf-python-5.27.2.ebuild new file mode 100644 index 000000000000..c21d50f587cb --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-5.27.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 2008-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Default implementation currently is upb, which doesn't match dev-libs/protobuf +# https://github.com/protocolbuffers/protobuf/blob/main/python/README.md#implementation-backends + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +PYPI_PN="protobuf" + +inherit distutils-r1 pypi + +DESCRIPTION="Google's Protocol Buffers - Python bindings" +HOMEPAGE=" + https://protobuf.dev/ + https://pypi.org/project/protobuf/ +" + +# Rename sdist to avoid conflicts with dev-libs/protobuf +SRC_URI=" + $(pypi_sdist_url) + -> ${P}.tar.gz +" + +LICENSE="BSD" +SLOT="0/$(ver_cut 1-3)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" diff --git a/dev-python/psycopg/psycopg-2.9.9-r1.ebuild b/dev-python/psycopg/psycopg-2.9.9-r1.ebuild new file mode 100644 index 000000000000..14a890bd4a0c --- /dev/null +++ b/dev-python/psycopg/psycopg-2.9.9-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_PN="psycopg2" +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="PostgreSQL database adapter for Python" +HOMEPAGE=" + https://www.psycopg.org/ + https://github.com/psycopg/psycopg2/ + https://pypi.org/project/psycopg2/ +" + +LICENSE="LGPL-3+" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="debug test" +RESTRICT="!test? ( test )" + +RDEPEND=">=dev-db/postgresql-8.1:*" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( >=dev-db/postgresql-8.1[server] ) +" + +python_prepare_all() { + distutils-r1_python_prepare_all + + # fix for py3.13 + sed -e 's:_PyInterpreterState_Get:PyInterpreterState_Get:' \ + -i psycopg/utils.c || die + # broken by different encoding of IPv4-mapped addresses + sed -e 's:test_\(cidr\|inet\)_adapt:_&:' \ + -i tests/test_ipaddress.py || die + + if use debug; then + sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die + fi +} + +src_test() { + initdb -D "${T}"/pgsql || die + # TODO: random port + pg_ctl -w -D "${T}"/pgsql start \ + -o "-h '' -k '${T}'" || die + createdb -h "${T}" psycopg2_test || die + + local -x PSYCOPG2_TESTDB_HOST="${T}" + distutils-r1_src_test + + pg_ctl -w -D "${T}"/pgsql stop || die +} + +python_test() { + "${EPYTHON}" -c " +import tests +tests.unittest.main(defaultTest='tests.test_suite') +" --verbose || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/pybind11/files/pybind11-2.13.1-gcc14-fix.patch b/dev-python/pybind11/files/pybind11-2.13.1-gcc14-fix.patch new file mode 100644 index 000000000000..878ede4a14f6 --- /dev/null +++ b/dev-python/pybind11/files/pybind11-2.13.1-gcc14-fix.patch @@ -0,0 +1,23 @@ +Patch source: https://github.com/pybind/pybind11/commit/51c2aa16de5b50fe4be6a0016d6090d4a831899e +From 51c2aa16de5b50fe4be6a0016d6090d4a831899e Mon Sep 17 00:00:00 2001 +From: wenqing +Date: Fri, 28 Jun 2024 16:12:32 +0200 +Subject: [PATCH] Fixed a compilation error with gcc 14 (#5208) + +--- + include/pybind11/typing.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/pybind11/typing.h b/include/pybind11/typing.h +index c8ba18d499..b0feb9464a 100644 +--- a/include/pybind11/typing.h ++++ b/include/pybind11/typing.h +@@ -14,6 +14,8 @@ + #include "cast.h" + #include "pytypes.h" + ++#include ++ + PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) + PYBIND11_NAMESPACE_BEGIN(typing) + diff --git a/dev-python/pybind11/pybind11-2.13.1-r1.ebuild b/dev-python/pybind11/pybind11-2.13.1-r1.ebuild new file mode 100644 index 000000000000..fa86433d9823 --- /dev/null +++ b/dev-python/pybind11/pybind11-2.13.1-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit cmake distutils-r1 + +DESCRIPTION="AST-based Python refactoring library" +HOMEPAGE=" + https://pybind11.readthedocs.io/en/stable/ + https://github.com/pybind/pybind11/ + https://pypi.org/project/pybind11/ +" +SRC_URI=" + https://github.com/pybind/pybind11/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + dev-cpp/eigen:3 +" +BDEPEND=" + test? ( + =dev-cpp/catch-2.13.9:0 + dev-libs/boost + ) +" + +PATCHES=( "${FILESDIR}/${P}-gcc14-fix.patch" ) + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + cmake_src_prepare + distutils-r1_python_prepare_all +} + +python_configure() { + local mycmakeargs=( + # disable forced lto + -DHAS_FLTO=OFF + # https://github.com/pybind/pybind11/issues/5087 + -DPYBIND11_FINDPYTHON=OFF + -DPYBIND11_INSTALL=ON + -DPYBIND11_TEST=$(usex test) + ) + cmake_src_configure +} + +python_compile() { + distutils-r1_python_compile + # Compilation only does anything for tests + use test && cmake_src_compile +} + +python_test() { + cmake_build cpptest test_cmake_build + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cd "${BUILD_DIR}/tests" || die + epytest "${S}/tests" +} + +python_install() { + distutils-r1_python_install + cmake_src_install +} diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest index 101238db8683..e5dccc68b731 100644 --- a/dev-python/pyopencl/Manifest +++ b/dev-python/pyopencl/Manifest @@ -1 +1,2 @@ DIST pyopencl-2024.1.tar.gz 473860 BLAKE2B 803c92418a609f3ad9249c81e93af0bd2e9125ee56dc88af8ee6ae9c4a275c7ab37befddd575914eb9f0b295aaef4f135358669e384a55c04b3938b02572724d SHA512 abf27d67f8c3633c71e662938a919c88a34b0b66cc3c213644f92a8733aed3c9b7593542dd9b45a080941976dadeb4f49a23a986482110824b554e3a0d317176 +DIST pyopencl-2024.2.7.tar.gz 470964 BLAKE2B 6c61d91735667dd63fec0375defe98fb681eb448780f86b0129769d30714adb51832955d8c2e838970f17187e5027f794cd21affc870910d23ec46126049d4ed SHA512 5c9982f5dcaeb3faeb6ac6b88940b5baff43b7580fc5d466a596d9c180e45725cbf9971ba6ae4981202900b06cee3be7fa88fdf7227befee874a8f203a3a3267 diff --git a/dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch b/dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch new file mode 100644 index 000000000000..e5816b924773 --- /dev/null +++ b/dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch @@ -0,0 +1,13 @@ +nanobind defaults to adding -Os and friends: https://github.com/wjakob/nanobind/blob/b0136fe6ac1967cb2399456adc346a1af06a3b88/docs/api_cmake.rst#L80. +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -167,6 +167,9 @@ find_package(OpenCL REQUIRED) + nanobind_add_module( + _cl + NB_STATIC # Build static libnanobind (the extension module itself remains a shared library) ++ PROTECT_STACK ++ NOMINSIZE ++ NOSTRIP + src/wrap_constants.cpp + src/wrap_cl.cpp + src/wrap_cl_part_1.cpp diff --git a/dev-python/pyopencl/pyopencl-2024.2.7.ebuild b/dev-python/pyopencl/pyopencl-2024.2.7.ebuild new file mode 100644 index 000000000000..be683f0bea90 --- /dev/null +++ b/dev-python/pyopencl/pyopencl-2024.2.7.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=scikit-build-core + +inherit distutils-r1 multiprocessing pypi + +DESCRIPTION="Python wrapper for OpenCL" +HOMEPAGE=" + https://mathema.tician.de/software/pyopencl/ + https://pypi.org/project/pyopencl/ +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples opengl" + +# Running tests on GPUs requires both appropriate hardware and additional permissions +# having been granted to the user running them. Testing on CPUs with dev-libs/pocl +# is in theory possible but has been found to be very fragile, see e.g. Bug #872308. +RESTRICT="test" + +COMMON=">=virtual/opencl-2" +# libglvnd is only needed for the headers +DEPEND=" + ${COMMON} + opengl? ( media-libs/libglvnd ) +" +RDEPEND=" + ${COMMON} + >=dev-python/mako-0.3.6[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] + >=dev-python/pytools-2024.1.5[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/nanobind[${PYTHON_USEDEP}] + test? ( dev-libs/pocl ) +" + +PATCHES=( + "${FILESDIR}"/pyopencl-2024.2.7-nanobind-flags.patch +) + +distutils_enable_tests pytest + +python_configure_all() { + DISTUTILS_ARGS=( + -DPYOPENCL_ENABLE_GL=$(usex opengl) + ) +} + +python_test() { + # Use dev-libs/pocl for testing; ignore any other OpenCL devices that might be present + local -x PYOPENCL_TEST="portable:pthread" + # Set the number of threads to match MAKEOPTS + local -x POCL_MAX_PTHREAD_COUNT=$(makeopts_jobs) + # Change to the 'test' directory so that python does not try to import pyopencl from the source directory + # (Importing from the source directory fails, because the compiled '_cl' module is only in the build directory) + pushd test >/dev/null || die + epytest + popd >/dev/null || die +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} diff --git a/dev-python/pytest-twisted/pytest-twisted-1.14.1.ebuild b/dev-python/pytest-twisted/pytest-twisted-1.14.1.ebuild index f9eb91357c7c..a79bcc6cee14 100644 --- a/dev-python/pytest-twisted/pytest-twisted-1.14.1.ebuild +++ b/dev-python/pytest-twisted/pytest-twisted-1.14.1.ebuild @@ -52,5 +52,11 @@ python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 local -x PYTEST_PLUGINS=pytest_twisted + local EPYTEST_DESELECT=( + # regression with pytest-8.2 + # https://github.com/pytest-dev/pytest-twisted/issues/176 + testing/test_basic.py::test_async_fixture_module_scope + ) + epytest -p pytester } diff --git a/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test-py3.13.patch b/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test-py3.13.patch new file mode 100644 index 000000000000..b1760f8b87af --- /dev/null +++ b/dev-python/python-glanceclient/files/python-glanceclient-4.6.0-test-py3.13.patch @@ -0,0 +1,66 @@ +From 6aa007080e1db0f95b04824f42a6b52cbd5ff886 Mon Sep 17 00:00:00 2001 +From: Petr Vaněk +Date: Mon, 08 Jul 2024 12:01:15 +0200 +Subject: [PATCH] Python 3.13 test fixes + +Python 3.13 newly calls close in mock_open [1], which makes two +_cache_schemas related tests fail because they expect different amount +of mock_calls. This fix makes the expected check results conditional +based on python version. + +[1] https://github.com/python/cpython/commit/3f7c0810f6158a7ff37be432f8d7f9511427489f + +Change-Id: I8b019f73fe3a9f28f114c95321a1da0feadf750f + +Upstream-PR: https://review.opendev.org/c/openstack/python-glanceclient/+/923628 + +diff --git a/glanceclient/tests/unit/test_shell.py b/glanceclient/tests/unit/test_shell.py +index 4a123ab..ea835c4 100644 +--- a/glanceclient/tests/unit/test_shell.py ++++ b/glanceclient/tests/unit/test_shell.py +@@ -786,14 +786,19 @@ class ShellCacheSchemaTest(testutils.TestCase): + client = self.shell._get_versioned_client('2', args) + self.shell._cache_schemas(args, client, home_dir=self.cache_dir) + +- self.assertEqual(12, open.mock_calls.__len__()) ++ # see https://github.com/python/cpython/commit/3f7c0810f6158a7ff37be432f8d7f9511427489f ++ expected_count = 12 if sys.version_info < (3, 13) else 15 ++ open_idx = 4 if sys.version_info < (3, 13) else 5 ++ write_idx = 6 if sys.version_info < (3, 13) else 7 ++ ++ self.assertEqual(expected_count, open.mock_calls.__len__()) + self.assertEqual(mock.call(self.cache_files[0], 'w'), + open.mock_calls[0]) + self.assertEqual(mock.call(self.cache_files[1], 'w'), +- open.mock_calls[4]) ++ open.mock_calls[open_idx]) + actual = json.loads(open.mock_calls[2][1][0]) + self.assertEqual(schema_odict, actual) +- actual = json.loads(open.mock_calls[6][1][0]) ++ actual = json.loads(open.mock_calls[write_idx][1][0]) + self.assertEqual(schema_odict, actual) + + @mock.patch('builtins.open', new=mock.mock_open(), create=True) +@@ -809,14 +814,19 @@ class ShellCacheSchemaTest(testutils.TestCase): + client = self.shell._get_versioned_client('2', args) + self.shell._cache_schemas(args, client, home_dir=self.cache_dir) + +- self.assertEqual(12, open.mock_calls.__len__()) ++ # see https://github.com/python/cpython/commit/3f7c0810f6158a7ff37be432f8d7f9511427489f ++ expected_count = 12 if sys.version_info < (3, 13) else 15 ++ open_idx = 4 if sys.version_info < (3, 13) else 5 ++ write_idx = 6 if sys.version_info < (3, 13) else 7 ++ ++ self.assertEqual(expected_count, open.mock_calls.__len__()) + self.assertEqual(mock.call(self.cache_files[0], 'w'), + open.mock_calls[0]) + self.assertEqual(mock.call(self.cache_files[1], 'w'), +- open.mock_calls[4]) ++ open.mock_calls[open_idx]) + actual = json.loads(open.mock_calls[2][1][0]) + self.assertEqual(schema_odict, actual) +- actual = json.loads(open.mock_calls[6][1][0]) ++ actual = json.loads(open.mock_calls[write_idx][1][0]) + self.assertEqual(schema_odict, actual) + + @mock.patch('builtins.open', new=mock.mock_open(), create=True) diff --git a/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild b/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild index 2a0a0b118c65..1c4990a5a499 100644 --- a/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild +++ b/dev-python/python-glanceclient/python-glanceclient-4.6.0.ebuild @@ -50,6 +50,10 @@ PATCHES=( # https://bugs.launchpad.net/python-glanceclient/+bug/2069684 # https://bugs.launchpad.net/python-glanceclient/+bug/2069682 "${FILESDIR}/${P}-test.patch" + + # py3.13 added close() to mock_open calls + # https://review.opendev.org/c/openstack/python-glanceclient/+/923628 + "${FILESDIR}/${P}-test-py3.13.patch" ) python_test() { diff --git a/dev-python/python-statemachine/Manifest b/dev-python/python-statemachine/Manifest index 8ec92cfe69d6..b0fe5f1e7ef5 100644 --- a/dev-python/python-statemachine/Manifest +++ b/dev-python/python-statemachine/Manifest @@ -1 +1,2 @@ DIST python-statemachine-2.1.2.gh.tar.gz 240041 BLAKE2B aae4571bf9628fbf3eb77c929a912f6bb5a2be03374557b6548bf0577f3d348aa4d479599d327c8035474e30aed47f4fde9998457a38f4a255df321172ceaf88 SHA512 593eaa07d7982b15045987c20d1fbd084e016fa53ae0cd45ec96e0f3d74b5b6d9c60cf9e94d67a5daaa3d3727630a88e32fb3d1d7f03248bb3ef0b552251c729 +DIST python-statemachine-2.3.3.gh.tar.gz 347194 BLAKE2B 02372cee9105d09d9cbb57492ebb73bd15e68fa01bed70453c24d51385b2a9f4e3edc6b9f93ceca738486e3a0974a2527ff1b63873b1fcd033fb5870ecd66e10 SHA512 ccd0133e55332fe8511150ef34408e01412de5ce06357b0bb1a3c3ad18ccb1c28753f2ebf3ad2a20391e2df0f76d2dd673db0fd0301862993f8116326d32eae6 diff --git a/dev-python/python-statemachine/python-statemachine-2.3.3.ebuild b/dev-python/python-statemachine/python-statemachine-2.3.3.ebuild new file mode 100644 index 000000000000..a47ca73f883a --- /dev/null +++ b/dev-python/python-statemachine/python-statemachine-2.3.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Python Finite State Machines made easy." +HOMEPAGE=" + https://pypi.org/project/python-statemachine/ + https://github.com/fgmacedo/python-statemachine +" +SRC_URI="https://github.com/fgmacedo/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="dev-python/pydot[${PYTHON_USEDEP}]" + +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest -o 'addopts=""' --ignore=tests/test_profiling.py +} diff --git a/dev-python/readme-renderer/Manifest b/dev-python/readme-renderer/Manifest index bfb4ffb1b55b..f0d7f7703208 100644 --- a/dev-python/readme-renderer/Manifest +++ b/dev-python/readme-renderer/Manifest @@ -1 +1,2 @@ DIST readme_renderer-43.0.tar.gz 31768 BLAKE2B 0f0c3fbac8a1358d5271ee6805e051225bee53a33098d60f8fb54b2bed04de77dc5986759669bf3e14d5fac449b5f6c712aca66400320666958533a406b1ae3b SHA512 505cca08179c0eb35a7248d6bcfea24a968ad749365bec6bb65bbe4ba64ac78ef971ee63422796fdcc462210b199c9df126c8424bfc078ed1a9d1149b2d874e2 +DIST readme_renderer-44.0.tar.gz 32056 BLAKE2B d496f0ee8e0ddca1fbca0ccd8185b63169c23d2bd071b0e34aa3b1382052b3ef882737d361249597c42d8897f4188cf5cc1035d1b1115a242db3a6ce326bad7d SHA512 f68b1d9f7352ce07537d82a096e0d31000b7395a5809e7d160083071dfb8fdae38dc7a3460f42abb7aec5d932866a20bbe2b2fc09480cf4505add1bc403c34c8 diff --git a/dev-python/readme-renderer/readme-renderer-44.0.ebuild b/dev-python/readme-renderer/readme-renderer-44.0.ebuild new file mode 100644 index 000000000000..fac2e5bfbe6a --- /dev/null +++ b/dev-python/readme-renderer/readme-renderer-44.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A library for rendering 'readme' descriptions for Warehouse" +HOMEPAGE=" + https://github.com/pypa/readme_renderer/ + https://pypi.org/project/readme-renderer/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/docutils-0.21.2[${PYTHON_USEDEP}] + >=dev-python/nh3-0.2.14[${PYTHON_USEDEP}] + >=dev-python/pygments-2.5.2[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +DOCS=( README.rst ) diff --git a/dev-python/rpds-py/Manifest b/dev-python/rpds-py/Manifest index 46af220c3a41..3ff72dab917e 100644 --- a/dev-python/rpds-py/Manifest +++ b/dev-python/rpds-py/Manifest @@ -1,33 +1,51 @@ DIST archery-1.2.0.crate 22842 BLAKE2B 018539188a76836c35834d948f64e51888083021a90bfd56229e3cf9cba2f12db289a248d2602a71431a04a09c4a9194d11530ec769fa85eaeff239388d00a44 SHA512 82c51b29984ebf611597ef530af2b04aa4046f7e532276612f7ad8485d79cea675f70a7ca60ce65f87114abb72ad6984b2c48c2f257957ba53a05a61537531ea DIST autocfg-1.1.0.crate 13272 BLAKE2B 7724055c337d562103f191f4e36cab469e578f0c51cc24d33624dea155d108a07578703766341fd6a4cc1ef52acda406e7dba1650d59115f18261281e5b40203 SHA512 df972c09abbdc0b6cb6bb55b1e29c7fed706ece38a62613d9e275bac46a19574a7f96f0152cccb0239efea04ee90083a146b58b15307696c4c81878cd12de28f +DIST autocfg-1.3.0.crate 16524 BLAKE2B 7d5a03853d6b4f0da08d8e139fb200da21e47fa7e50d1956270d0ff0cc496f660f8f800122c95eee9ba98d9210ab200c3010b782097483d12d6be4ac0df0e7c9 SHA512 a5570b955d57a7183ba148b335837dc5af24b202e80681027536d33fe2822509ba644fc70c29f018c893285ced2bf6774f44ca6c59f7c7e2226d5349cf7c3635 DIST bitflags-1.3.2.crate 23021 BLAKE2B eb990bb27b2bdeb66fd7212ce582cb36e1c616debbac85df642d0c82b25439e6bf9b1e811fac76b59e58ea3c1bbea6170d03a61e8f9a395e4334a0e2e2987eda SHA512 3c698f757b5cc62f815f9a1cce365c3d2dd88e4db71f331dff8bba86c2865f755b81cb4c9bfc59bd86b7643b0943f9e09a7c4f8ad75eb2ab0e714803d0129f62 DIST cfg-if-1.0.0.crate 7934 BLAKE2B e99a5589c11d79d77a4537b34ce0a45d37b981c123b79b807cea836c89fc3926d693458893baca2882448d3d44e3f64e06141f6d916b748daa10b8cc1ae16d1b SHA512 0fb16a8882fd30e86b62c5143b1cb18ab564e84e75bd1f28fd12f24ffdc4a42e0d2e012a99abb606c12efe3c11061ff5bf8e24ab053e550ae083f7d90f6576ff DIST heck-0.4.1.crate 11567 BLAKE2B 520aeea740cfa30b0cca12f73594ffa655f32959673b1c9caaca1ea0162e455546ae3033881394c0ba0516bcd5c9a997da02162e1585522d665813b9096eabd9 SHA512 8c80e959d2f10a2893f9a71994720f90747742bb5b61fc0a539eed3ea5679b140c48fd7f7690d7122cd6af5f7f20a19d412e3569fe741c6d31f6b2ce1e0b80e8 +DIST heck-0.5.0.crate 11517 BLAKE2B 5365ec43b2239a76b33a174f1a4292ece4147f9d382a68c6c60db78fdc8bad0afb1d51a65bcb25e96675372faa4ea37c318265030b0546ba51942f7c929e1835 SHA512 f044fc9c3d22466629fd8f772ec0555350fd611c0cfadca51d99a3d2f10e155f77c1091916c8a95a6b9b499f366c2e99a5fbf45b010f988bfb9b2501bf9f6a76 DIST indoc-2.0.4.crate 14311 BLAKE2B 8d604e20825ae64530014081c627abe4ecec6447e1e214408743aca79ed217531baad4bd7021137ae6628555d769a248f06acc556cc3254d2626074aab110a44 SHA512 ef1b8d19d89d848c1133f2865247e0ce23cbe5552454805910ed0478ac4acb11b11629aa4a5ce8756d0ed5cbc0644abedeac0246f433166c68f47cf58cf4487a +DIST indoc-2.0.5.crate 14396 BLAKE2B fe838c6a855d6ff7396675a3fe9b2e0b06a93cfd4013b0b843d24d2fb81f6566528bfd1753c649646f06cb7e59262bd6ec3ed79d4e6f01d740cf0682355f2e5a SHA512 095fb56a3d87946c42a63065a8b276c2d4b9b835800014b400bb987593bf56701bad9f55d947f090740fdb7641a4f3c87fe8bfa5724709e95254d1e8e2e3616f DIST libc-0.2.147.crate 686772 BLAKE2B ab2f0c65d071d46b8b88149add1c8429237ef6d9e0563d56ee1adbf23e6147dbb57fb68fbd02498f8ec75327693237a47e5e5259615ce8b0d5ed7a03bbf4fffb SHA512 bfb3c230b59d623b98726f92b7c3f897b47ba3d22fe9834c15f5b4c1b662289aba35a0ae3acfc704ad74696db8c691ee007b9cc6fa03ae65a18eb6bedc81931e +DIST libc-0.2.155.crate 743539 BLAKE2B 42cdcf8d4a187383548b1f09d404474f168916d626d614463fe10a1fd886e972e1caf6297e75445214af3f31fe631d0927e54ec1cdc63e20082b3587e38dce16 SHA512 05354bba532b8338bda1f88f12c7f3893429734a06e33925fca2b99d49548ae5216e2cd84e782d2368a2dfef20b0e035e2dcad8dd13ede7119462a8c639b2807 DIST lock_api-0.4.10.crate 26713 BLAKE2B 113adf8554c65e9782e8fd0360d0398567dfbfddb1fea4928cc152fbab98dbe086e42b81170f6f5c333d61dd3261e8a1ebfbaed786e6bf6378e6afde6d7f9e5c SHA512 ffe8cad8099bc382832181c1ff95e0935993491f247114604201be7d4ddf8402fd4db8fd6499c611f95fbce7d57dc3d3738eddfab31c52f50ab8709e549697db DIST memoffset-0.9.0.crate 9033 BLAKE2B 19090c1af8b8cf54a2cf7593748aff4d3dc685ec7080aa476139c1721ef71555495e1bc513b1efaddc7e7702f83e0e1c2a8f71ff40009d266539484c9297e0ed SHA512 2f04f9b6fed31e94388c18162ad275897a835df7b9ac827f4df0f4b0ecf71064ef247f7ad11dbc27d7a6d448984a0f29d1c000e3c8d5fa6e121fa9571770ec55 +DIST memoffset-0.9.1.crate 9032 BLAKE2B 0aab55fe084134bb599c52d77c96400db40949b1013e7037747ada4fcec8dc4a124b6f3755f04b36e057eb2fb4a6bd6f07d6eebcf166f8a71405ef434d802fbf SHA512 3a236c0f481e36973b9f805e454c2efe4dd375e6b4ee406b57145136c70d5fbf4e1183d563ebf3b5fbde7363bbf5f08f0d88e507aae5bda4cc75664ecd0e33aa DIST once_cell-1.18.0.crate 32969 BLAKE2B a08d5beee50a7add28bd9e50b18709e7b34574f0f55f80909d5efb7ac5917e5f30bdcf3fb43ddd0a4f420a427390c7ffe1cc1c7191a3a1d939bc6e3139e6eef7 SHA512 9328968afdf3535b2d9e0113d75afa725259d76994ef2e1948ad7efa4ec8a65bac7cfdc31b749d5cd55ad4e28d2e28ac57b871e3067b89182453c7e2413a13b8 +DIST once_cell-1.19.0.crate 33046 BLAKE2B c14b374eaf4ac0f60acc2e02f7bba270a0e8e0a6978d749cd3cb0ab3eb26907e4fbea70dd5132982f90290381ed18ff8a87fd530f1415fabffac864f157ea380 SHA512 4154876afd34a699ee650d1a8a1c5ee5a25f0ebd9388b8bef2564e33629fae68f113d7507488c68abbe7ea1acf9bbc41813cbbf3ef3e464e3f3b9cc7a51d870c DIST parking_lot-0.12.1.crate 40967 BLAKE2B 940a112a066e3cbd15e2f6df89bfff37e4ece2194118618a96fa14871813c91798f93181ab0f768d3e1f3d60805508f216724013afb7e3da95678d0d951a42d4 SHA512 07327d3b737a913508dffb66023766348ce7f9d555c224a099cabb05baefd16a28e15fec638e3a148a5169dbd980c4541b0f8820ae9d06dfe0704482838fbd5c DIST parking_lot_core-0.9.8.crate 32383 BLAKE2B 2f9666872894d1c85895437d1353f9e15be2bc8d004ffc8f0e5be95e9dd4b274797db3752eba1c0b5b6071c1b8a71e4857cae0b2aff1afdaa39e92e70be2e6fd SHA512 8d6dfdf661b0f7d0774cb9f61121f2daefd182ac8a2a0d24eab451febfbe1a664c815c163d34a7f3d15a54915a8e22e6c6cd10e89cb7d7598d48d81ad6a3c256 DIST portable-atomic-1.6.0.crate 140689 BLAKE2B c91d06e04a87c9a207233d8a850859aa1f5cc43dda8aed34511c3fe9641c27412796539ed045a58e649d2a0c7d71100b6b2d78a0c662fc061fd961a652ae8722 SHA512 b27cf57655a2f1e2d6ea7b45d80b4f9920a836e462f132c50dc1e4d314e162444309de1baecf45dad2defc7a5b99759165e54da9fe759b24092f8cb8755c515c DIST proc-macro2-1.0.66.crate 43575 BLAKE2B 9eb3e816b00fcf625c280ba14ad269f5893d0523473a24de07c21945f6f932fbd08efb3c339b35d903245510e3f065e1478439b024a325f2bb9f97bc7bcbb18d SHA512 85f5a762f9411142e5ac28144bd380f07f0633ed2e44d8a2545be9fb8f42abaca6b5d45631b4be83b8e8b9beca7438bc52f25615c3a410a3a1249474b1aca407 +DIST proc-macro2-1.0.86.crate 48958 BLAKE2B 4b89e07f23af8328dbb34fe2b3f1b202f1e6a3885a6269740a23359b41bb4099ac2484565d3b2b0936261689ca525785ac620c766997234fd8d0f409e80e5ea3 SHA512 1cdb7e22a35ae231d880c9420784c9acf97bda2db258b3d34aae5061dc1858449defe19a49e12c6a4173906aa72a4115059ac2db0fc760205fd2ab8b5b414434 DIST pyo3-0.20.3.crate 434673 BLAKE2B 1dcb881fd1fe5c76e9b4951f4d95fcd1daa1845c226a4ab1db4283cabe67bda822ff03e3cc85d797fe4665a1614229e7406dea65ec5e99ce4aac96b973a7f55d SHA512 77cce558fa60bbd8d9981ff5e62fdfa9bac94bd650b287fbf14ac93ef1c326c8ae7fda82d744e3582df03cab8adf490e0f2752fabd9ae3de044e7d80984e0350 +DIST pyo3-0.22.1.crate 536682 BLAKE2B 5c30834d5d30c2745d9133993039f9f88cf969ecee1119a4a82c8b5b5afa4b4d677c940666d250ac6769efb0d6bd767d2717d7eb6b65a93aee7c58e8e6cad88d SHA512 184829a31dad378d9d2e73e0cb3242d2113935e80f7f5289c89029f55c6b41d707b9e8ae631a5f04287f74b211a302d745003afe4e59c6cd027ffac5baf652ef DIST pyo3-build-config-0.20.3.crate 30060 BLAKE2B ef122b0b7d840d5362928bac76e1299b333775ec5c49a3bf23a19eccec074917931356bbf719c6d700999941bb6a396948ee7f8761e685c8e9251af07ba0cadc SHA512 70685415bba443787dabb9c61ca3702aefbcacb0705471b496b4f01efe34291735321d91243355b4be9aed8b243e393c09fb65556f1b926ac7f22f64560bd927 +DIST pyo3-build-config-0.22.1.crate 31205 BLAKE2B 5f2f09cd97643c0b3af372b24c07b65860eb3d502978fdd066c58641af207ed7e26a2a6b1b7855490dc7bf39920c990a17f260f1d91addcc8020df67cac4ea70 SHA512 4033d54c6ebe1ecd685bb4cf6b8440b56d700c7714296001129278c590cdb8007709558443863bfbd5a633df6d1d8997e4b643e92bf42fa2650e547c8f818108 DIST pyo3-ffi-0.20.3.crate 65024 BLAKE2B 33e79a02c7ab85f4767e02a39d8553ddc015c80d13bea674885ad8a18d89bd90f866cc39d81ecbf56270ebe87d29bca48f635c4e73ec99df02ce425f1427cb31 SHA512 3d1ced58e243be7cee4a3ca831dc08a1631fcd511c707dd3bada87d7662807dea2d88393d76e56ff19a6d1c2804d93b5b6b7b5efd36b9c275d66fa1bb1bfc384 +DIST pyo3-ffi-0.22.1.crate 67422 BLAKE2B 5dae443139a2223dbb4c29357ece0f730b9b01f92b0da61acf3993b840e410fcc0a8bf4384953283536e9174c52240ab12a2a6537ef3ddc613aa7cef0aaf5756 SHA512 ea77aa12d0d2d96c25c260bef26ec1ef38bd22a30a513f10b2bd95f27cbce50f21b46b7c1ecee7874d2fedd79607283c6798ec17ada5de009ec64c07f0e7ac95 DIST pyo3-macros-0.20.3.crate 7920 BLAKE2B 0510accf51cd83390cbb7b6ba4ec9f4610e3dbb7448d1213994013487ae81bb087df1ba0076a3862e5ecfd172b7846f9439a2d86950a93b016aae565ced4f03b SHA512 454f3c0c054aa131ffe955e4be1af061005b9c81b4d80702827e19b983224c118dfea474da515d5fc2c79cfd3fa21204ed4af2d9e81427123e0a78bd246a23f8 +DIST pyo3-macros-0.22.1.crate 8029 BLAKE2B 5ecd6f26cea60539134e2ad29620227cdf3a189566518020b00e7d362f87754a5ce793359e770f09532f7c4bdf65cd53d05b9fb488cfc320ffa89dbd3e7b0757 SHA512 230a1440e89f0fc9413515f5552495c94576c3cd6d243bf3a304a476d6a24843a18bd37bcff9d1f3569c733c1e3663829c2a8a92a5b19b691cbd049a2beb8d8c DIST pyo3-macros-backend-0.20.3.crate 49797 BLAKE2B 59c55d482577ce105db3e19a1db794eaab8221d7de01197716b75d5d2602e0f27c86aaae527eae7098eafad311144550bd597efe8cd6560c82dc435021f3428f SHA512 e177ee0d6a538a555fbe9108e3e2c20102622b2c9b9696ae309189e5c4d068efad2132afd4a97d734ebabb4d7146980a26cb68dc05d5eb88f338be2ad0cd651f +DIST pyo3-macros-backend-0.22.1.crate 65589 BLAKE2B 9cd0bcf4e30a60a00a8645c6b3deedd9cd3202dbfc783940993c9af5b4e21eaa04747bbe7a7647dd707c48c14d255b07e961121486f8c5ee84c4ce134229ac47 SHA512 4d79a4edae12e73fb22e66100be0d7774279515ff5b3de43c4301162fb697bc8ef11fa035f5da6d4363b08e61d6da7382bac6a6b455b4295e5b8d0fca332db70 DIST quote-1.0.31.crate 27881 BLAKE2B 47c8ac1051f7fa03d002420ade3cb18bf2aedc6ba922d13b117c016ee89c3326bea5cad32ec2f0e5ac1afcce68982f20b3f973914c205e6d6f426487989c6ec4 SHA512 8b2ec131937ce53f3fa01e68fb9261ed6442222e513cbe86f62b6da3cf3051cda0d134dc8028bc6c992fa63735ef3507490a169f8b4af1d6fc17058c6d2faaab +DIST quote-1.0.36.crate 28507 BLAKE2B b93495163ed205e33543ed45f084870240d479071d643704b6e348fb9ada6e1d8401893c13348b9964f4b6b17ddb96cb5458eec540f0d761655fcb96a4cd9129 SHA512 f1f002a912692f7ffd4912ca980ec57ff4aca3a7d9e2e42e9e3409e2105c9f59d86c05719f6af309bccaef2f8843b0848a6e3afda3356e045d8e7cc5956ae685 DIST redox_syscall-0.3.5.crate 23404 BLAKE2B 85aa4299d9816666bf576f523da5cdeae87b3c8fbb2af103e82258d23f73303c068a4b6c3ef4117ad67958cb31e41f836a9f59f2ce1bc52c23605e34399afcf1 SHA512 16f8f4766932bb54e4740cfdb4f0802f76246c0bf88c1d76c69c115949b124b625d8c3b85d8947073c2e9544f425aa16c10f71fabe3c03d29e424c47fe4ccdde DIST rpds-1.1.0.crate 69493 BLAKE2B f2d02c758de1abd46ff133965e0491a0276e4a95be5b64b6c83947bf8b3718896781eb96cf96d4abac84aba0c7caaa5e95abf1364ab2ffd65d573d0af212e058 SHA512 b24640e34c2f88ecfff5efb1581941eb02987bb7b342dc439513e8d7c8ee0afa63949f8dee09bf8f445ec6f3b3ec22d2927d3d03be05fee3c651b29c924a6b3e DIST rpds_py-0.18.1.tar.gz 25388 BLAKE2B 9f843e7530062c0564a67bae8d8ec15155f0a68cd53b69a52906ba3176d97fc1388d599fddc7bb804a88c77bd5b57fd0f54ed718558355a59100ce3b85b851fe SHA512 3ad144fe399eab121fe6b6ac4fa0a711dc1cc63763705534606d125c66f0e1b68955e53789ec885d217848d1a0c52c8a069905abdcc24d207d16ee65f4050886 +DIST rpds_py-0.19.0.tar.gz 24613 BLAKE2B 9c6e06a4e68747b58d623d17379c2bbe4210f66735b3b39f5c7163491c86ad6125d4134c4227b85add9a52a785378196814cd3994af0e7d4c77a463db68da82d SHA512 fccdf7a43c6319ec950ae3f58eb8c7c45f0fb838607512f6724ecc0b9ca2a6c5c97239af67fbd18980d926b636b3514fa1d2bd7b4cfd009aacd1596d91b4ce23 DIST scopeguard-1.1.0.crate 11470 BLAKE2B f774eb90b7d3ffb2efba47518e9d1dead4017ab4b38a4bd74914daa84a5af4bf9eb63da0496e3924499d79cd0439c37447aeda4a21226f95645bddcd6becfabe SHA512 368fa5726df8f42b599993681579a9ffd0196480ee3cd0f9f671e8493f3bedd1e1779bdf2beb329e77e0005fa09b816e3385f309490c0f2781568db275d4d17d DIST smallvec-1.11.0.crate 34680 BLAKE2B e54d56f6bbffbfa7ce5fe5f04e325b2e5cf19d290e4be278bc00a136e26284625b9c18c7c2b10b7fb8fad0ea7e3770f3cdbcfbaa913f5ac08d0a2f8b4e0de188 SHA512 41bfbecbc2c244497568a41724d65791ec3fd6d8057813d521367cca316c09c2b28fb3973826236b01c1f5d2f905d8d22b0c3c47f957a9ff5d7685591f15ccd7 DIST static_assertions-1.1.0.crate 18480 BLAKE2B 358dd5ac413d06f62da0388e2016c5fcb8ec68fd7dceb0dbbcb97665c032b7509b7e083c20701648b6a9174485f117c02682ae4bde7ef037e80a85cdf6a0c86e SHA512 46d0e35f77941dee6f60f574c130472248063dc38494c1c4f84f7c048244cc2a58a86fe17c0990e3f0f01406b75ed385a13d00058612b27cf0e867c8d31c92ee DIST syn-2.0.32.crate 242504 BLAKE2B 2c2938c0d711c684c9baf95538e2e76220418646590474b2b654d9242d2818aa7c3e5990208fe231ef64903df17edbbf6cc930e6224c964cad4eae5aeaeae781 SHA512 609f125f8138d17b1185760b1a63f3713079f5214fb56c23012229a56d10ac1c12654466c9ad1ecd6b2aff1126d125abfb0a42bd7f669635e5024b962b0cb0af +DIST syn-2.0.69.crate 265441 BLAKE2B b01576c2c86426d2bbb2c9553dc1dce6a309d9922c35167ee6a718ad08cf3d0a22f0aed4d4c547cdbed85b47283e5b60a128fd1bbb230a6687f0c28af3a9c228 SHA512 fddc0f1ffa3e68ce57833c6ff18382296838287dd98f9f77f679ced471c3f801af30376363a870232f337bda27b3ba6ea93074f8e3c05ee390bcc024e3690bea +DIST target-lexicon-0.12.14.crate 25508 BLAKE2B 5ebb6b49e5c3b0057959557651287d4bf5ffe5b499340019ff64d5fc3b64e780e344982e358c94b1b25a20bf0f526a584aeecc704695b50a55cc268dd65edb97 SHA512 3410ecc0faf854f49c41c99f83972960e67065b1e0e78557a7c4996d996109bfd167d2121a019f5256f996c896cd45af032038ab7918fdcc6ee6311693ce951a DIST target-lexicon-0.12.9.crate 24532 BLAKE2B 7f09be1827a5f9563b842c38aff659432ec61b66b814ebf4cc8a963daf6c93e7dc453a6966aa02d3a886007506d2b993e16ceb047bd34f6d206de76a39d08dfe SHA512 62033617d4587fb9d4b3159c78dbb628041d7ba6c5849c27a5755f173a7279aa4a03e56d31e03f87adfae50cef49eb6f0bc5eea1f6a131b87c618330d19d61d5 +DIST triomphe-0.1.13.crate 29568 BLAKE2B f0450292e3a4c2df6b400621bada57c099e5779cd3659c6171e452b552d2acaedbb2c0cd074c8f2144fbba9dc095648ba1c43a3fdcfe6fe3e01efe2561f6971d SHA512 e8364bf262d41aaf23de5c519c0303fd6ad928d8691843c7e0eda26b530c746c458837b08421559c50edf1cb8b9a2a216d7c32f5ea50be1543a2dec2cc60dd6a DIST triomphe-0.1.9.crate 26674 BLAKE2B 5c553d84da71c8a6fd6c65d1c0736864a2e8ad3842878402c7cc6023f88e72b849921d9337d5edf12d9f080b4f4d6e993e2f0f80f36683e51e293f6c26648adc SHA512 9dc43f449352944479dd147ab07f22fb185f713f1b81437ae55363870b0aa86cb9c250e132f16d4f60603f55e3388855a1dac3b80f6012aeea8cbce13cfd6756 DIST unicode-ident-1.0.11.crate 42067 BLAKE2B 3c7cac3d2bf1cbf1cf04716a482f130123e8e6940f7a90a17bc62fca44ac0069688165538f5329b95a72f735b594cfb85e3250738393ffd1b53cb0cd95077d89 SHA512 9682bbee339fb987c9d0bb6a54406d37b28b5c3587372d406402e4341900fec97e3234cd03b5c98b90b6378fd533dc452cac3de90d3ade19c4b09657e4abf6df +DIST unicode-ident-1.0.12.crate 42168 BLAKE2B 4cede03c08758ccd6bf53a0d0057d7542dfdd0c93d342e89f3b90460be85518a9fd24958d8b1da2b5a09b5ddbee8a4263982194158e171c2bba3e394d88d6dac SHA512 bc1824e1e4452a40732fc69874d7e1a66f7803717a314790dcf48867eba34bc9441331ef031e386912e52c385645c25b6ed39d4f149973b5b97371b1b96b1920 DIST unindent-0.2.3.crate 7306 BLAKE2B a57407b117e99c230750c7d4a2a0899586c8271e4ba88ecb409c976905c014f42885372c234a75fbfbedf71dbed779f95f735975d150adacdcb61152a49db4c2 SHA512 2f1eb420ea3653b00d3e5fa0c2c105da8fd8a37cb3e699373c168604b799fccd5f0faf0cddce4212d119c2afb0c86b41efc3a50752b83ff7beda2bd84d360505 DIST windows-targets-0.48.1.crate 6902 BLAKE2B 8e6cd47dea52131c66983cbf4982e88f7bd30416dfae4e380f7afb39f67ee0ac88d40769668dd5aba40d4415f9f00cbc2ac98d598506fed26029f5ec4df3a2c5 SHA512 e48179620cce528292167f1d5ee2deea0659569c996dc90eb4ab62b9ea8baee6c0bea3ab739e06d8793c9690bfc895545ed0039cb633ca39293de79c42ea9de2 DIST windows_aarch64_gnullvm-0.48.0.crate 366543 BLAKE2B 9b10f65089fe6da3ff38a1061783f635644ae84f567f891eaced280af68f7ff3919b34289e8850aa34554bb0346903273ff0a7fa743ca8794c2d23a9f1b0185f SHA512 80c5aa74c5669f7acff3882a8e7575f15e8d7cc58c11a1cb731ff423eb9cc9ba43cc6b80e52803c0d44e6a9001655ba87de6f43a9fe858da6d6e3a5c983a2711 diff --git a/dev-python/rpds-py/rpds-py-0.19.0.ebuild b/dev-python/rpds-py/rpds-py-0.19.0.ebuild new file mode 100644 index 000000000000..5f2226c3dd38 --- /dev/null +++ b/dev-python/rpds-py/rpds-py-0.19.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +CRATES=" + archery@1.2.0 + autocfg@1.3.0 + cfg-if@1.0.0 + heck@0.5.0 + indoc@2.0.5 + libc@0.2.155 + memoffset@0.9.1 + once_cell@1.19.0 + portable-atomic@1.6.0 + proc-macro2@1.0.86 + pyo3-build-config@0.22.1 + pyo3-ffi@0.22.1 + pyo3-macros-backend@0.22.1 + pyo3-macros@0.22.1 + pyo3@0.22.1 + quote@1.0.36 + rpds@1.1.0 + static_assertions@1.1.0 + syn@2.0.69 + target-lexicon@0.12.14 + triomphe@0.1.13 + unicode-ident@1.0.12 + unindent@0.2.3 +" + +inherit cargo distutils-r1 pypi + +DESCRIPTION="Python bindings to Rust's persistent data structures (rpds)" +HOMEPAGE=" + https://github.com/crate-py/rpds/ + https://pypi.org/project/rpds-py/ +" +SRC_URI+=" + ${CARGO_CRATE_URIS} +" + +LICENSE="MIT" +# Dependent crate licenses +LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT MPL-2.0 Unicode-DFS-2016" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/rpds/rpds.*.so" + +distutils_enable_tests pytest + +export UNSAFE_PYO3_SKIP_VERSION_CHECK=1 diff --git a/dev-python/sentry-sdk/Manifest b/dev-python/sentry-sdk/Manifest index 577ba8d95d85..b45462f9f872 100644 --- a/dev-python/sentry-sdk/Manifest +++ b/dev-python/sentry-sdk/Manifest @@ -1,3 +1,4 @@ DIST sentry-python-1.45.0.gh.tar.gz 475425 BLAKE2B 8dc46154dfc1c7c9104a706be032b5269d407dee6845da252f1c603ea4f9486d02d1d3c6bec314064b821dee31b503d07a9c17935ca1f4dd6cc4d7b9c3165094 SHA512 dad23a3f6a8e6ef5fe78e1d38a61977d8974edf306d5688537f331801d8fa0f60743d18cc3dadf6e9a9666c55a01c98b9ff8d8808ece7d8f95ee68a69b6cb9be DIST sentry-python-2.6.0.gh.tar.gz 519912 BLAKE2B 065aa2a633c24f163e483fe6ace9696b3bb088caae2eedaff7bbfc09213bec593f1db5a70b41f9771db602ece77d7107f51945683799de35ad59aa2c10f0a47f SHA512 f69ccc15154ea10302610329bc9d80fb9cf249a9996b99b34268468b010a24e90ca46e62b223b3331518a2ee57c6e3e028e6d6b2d1e0c9bbac4f11176403c790 DIST sentry-python-2.7.1.gh.tar.gz 528495 BLAKE2B 7846e726aaca3d916a5b901aa1cde6ac04e79c32f71a631955a354143fc9937ba8881ccf1e3ed387ec12afcd4e6734ea4eee0614512447bcd58d8875fe97cd35 SHA512 afe034553ddb5eeefa00db26e13cebe82d946f990eb62f8cfde670ad5d9d5c93c0ffb2d0ed5f01f55ac533dca66ab6f53553e5b8f011e08705213cb515146516 +DIST sentry-python-2.8.0.gh.tar.gz 529314 BLAKE2B b5017cd8f7cb17174e16902f8fa8c18dfeabb807a85eb9bd2e7ac0009328b3b4a3d49b7a32d81abe4315204e416599d8a518dedd3cf6abfc7761a5df30da8857 SHA512 cd67efd18fa140032da4d1cf1aecb7025b0fece980daf1c6a21c4dbeb459c3bd6ba2c29f80a8e26325dc3f211c6d5cbc9d769e5a1098871058cec6e3e9c0ef03 diff --git a/dev-python/sentry-sdk/sentry-sdk-2.8.0.ebuild b/dev-python/sentry-sdk/sentry-sdk-2.8.0.ebuild new file mode 100644 index 000000000000..79da2b2a5760 --- /dev/null +++ b/dev-python/sentry-sdk/sentry-sdk-2.8.0.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=sentry-python-${PV} +DESCRIPTION="Python client for Sentry" +HOMEPAGE=" + https://sentry.io/ + https://github.com/getsentry/sentry-python/ + https://pypi.org/project/sentry-sdk/ +" +SRC_URI=" + https://github.com/getsentry/sentry-python/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/asttokens[${PYTHON_USEDEP}] + dev-python/executing[${PYTHON_USEDEP}] + dev-python/fakeredis[${PYTHON_USEDEP}] + dev-python/flask-login[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pyrsistent[${PYTHON_USEDEP}] +