diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/typeguard | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/typeguard')
-rw-r--r-- | dev-python/typeguard/Manifest | 7 | ||||
-rw-r--r-- | dev-python/typeguard/files/typeguard-2.13.3-test.patch | 44 | ||||
-rw-r--r-- | dev-python/typeguard/typeguard-2.13.0.ebuild | 39 | ||||
-rw-r--r-- | dev-python/typeguard/typeguard-2.13.2.ebuild | 39 | ||||
-rw-r--r-- | dev-python/typeguard/typeguard-2.13.3-r1.ebuild (renamed from dev-python/typeguard/typeguard-2.13.3.ebuild) | 18 |
5 files changed, 60 insertions, 87 deletions
diff --git a/dev-python/typeguard/Manifest b/dev-python/typeguard/Manifest index ce392780834e..bae61decc5e2 100644 --- a/dev-python/typeguard/Manifest +++ b/dev-python/typeguard/Manifest @@ -1,7 +1,4 @@ -DIST typeguard-2.13.0.gh.tar.gz 36849 BLAKE2B ef9b724bdd5ef127b6ede4ff4cb1d4f4794b0e921512d2cbf474145bf64de0cae85b7f5283dfc7f0b750e79e1c44c03ce6b4c0f24a33ae961c428aa57f3b6ae5 SHA512 48df7a9d6ee2cc11b5118432afcda5e0939712ff66d67f3945e26047c0880a05c133b505869ebcef59ce438260b9f6d1806121d0d4828853bc3b9c3468769f39 -DIST typeguard-2.13.2.gh.tar.gz 37142 BLAKE2B 0aa3f53bc0d1aa485d071cd52d2458ab83c4d5eba88708240c100a3205a2714f39465cb48d82118eb6bcf1e30579e50bb5dffb31b3f2b673573481772d650a23 SHA512 a11c1b9ee417a99a8bd09f4b5b05c7cdf319748b8221a49d1ff76854e2f432768224437f82a41c0166e5b148a550b58afbabfa1935cdc2a049cda3010edd052a +AUX typeguard-2.13.3-test.patch 1436 BLAKE2B 993cde140e693129636598fb2245bd3db3ef2e90a0e369b84f13bb1e268de01da6fce0887ce5f8773c94329004a572f6af0faa9d8e9615775ac039ccc860e20e SHA512 5ee8579344ff5a5356d157933cb67b25a3854ef2e64abf2a6864a49f8fdde7ecc8aabf31baa952e10a986f04235f1e2214947a7f064eaa155e40f60249350e68 DIST typeguard-2.13.3.gh.tar.gz 37436 BLAKE2B a3cb616692119c64a9dc0d0bae25cc661b7974a0b6cf6632fa403f7c5430873570b1aaa310bc03843deee6f77a831c303ea9d9091db596eb565fce43980bbb13 SHA512 26c31ee9670650d1969320187a924d29d986894a38f1026af58f705b132b64be3b6e2ac34729f966f5d302d486334b5a5d9e65fb206245b82b0ff0852020b609 -EBUILD typeguard-2.13.0.ebuild 787 BLAKE2B 24994432b4544aa4a498917ab12f641451b99ba673714e437b3b203176345c0e557546c55de4bcb223e42a63cfa836cff510a2a9979d24e2c62aa578d5a139fd SHA512 44fad13c13e574b9ee8225400e58b1512828980650ed877d9497b20a07ea73d48cd8bd8e4cbd30ff8fcb6b1e10ba75c296b197c63c8f54226917ee4333963ba2 -EBUILD typeguard-2.13.2.ebuild 787 BLAKE2B 24994432b4544aa4a498917ab12f641451b99ba673714e437b3b203176345c0e557546c55de4bcb223e42a63cfa836cff510a2a9979d24e2c62aa578d5a139fd SHA512 44fad13c13e574b9ee8225400e58b1512828980650ed877d9497b20a07ea73d48cd8bd8e4cbd30ff8fcb6b1e10ba75c296b197c63c8f54226917ee4333963ba2 -EBUILD typeguard-2.13.3.ebuild 846 BLAKE2B e1baeae595157360ca01503c75327f9a8105d797795ceca35fa6c0ecb4b8d7bb47c3b9ea2f728e157acd9e43b5316da6e6a1213114df827b656ce11f6fd1c737 SHA512 4292f277d7251c86b559d21be26346a8a55bf047da85cdd1a78199e9fa697a0e7ba7a885a4dbd41ecf843e3d5968f7025bc4b255036da753da79ce49d9b28f27 +EBUILD typeguard-2.13.3-r1.ebuild 991 BLAKE2B 51aff6cc0d422148a35805e2da530b6cd90c3997968d80aa791fa2599e4f6d729b42e82c48698c757aeffc8093e681c0ce0d246039605f6eb5d1b05bdb79ad00 SHA512 1ea080ed184cec3007b4583f7890045dcb8e15f9b3f5d36afd25d8cac202b3f7f1a1eb39ff907a208b125d59d8323d60aca28d15be53b9ce129460a7326bdd25 MISC metadata.xml 350 BLAKE2B 78dc7293e08dae7974b38d84ce457ceddc5888a7278c1b149b8ba3057f07130b2e002dd78a9df91fd09d85b7ebc26272b4c78dd96c6cdd3938cff67b9c451366 SHA512 1fe4c4164b0732bd294815dacdd46a70ace6e8886343491232fb59b6b3697316c3eac5dd72e2e4758d87fd093d845f4453b8f278009be640ca1555413f47e869 diff --git a/dev-python/typeguard/files/typeguard-2.13.3-test.patch b/dev-python/typeguard/files/typeguard-2.13.3-test.patch new file mode 100644 index 000000000000..3c01c018ea86 --- /dev/null +++ b/dev-python/typeguard/files/typeguard-2.13.3-test.patch @@ -0,0 +1,44 @@ +diff --git a/src/typeguard/__init__.py b/src/typeguard/__init__.py +index 5684d63..27fa30b 100644 +--- a/src/typeguard/__init__.py ++++ b/src/typeguard/__init__.py +@@ -61,22 +61,25 @@ except ImportError: + from typing import _ForwardRef as ForwardRef + evaluate_forwardref = ForwardRef._eval_type + +-if sys.version_info >= (3, 10): +- from typing import is_typeddict +-else: +- _typed_dict_meta_types = () +- if sys.version_info >= (3, 8): +- from typing import _TypedDictMeta +- _typed_dict_meta_types += (_TypedDictMeta,) ++try: ++ from typing_extensions import is_typeddict ++except ImportError: ++ if sys.version_info >= (3, 10): ++ from typing import is_typeddict ++ else: ++ _typed_dict_meta_types = () ++ if sys.version_info >= (3, 8): ++ from typing import _TypedDictMeta ++ _typed_dict_meta_types += (_TypedDictMeta,) + +- try: +- from typing_extensions import _TypedDictMeta +- _typed_dict_meta_types += (_TypedDictMeta,) +- except ImportError: +- pass ++ try: ++ from typing_extensions import _TypedDictMeta ++ _typed_dict_meta_types += (_TypedDictMeta,) ++ except ImportError: ++ pass + +- def is_typeddict(tp) -> bool: +- return isinstance(tp, _typed_dict_meta_types) ++ def is_typeddict(tp) -> bool: ++ return isinstance(tp, _typed_dict_meta_types) + + + if TYPE_CHECKING: diff --git a/dev-python/typeguard/typeguard-2.13.0.ebuild b/dev-python/typeguard/typeguard-2.13.0.ebuild deleted file mode 100644 index 9ea46fa44506..000000000000 --- a/dev-python/typeguard/typeguard-2.13.0.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="Run-time type checker for Python" -HOMEPAGE=" - https://pypi.org/project/typeguard/ - https://github.com/agronholm/typeguard/" -SRC_URI=" - https://github.com/agronholm/typeguard/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - dev-python/typing-extensions[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} - -python_test() { - local EPYTEST_IGNORE=( - # mypy changes results from version to version - tests/mypy - ) - - local -x PYTHONDONTWRITEBYTECODE= - epytest -} diff --git a/dev-python/typeguard/typeguard-2.13.2.ebuild b/dev-python/typeguard/typeguard-2.13.2.ebuild deleted file mode 100644 index 9ea46fa44506..000000000000 --- a/dev-python/typeguard/typeguard-2.13.2.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="Run-time type checker for Python" -HOMEPAGE=" - https://pypi.org/project/typeguard/ - https://github.com/agronholm/typeguard/" -SRC_URI=" - https://github.com/agronholm/typeguard/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - dev-python/typing-extensions[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} - -python_test() { - local EPYTEST_IGNORE=( - # mypy changes results from version to version - tests/mypy - ) - - local -x PYTHONDONTWRITEBYTECODE= - epytest -} diff --git a/dev-python/typeguard/typeguard-2.13.3.ebuild b/dev-python/typeguard/typeguard-2.13.3-r1.ebuild index ea613cada856..d7652e57ad9f 100644 --- a/dev-python/typeguard/typeguard-2.13.3.ebuild +++ b/dev-python/typeguard/typeguard-2.13.3-r1.ebuild @@ -3,16 +3,20 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + inherit distutils-r1 DESCRIPTION="Run-time type checker for Python" HOMEPAGE=" https://pypi.org/project/typeguard/ - https://github.com/agronholm/typeguard/" + https://github.com/agronholm/typeguard/ +" SRC_URI=" https://github.com/agronholm/typeguard/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz" + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" @@ -22,12 +26,18 @@ BDEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] test? ( dev-python/typing-extensions[${PYTHON_USEDEP}] - )" + ) +" distutils_enable_tests pytest export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +PATCHES=( + # backport from https://github.com/agronholm/typeguard/pull/243 + "${FILESDIR}"/${P}-test.patch +) + python_test() { local EPYTEST_IGNORE=( # mypy changes results from version to version |