diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
commit | 7f0ccc917c7abe6223784c703d86cd14755691fb (patch) | |
tree | 8c6793f68896b341e22f33d7e6cef88e481f4a8b /dev-python/parso | |
parent | 9aa80713372911cec499b3adb2cd746790920916 (diff) |
gentoo resync : 03.07.2021
Diffstat (limited to 'dev-python/parso')
-rw-r--r-- | dev-python/parso/Manifest | 5 | ||||
-rw-r--r-- | dev-python/parso/files/parso-0.8.2-py310.patch | 29 | ||||
-rw-r--r-- | dev-python/parso/parso-0.7.1-r1.ebuild | 14 | ||||
-rw-r--r-- | dev-python/parso/parso-0.8.2.ebuild | 18 |
4 files changed, 60 insertions, 6 deletions
diff --git a/dev-python/parso/Manifest b/dev-python/parso/Manifest index 49e3c4e3e063..9d8d8382bfb1 100644 --- a/dev-python/parso/Manifest +++ b/dev-python/parso/Manifest @@ -1,7 +1,8 @@ +AUX parso-0.8.2-py310.patch 1128 BLAKE2B f052039f8aef2913cef406c97d55e1afdcd76e46d2a64e2e2f1fd2ac1b7571950ca816213b155602f7b974d01996876a4a7bb0b92f49161d9b29e4ec98950918 SHA512 5aaff0ca295195674006f1435863ff59eac121189c938ef44428eba929a2d76daea9fffb51feebcc75502dbdfb5df7ead18d62c4ee98cb53c35129b81c562810 DIST parso-0.7.0.tar.gz 395175 BLAKE2B ac407b711b6229a93864e339b3632563d3fcd7f84e22a43bd89282300b931f58d638ab8a64c441dc183852576261be18a3be471b0824b6e56fb69025cf666d6b SHA512 41ad60b1d7dff682281059aabff0d43ccd3048b6cc6ee3e9e141d4a0a965fd99449f6d3f23689914c1f7bda371e3cc86266775a1c23fb1c430ea689c916fbb71 DIST parso-0.7.1.tar.gz 399842 BLAKE2B 1e47c1dd6846d01aa5820d7cedc3eafcf12ea0d4a2e95fa3f54429633b1c12dc39a4abe237fa46eb629408006777bd1f512cf878025b55119568ac19729b8c19 SHA512 318969a7a941c4a0948e58643b07b6f5c446ea166b3a8e44a556f0677ec9a36d7dc8c6d37ca7bce3f8276ee3d7144e22fbaaeac90c738fb90f7e94a0cf8abf7d DIST parso-0.8.2.tar.gz 394419 BLAKE2B f4e86ae55140adc9bbfdd34a8044e7fdfbf9d318a6385ac5feedc07127061943c2d690581af144f158846e3bf6f82124046c7e625369a4055ab92a54f9210c49 SHA512 a90810ad89301d804d215392ed77593b015f13bc7ef8512302a8893b314a9e74c15e2aaa77157c8595a134d3481e8115f306f9628835271478837ec6f19e645f EBUILD parso-0.7.0-r1.ebuild 735 BLAKE2B f4a528e4639cb6eb70f830b234bd8391281571e9c7a3f21c02cc20b2361de21888be0549b356f4a9643e692fa2ae17471ff9a7a87a6edf3826afc73349441ee1 SHA512 adb6667165cee33cb3d46d737473e8d5c01b7313c88d2af8161a9933f6ac6c6ab70ea098574cf1d0f161cd5a02ca16ad2b5abb99c23ac7932a2501f8aec6a3c9 -EBUILD parso-0.7.1-r1.ebuild 555 BLAKE2B b714ae60de33af14b0093768310ce7714ca139b6d9d97641cb28216d2c4e5b2af82b7e198f21cfa8b57bbeb8fb521c7a1096beaba672aa109e08708384d6c0df SHA512 f1a064feca5a367e49a0d4c09035633ab5cf2659fccff08c158dd01693e8548c885ff656461a9b356d946447132299f0760f0bf81bc13646d100266b3135cf50 -EBUILD parso-0.8.2.ebuild 562 BLAKE2B bf7eba8c3272bbd63d9e3d124762cd24c4c9473de760d19773deae58ecba913aeaa557d122809ee34eceb64f1f5f99170c4181889ac09e9c9751fca16fbcba0d SHA512 aa81e4af15969b635637a06ff225a2bea55c3c3b73b65d7744d9701ce7c252635440d002423a1e7a8216624f9bae99cff5322ee0997cce7c6c31565b924ec6f7 +EBUILD parso-0.7.1-r1.ebuild 853 BLAKE2B 394b8ee3a1f2eb7fff1b1a81c4ee335166f65413ee9491e77c6cb9b84a96889d59ac6ca3c5cc3ec1e051f36e7c3ccd7d4bf173f31e296e7d0642b58317055fc8 SHA512 2f7e636c246a721be808ba86db60f63b24bbad3d1e67e4c723a61f7dfe84e96fa208cf61a13500b3a0ef62912900f1f47c09c9c76609ec57d18bfb1ab045b642 +EBUILD parso-0.8.2.ebuild 898 BLAKE2B 438f01c3e7c86b45a45ab1769ef09a423ad3fd61af7de4f8652910ad76f5c0a2e84de49e52bfb0c3cb6a12cfbad9196cba47e8b2263d054eb922d6ce745e3aba SHA512 d58a25c78bb979e61aa6d9d1d7c68359aa51c33d30bfbd82ba252c1808602e2c5caa25d80d835252cd6473ab2b60e311aff6b6d3c50ea6e860f898351e937d82 MISC metadata.xml 402 BLAKE2B 3dbbdbbd15ec82aa4f38d92f52f4342a14b209edff3aa09b5dc1866784533e21f8c5d75146e3b9b535c01bb4dd36cd259abb2deb959382866242d99fb5d8fad3 SHA512 61cca7520333f595582f3e52602afa09d685d8072a211c4b8a2930fccbd98645c8c69ef7f687a25c05e2e2dc7ddda2fee16b7666cc2854b0b5ac6e23a95bac42 diff --git a/dev-python/parso/files/parso-0.8.2-py310.patch b/dev-python/parso/files/parso-0.8.2-py310.patch new file mode 100644 index 000000000000..2f3487dd2f61 --- /dev/null +++ b/dev-python/parso/files/parso-0.8.2-py310.patch @@ -0,0 +1,29 @@ +From cbb61fb81955a8cdbb5cdeedc9bcfffa39a5f270 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> +Date: Thu, 22 Apr 2021 21:04:49 +0200 +Subject: [PATCH] Relax a test regex to match new enum repr in Python 3.10.0a7+ + (#186) + +bpo-40066: Enum: adjust repr() to show only enum and member name (not value, +nor angle brackets) and str() to show only member name. +https://bugs.python.org/issue40066 +--- + test/test_pgen2.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test_pgen2.py b/test/test_pgen2.py +index 9b0dd34..85ccacf 100644 +--- a/test/test_pgen2.py ++++ b/test/test_pgen2.py +@@ -339,7 +339,7 @@ def test_left_recursion(): + @pytest.mark.parametrize( + 'grammar, error_match', [ + ['foo: bar | baz\nbar: NAME\nbaz: NAME\n', +- r"foo is ambiguous.*given a PythonTokenTypes\.NAME.*bar or baz"], ++ r"foo is ambiguous.*given a (PythonTokenTypes\.)?NAME.*bar or baz"], + ['''foo: bar | baz\nbar: 'x'\nbaz: "x"\n''', + r"foo is ambiguous.*given a ReservedString\(x\).*bar or baz"], + ['''foo: bar | 'x'\nbar: 'x'\n''', +-- +2.32.0 + diff --git a/dev-python/parso/parso-0.7.1-r1.ebuild b/dev-python/parso/parso-0.7.1-r1.ebuild index d06ec052d5b5..643c8aad785b 100644 --- a/dev-python/parso/parso-0.7.1-r1.ebuild +++ b/dev-python/parso/parso-0.7.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 @@ -13,7 +13,17 @@ SRC_URI="https://github.com/davidhalter/${PN}/archive/v${PV}.tar.gz -> ${P}.tar. LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~sparc x86" +KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv ~sparc x86" distutils_enable_sphinx docs distutils_enable_tests pytest + +python_test() { + local deselect=() + [[ ${EPYTHON} == python3.10 ]] && deselect+=( + # py3.10 changed exception messages + test/test_python_errors.py::test_python_exception_matches + test/test_python_errors.py::test_default_except_error_postition + ) + epytest ${deselect[@]/#/--deselect } +} diff --git a/dev-python/parso/parso-0.8.2.ebuild b/dev-python/parso/parso-0.8.2.ebuild index 3ceece3224e7..8ab7282e6cfc 100644 --- a/dev-python/parso/parso-0.8.2.ebuild +++ b/dev-python/parso/parso-0.8.2.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 @@ -17,3 +17,17 @@ KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv ~sparc x86" distutils_enable_sphinx docs distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${P}-py310.patch +) + +python_test() { + local deselect=() + [[ ${EPYTHON} == python3.10 ]] && deselect+=( + # py3.10 changed exception messages + test/test_python_errors.py::test_python_exception_matches + test/test_python_errors.py::test_default_except_error_postition + ) + epytest ${deselect[@]/#/--deselect } +} |