diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-08-06 01:35:27 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-08-06 01:35:27 +0000 |
| commit | c49cf756b59448a526cd6c7a6f64ead795d672fa (patch) | |
| tree | 454939c374a76b747e8c2daeb502dcadc9d3913e /dev-python | |
| parent | 633486177303e5c26033ac89dbc6b50f6098a8c7 (diff) | |
| download | baldeagleos-repo-c49cf756b59448a526cd6c7a6f64ead795d672fa.tar.gz baldeagleos-repo-c49cf756b59448a526cd6c7a6f64ead795d672fa.tar.xz baldeagleos-repo-c49cf756b59448a526cd6c7a6f64ead795d672fa.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
36 files changed, 210 insertions, 174 deletions
diff --git a/dev-python/anyio/anyio-3.2.1.ebuild b/dev-python/anyio/anyio-3.2.1.ebuild index 8d87f314b081..6775be16a936 100644 --- a/dev-python/anyio/anyio-3.2.1.ebuild +++ b/dev-python/anyio/anyio-3.2.1.ebuild @@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" RDEPEND=" >=dev-python/idna-2.8[${PYTHON_USEDEP}] diff --git a/dev-python/cachelib/cachelib-0.2.0.ebuild b/dev-python/cachelib/cachelib-0.2.0.ebuild index 1bb489332930..4ac18a8dea17 100644 --- a/dev-python/cachelib/cachelib-0.2.0.ebuild +++ b/dev-python/cachelib/cachelib-0.2.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" +KEYWORDS="~amd64 ~arm x86" BDEPEND=" test? ( diff --git a/dev-python/cheetah3/cheetah3-3.2.6.ebuild b/dev-python/cheetah3/cheetah3-3.2.6.ebuild index 0153b3cc350a..c497336443c3 100644 --- a/dev-python/cheetah3/cheetah3-3.2.6.ebuild +++ b/dev-python/cheetah3/cheetah3-3.2.6.ebuild @@ -2,8 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -DISTUTILS_USE_SETUPTOOLS=bdepend inherit distutils-r1 DESCRIPTION="Python-powered template engine and code generator" @@ -22,6 +22,10 @@ BDEPEND="${RDEPEND}" DOCS=( ANNOUNCE.rst README.rst TODO ) +PATCHES=( + "${FILESDIR}/${P}-fix-py3.10-tests.patch" +) + python_prepare_all() { # Disable broken tests. sed \ diff --git a/dev-python/cheetah3/files/cheetah3-3.2.6-fix-py3.10-tests.patch b/dev-python/cheetah3/files/cheetah3-3.2.6-fix-py3.10-tests.patch new file mode 100644 index 000000000000..845520fb02ad --- /dev/null +++ b/dev-python/cheetah3/files/cheetah3-3.2.6-fix-py3.10-tests.patch @@ -0,0 +1,27 @@ +From 112dddd8fa5fb9c285fb8ef2818abfef99365070 Mon Sep 17 00:00:00 2001 +From: Victor Stinner <vstinner@python.org> +Date: Tue, 19 Jan 2021 11:19:15 +0100 +Subject: [PATCH] Skip test_import_bootlocale() on Python 3.10 + +The _bootlocale module has been removed from Python 3.10: +https://github.com/python/cpython/commit/b62bdf71ea0cd52041d49691d8ae3dc645bd48e1 +https://bugs.python.org/issue42208 +--- + Cheetah/Tests/ImportHooks.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/Cheetah/Tests/ImportHooks.py b/Cheetah/Tests/ImportHooks.py +index d7b5f5d..bc0239c 100644 +--- a/Cheetah/Tests/ImportHooks.py ++++ b/Cheetah/Tests/ImportHooks.py +@@ -87,7 +87,9 @@ def test_import_builtin(self): + return + raise self.fail("All builtin modules are imported") + +- if not PY2: ++ # _bootlocale was removed in Python 3.10: ++ # https://bugs.python.org/issue42208 ++ if not PY2 and sys.version_info < (3, 10): + def test_import_bootlocale(self): + if '_bootlocale' in sys.modules: + del sys.modules['_bootlocale'] diff --git a/dev-python/commentjson/commentjson-0.9.0.ebuild b/dev-python/commentjson/commentjson-0.9.0.ebuild index 7d5f0f8219a4..531c42440e21 100644 --- a/dev-python/commentjson/commentjson-0.9.0.ebuild +++ b/dev-python/commentjson/commentjson-0.9.0.ebuild @@ -16,7 +16,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" RDEPEND=" dev-python/lark-parser[${PYTHON_USEDEP}]" diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest index 5f1ab167b26f..d7d0946290e8 100644 --- a/dev-python/hiredis/Manifest +++ b/dev-python/hiredis/Manifest @@ -1,2 +1 @@ -DIST hiredis-1.1.0.tar.gz 54620 BLAKE2B 9991745d277e87efe836c1c8eabb2016ce401e2be52c7e1b3a154350776fae6fd3c49e3096da57231e42c57bf36ba692ce26bc993d0923b5246376d8694ad058 SHA512 ad37868376de91303c15ffe6109dc7fadb4f458efdd44b7ddc0a410937a389b8e062ab7d36b1aec3fe324ecafe6b1e5e6b92f547cbf619251dad22a28e02ee9c DIST hiredis-2.0.0.tar.gz 75807 BLAKE2B dc7535f117c8ecfb2c924fe44a1cba2f02271c544588249de6794ce3aec27f66038ecb9f6364ca87b71f66ba13870a3be192eb79c1f360d2eb6dcb6dcae41caa SHA512 b9a313acdd00676dc046713a81bbf4336959f49f09bd2828997c23ca41259935047c657a4b6f81913715141a75fb6bbe7fc4429c7a5b0f4bc3d5de66b9cfa909 diff --git a/dev-python/hiredis/files/hiredis-1.0.1-api-0.14.patch b/dev-python/hiredis/files/hiredis-1.0.1-api-0.14.patch deleted file mode 100644 index 16c420228286..000000000000 --- a/dev-python/hiredis/files/hiredis-1.0.1-api-0.14.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -Nur hiredis-1.0.1.orig/src/reader.c hiredis-1.0.1/src/reader.c ---- hiredis-1.0.1.orig/src/reader.c 2019-11-13 11:38:29.000000000 +0100 -+++ hiredis-1.0.1/src/reader.c 2020-04-01 13:15:19.852085240 +0200 -@@ -167,7 +167,7 @@ - static void Reader_dealloc(hiredis_ReaderObject *self) { - // we don't need to free self->encoding as the buffer is managed by Python - // https://docs.python.org/3/c-api/arg.html#strings-and-buffers -- redisReplyReaderFree(self->reader); -+ redisReaderFree(self->reader); - Py_XDECREF(self->protocolErrorClass); - Py_XDECREF(self->replyErrorClass); - -@@ -271,7 +271,7 @@ - goto error; - } - -- redisReplyReaderFeed(self->reader, (char *)buf.buf + off, len); -+ redisReaderFeed(self->reader, (char *)buf.buf + off, len); - PyBuffer_Release(&buf); - Py_RETURN_NONE; - -@@ -290,8 +290,8 @@ - return NULL; - } - -- if (redisReplyReaderGetReply(self->reader, (void**)&obj) == REDIS_ERR) { -- errstr = redisReplyReaderGetError(self->reader); -+ if (redisReaderGetReply(self->reader, (void**)&obj) == REDIS_ERR) { -+ errstr = redisReaderGetError(self->reader); - /* protocolErrorClass might be a callable. call it, then use it's type */ - err = createError(self->protocolErrorClass, errstr, strlen(errstr)); - if (err != NULL) { diff --git a/dev-python/hiredis/files/hiredis-1.0.1-system-libs.patch b/dev-python/hiredis/files/hiredis-1.0.1-system-libs.patch deleted file mode 100644 index c11d0baa5639..000000000000 --- a/dev-python/hiredis/files/hiredis-1.0.1-system-libs.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -Nur hiredis-1.0.1.orig/setup.py hiredis-1.0.1/setup.py ---- hiredis-1.0.1.orig/setup.py 2019-11-13 11:38:29.000000000 +0100 -+++ hiredis-1.0.1/setup.py 2020-03-19 08:18:53.414214592 +0100 -@@ -11,9 +11,8 @@ - return module.__version__ - - ext = Extension("hiredis.hiredis", -- sources=sorted(glob.glob("src/*.c") + -- ["vendor/hiredis/%s.c" % src for src in ("read", "sds")]), -- include_dirs=["vendor"]) -+ sources=sorted(glob.glob("src/*.c")), -+ libraries=["hiredis"]) - - setup( - name="hiredis", diff --git a/dev-python/hiredis/hiredis-1.1.0.ebuild b/dev-python/hiredis/hiredis-1.1.0.ebuild deleted file mode 100644 index 46348d608d0c..000000000000 --- a/dev-python/hiredis/hiredis-1.1.0.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="Python extension that wraps hiredis" -HOMEPAGE="https://github.com/redis/hiredis-py/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm x86" -IUSE="system-libs" - -DEPEND="system-libs? ( dev-libs/hiredis:0/0.14 )" -RDEPEND="${DEPEND}" - -src_prepare() { - use system-libs && PATCHES+=( - "${FILESDIR}"/${PN}-1.0.1-system-libs.patch - "${FILESDIR}"/${PN}-1.0.1-api-0.14.patch - ) - default -} - -python_test() { - cd test || die - "${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed" -} diff --git a/dev-python/hiredis/hiredis-2.0.0.ebuild b/dev-python/hiredis/hiredis-2.0.0.ebuild index c648070967f1..d9b0f951d162 100644 --- a/dev-python/hiredis/hiredis-2.0.0.ebuild +++ b/dev-python/hiredis/hiredis-2.0.0.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~x86" +KEYWORDS="amd64 ~arm x86" IUSE="system-libs" DEPEND="system-libs? ( dev-libs/hiredis:0/1.0.0 )" diff --git a/dev-python/httpcore/httpcore-0.13.6.ebuild b/dev-python/httpcore/httpcore-0.13.6.ebuild index 21be57727e54..ea302902e43f 100644 --- a/dev-python/httpcore/httpcore-0.13.6.ebuild +++ b/dev-python/httpcore/httpcore-0.13.6.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" RDEPEND=" =dev-python/anyio-3*[${PYTHON_USEDEP}] diff --git a/dev-python/httpx/files/httpx-0.18.2-big-endian.patch b/dev-python/httpx/files/httpx-0.18.2-big-endian.patch new file mode 100644 index 000000000000..794609d86a50 --- /dev/null +++ b/dev-python/httpx/files/httpx-0.18.2-big-endian.patch @@ -0,0 +1,40 @@ +From 88a0a85ff795d8c23d5cd2cd113eeac957cc818a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Thu, 5 Aug 2021 17:35:54 +0200 +Subject: [PATCH] Fix JSON wrong encoding tests on big endian platforms + +Fix test_json_without_specified_encoding_*_error tests on big endian +platforms. The tests wrongly assume that data encoded as "utf-32-be" +can not be decoded as "utf-32". This is true on little endian platforms +but on big endian platforms "utf-32" is equivalent to "utf-32-be". +To avoid the problem, explicitly decode as "utf-32-le", as this should +trigger the expected exception independently of platform's endianness. +--- + tests/models/test_responses.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/models/test_responses.py b/tests/models/test_responses.py +index f1815dc..b7c2d57 100644 +--- a/tests/models/test_responses.py ++++ b/tests/models/test_responses.py +@@ -735,7 +735,7 @@ def test_json_without_specified_encoding_decode_error(): + content = json.dumps(data).encode("utf-32-be") + headers = {"Content-Type": "application/json"} + # force incorrect guess from `guess_json_utf` to trigger error +- with mock.patch("httpx._models.guess_json_utf", return_value="utf-32"): ++ with mock.patch("httpx._models.guess_json_utf", return_value="utf-32-le"): + response = httpx.Response( + 200, + content=content, +@@ -750,7 +750,7 @@ def test_json_without_specified_encoding_value_error(): + content = json.dumps(data).encode("utf-32-be") + headers = {"Content-Type": "application/json"} + # force incorrect guess from `guess_json_utf` to trigger error +- with mock.patch("httpx._models.guess_json_utf", return_value="utf-32"): ++ with mock.patch("httpx._models.guess_json_utf", return_value="utf-32-le"): + response = httpx.Response(200, content=content, headers=headers) + with pytest.raises(json.decoder.JSONDecodeError): + response.json() +-- +2.32.0 + diff --git a/dev-python/httpx/httpx-0.18.2.ebuild b/dev-python/httpx/httpx-0.18.2.ebuild index 1ad7a1463577..e66de7c7fad9 100644 --- a/dev-python/httpx/httpx-0.18.2.ebuild +++ b/dev-python/httpx/httpx-0.18.2.ebuild @@ -40,6 +40,11 @@ BDEPEND=" distutils_enable_tests pytest +PATCHES=( + # https://github.com/encode/httpx/pull/1781 + "${FILESDIR}"/${P}-big-endian.patch +) + python_prepare_all() { # trio is not currently in the tree sed -i '/^import trio/d' tests/concurrency.py || die diff --git a/dev-python/joblib/joblib-1.0.1.ebuild b/dev-python/joblib/joblib-1.0.1.ebuild index 8facc5d26ed5..a26c202c0fe3 100644 --- a/dev-python/joblib/joblib-1.0.1.ebuild +++ b/dev-python/joblib/joblib-1.0.1.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + PYTHON_COMPAT=( python3_{6,7,8,9,10} ) inherit distutils-r1 diff --git a/dev-python/js2py/js2py-0.71.ebuild b/dev-python/js2py/js2py-0.71.ebuild index 1ea23494dab3..6eaae7ba057c 100644 --- a/dev-python/js2py/js2py-0.71.ebuild +++ b/dev-python/js2py/js2py-0.71.ebuild @@ -22,7 +22,7 @@ SRC_URI="https://github.com/PiotrDabkowski/${MY_PN}/archive/${MY_COMMIT}.tar.gz LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" RDEPEND=" >=dev-python/pyjsparser-2.5.1[${PYTHON_USEDEP}] diff --git a/dev-python/lark-parser/lark-parser-0.11.3.ebuild b/dev-python/lark-parser/lark-parser-0.11.3.ebuild index 26f017578c91..4e9cb34e4697 100644 --- a/dev-python/lark-parser/lark-parser-0.11.3.ebuild +++ b/dev-python/lark-parser/lark-parser-0.11.3.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/libarchive-c/Manifest b/dev-python/libarchive-c/Manifest index 3fb8a66fd2ad..2887b129c7cc 100644 --- a/dev-python/libarchive-c/Manifest +++ b/dev-python/libarchive-c/Manifest @@ -1 +1,2 @@ DIST libarchive-c-2.9.tar.gz 46408 BLAKE2B e24d9ce56919b6c6217da7629ac3c87023f44d2f1470f6632b3e3b478d29e76edb8fed5e4f8d7a75ab5efd160588dba82d23960d0224ce571ea01af9fd7efaec SHA512 b154cfe39247050c156d57f657b9668f3b1add879b7fb5b32cbc127becee63d1898fb1c4bd60e7fe72e814f544ddefa6680d582fec28b0feed90940fae8cc238 +DIST libarchive-c-3.1.tar.gz 11145 BLAKE2B 80d8918423ec23065cfd7dc391f458bdd44ade765c5e16c23f6cd1ff760e750551d1ff16ccd524a409f466512cb4caed9d25716d12021eafc915a9904bfd0f63 SHA512 1863e2981475839aebce50aa649f603dae7d54772fb864a83613e1d94ead48b64e0edfa0046fb91d1fc985a351911dcd13a24cddfefbb5b7403da1107dc3353c diff --git a/dev-python/libarchive-c/libarchive-c-3.1.ebuild b/dev-python/libarchive-c/libarchive-c-3.1.ebuild new file mode 100644 index 000000000000..044cd8f8b5ab --- /dev/null +++ b/dev-python/libarchive-c/libarchive-c-3.1.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="A Python interface to libarchive" +HOMEPAGE="https://github.com/Changaco/python-libarchive-c/ https://pypi.org/project/libarchive-c/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +RDEPEND="app-arch/libarchive" diff --git a/dev-python/libcloud/libcloud-3.3.0.ebuild b/dev-python/libcloud/libcloud-3.3.0.ebuild index ee396fb522ae..d3b15621e1ea 100644 --- a/dev-python/libcloud/libcloud-3.3.0.ebuild +++ b/dev-python/libcloud/libcloud-3.3.0.ebuild @@ -18,11 +18,11 @@ SLOT="0" KEYWORDS="amd64 ~arm ~arm64 x86" IUSE="examples" -RDEPEND=">=dev-python/requests-2.5.0[${PYTHON_USEDEP}]" - -distutils_enable_tests pytest - -BDEPEND+=" +RDEPEND=" + dev-python/pyopenssl[${PYTHON_USEDEP}] + >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] +" +BDEPEND=" test? ( >=dev-python/cryptography-2.6.1[${PYTHON_USEDEP}] dev-python/lockfile[${PYTHON_USEDEP}] @@ -31,6 +31,8 @@ BDEPEND+=" ) " +distutils_enable_tests pytest + python_prepare_all() { if use examples; then mkdir examples || die diff --git a/dev-python/lockfile/lockfile-0.12.2-r2.ebuild b/dev-python/lockfile/lockfile-0.12.2-r2.ebuild index b3021c777b14..67da1677a351 100644 --- a/dev-python/lockfile/lockfile-0.12.2-r2.ebuild +++ b/dev-python/lockfile/lockfile-0.12.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/loky/files/loky-2.9.0-fix-py3.10-tests.patch b/dev-python/loky/files/loky-2.9.0-fix-py3.10-tests.patch new file mode 100644 index 000000000000..51cbfb348a51 --- /dev/null +++ b/dev-python/loky/files/loky-2.9.0-fix-py3.10-tests.patch @@ -0,0 +1,41 @@ +From 0d31dc24ca9688c11d1fe53fa1283728ecc50706 Mon Sep 17 00:00:00 2001 +From: Arthur Zamarin <arthurzam@gmail.com> +Date: Mon, 2 Aug 2021 18:35:31 +0300 +Subject: [PATCH] Fix no attribute import_module for python 3.10 + +In python 3.10, the `import_module` has moved from the +`test.support` module to `test.support.import_helper`. + +As fix, try to import the from the new place and if unknown try from +the old place. +--- + tests/_test_process_executor.py | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/tests/_test_process_executor.py b/tests/_test_process_executor.py +index 65d9a2c9..3bd0b12d 100644 +--- a/tests/_test_process_executor.py ++++ b/tests/_test_process_executor.py +@@ -1,15 +1,18 @@ + from __future__ import print_function + try: +- import test.support ++ try: ++ from test.support.import_helper import import_module ++ except ImportError: ++ from test.support import import_module + + # Skip tests if _multiprocessing wasn't built. +- test.support.import_module('_multiprocessing') ++ import_module('_multiprocessing') + # Skip tests if sem_open implementation is broken. +- test.support.import_module('multiprocessing.synchronize') ++ import_module('multiprocessing.synchronize') + # import threading after _multiprocessing to raise a more revelant error + # message: "No module named _multiprocessing" if multiprocessing is not + # compiled without thread support. +- test.support.import_module('threading') ++ import_module('threading') + except ImportError: + pass + diff --git a/dev-python/loky/loky-2.9.0.ebuild b/dev-python/loky/loky-2.9.0.ebuild index 1a03297bcab4..2a1b492ede5f 100644 --- a/dev-python/loky/loky-2.9.0.ebuild +++ b/dev-python/loky/loky-2.9.0.ebuild @@ -27,6 +27,7 @@ distutils_enable_tests pytest PATCHES=( "${FILESDIR}"/${P}-libc.patch + "${FILESDIR}"/${P}-fix-py3.10-tests.patch ) python_test() { @@ -38,6 +39,8 @@ python_test() { # one test that uses a lot of memory, also broken on 32-bit # platforms --skip-high-memory + # breaks teardown + -p no:xvfb ) epytest "${args[@]}" diff --git a/dev-python/loky/metadata.xml b/dev-python/loky/metadata.xml index 74ec6f67147a..2bdb82623b33 100644 --- a/dev-python/loky/metadata.xml +++ b/dev-python/loky/metadata.xml @@ -9,4 +9,5 @@ <remote-id type="pypi">loky</remote-id> </upstream> <origin>gentoo-staging</origin> + <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/minimock/minimock-1.3.0.ebuild b/dev-python/minimock/minimock-1.3.0.ebuild index d29b7ba2bb67..ff75c05f5cee 100644 --- a/dev-python/minimock/minimock-1.3.0.ebuild +++ b/dev-python/minimock/minimock-1.3.0.ebuild @@ -7,8 +7,7 @@ PYTHON_COMPAT=( python3_{6,7,8,9,10} ) inherit distutils-r1 -MY_PN="MiniMock" -MY_P="${MY_PN}-${PV}" +MY_P="MiniMock-${PV}" DESCRIPTION="The simplest possible mock library" HOMEPAGE="https://pypi.org/project/MiniMock/" @@ -21,3 +20,8 @@ KEYWORDS="amd64 arm ~arm64 ppc x86" DOCS=( CHANGELOG.txt README.rst ) distutils_enable_tests nose + +src_prepare() { + sed -i -e '/cov/d' setup.cfg || die + default +} diff --git a/dev-python/plyvel/plyvel-1.3.0.ebuild b/dev-python/plyvel/plyvel-1.3.0.ebuild index b77b1f6b7e6a..d03d536e6c6c 100644 --- a/dev-python/plyvel/plyvel-1.3.0.ebuild +++ b/dev-python/plyvel/plyvel-1.3.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild index a53579bf61a0..0678d4920fe2 100644 --- a/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild +++ b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild @@ -19,7 +19,7 @@ SRC_URI="https://github.com/PiotrDabkowski/${PN}/archive/${MY_COMMIT}.tar.gz -> RESTRICT="!test? ( test )" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" IUSE="test" BDEPEND=" diff --git a/dev-python/pysol_cards/pysol_cards-0.10.1.ebuild b/dev-python/pysol_cards/pysol_cards-0.10.1.ebuild index b1e8857b6dfd..730bc66d9a85 100644 --- a/dev-python/pysol_cards/pysol_cards-0.10.1.ebuild +++ b/dev-python/pysol_cards/pysol_cards-0.10.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -14,11 +14,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0 MIT" SLOT="0" KEYWORDS="amd64 arm64 x86" -IUSE="" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND=" dev-python/pbr[${PYTHON_USEDEP}] dev-python/random2[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] " +BDEPEND="test? ( dev-python/oslotest[${PYTHON_USEDEP}] )" + +distutils_enable_tests unittest diff --git a/dev-python/python-ctags/metadata.xml b/dev-python/python-ctags/metadata.xml index 128279dc6811..881956b4500d 100644 --- a/dev-python/python-ctags/metadata.xml +++ b/dev-python/python-ctags/metadata.xml @@ -7,7 +7,7 @@ </maintainer> <upstream> <remote-id type="pypi">python-ctags3</remote-id> - <bugs-to>https://github.com/jonashaag/python-ctags3/issues</bugs-to> + <bugs-to>https://github.com/universal-ctags/python-ctags3/issues</bugs-to> </upstream> <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/python-ctags/python-ctags-1.5.0.ebuild b/dev-python/python-ctags/python-ctags-1.5.0.ebuild index 9bccadf05f29..290ac057b5ac 100644 --- a/dev-python/python-ctags/python-ctags-1.5.0.ebuild +++ b/dev-python/python-ctags/python-ctags-1.5.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -9,7 +9,7 @@ inherit distutils-r1 MY_PN="${PN}3" DESCRIPTION="Exuberant Ctags indexing python bindings" -HOMEPAGE="https://github.com/jonashaag/python-ctags3" +HOMEPAGE="https://github.com/universal-ctags/python-ctags3" SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" S="${WORKDIR}/${MY_PN}-${PV}" diff --git a/dev-python/python-lsp-server/python-lsp-server-1.1.0-r1.ebuild b/dev-python/python-lsp-server/python-lsp-server-1.1.0-r1.ebuild index 07de4a52f97f..8a7c1e06144d 100644 --- a/dev-python/python-lsp-server/python-lsp-server-1.1.0-r1.ebuild +++ b/dev-python/python-lsp-server/python-lsp-server-1.1.0-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" +KEYWORDS="amd64 ~arm64 x86" IUSE="all-plugins" diff --git a/dev-python/resolvelib/resolvelib-0.7.1.ebuild b/dev-python/resolvelib/resolvelib-0.7.1.ebuild index 55fc8d8a9cfb..b6ea6c27f726 100644 --- a/dev-python/resolvelib/resolvelib-0.7.1.ebuild +++ b/dev-python/resolvelib/resolvelib-0.7.1.ebuild @@ -14,7 +14,7 @@ SRC_URI=" LICENSE="ISC" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86" BDEPEND=" test? ( diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest index 77dbf920d31d..d650bf99f5df 100644 --- a/dev-python/sqlalchemy/Manifest +++ b/dev-python/sqlalchemy/Manifest @@ -1,4 +1,3 @@ DIST SQLAlchemy-1.3.24.tar.gz 6353598 BLAKE2B 6eb92b20fa3412a1f1398e18e902e3338320973287afa4a37477ec28d47e7422a19c3a60e6290a6da7b23512c0d818a26400958d02097def778c917f098bb3db SHA512 4f5f0a23e80e1cebe541f8748a7e794e8964d986252803b3289a7cea732ad22557e00221775332e2766b6ff16ad5d9069223f441f8880ca6d0c47011f15fee5b -DIST SQLAlchemy-1.4.18.tar.gz 7643090 BLAKE2B 8046bb9f9aa459eec95af57e597540552f6cd79ca3c393abf66d7370754e8433d743e739803929aaf0e2788b0c0419c022ddda1517d38da6580f3afeee1bc4d4 SHA512 06110bf727fd6d83404da2e031a27163c06059bf9eae4cc5b79ce047b5bab67b54432890091fa03abd9644156b92569001ae78c48c22799ab3bec220d4bbe1a0 DIST SQLAlchemy-1.4.20.tar.gz 7682074 BLAKE2B 7921bbab0c7fcaccb232121625dcd9acc162cb21e747b889fa032863435b6a922b9ad21c7ba136b94617710d3aa6ec331941b11b0fd87a8d543b633d3d605c36 SHA512 cb9ec5c74b27c93824b7d46844d2a122c719e358d917563039f3dd96a44d057d4daa239b2820893db42348f46546efc469a202999be2c722027abbb6eed50063 DIST SQLAlchemy-1.4.22.tar.gz 7709437 BLAKE2B cc4ab689c8f53601ba76632ad32ed2ae23f9ac46fe23f40cc7657b66f48cccc6a7801f9bea64dcebbe1c39786d7ff0708fad8e8d05534a5ab4ef691e6da8d85c SHA512 92a36a77d104db23577dda9add6dca86c1e1c416d3dc552c4dc6049522683da2857c1071c81d216d41a723c11de081af92800acb5d44d69fb0e36ee6756839ce diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.18.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.18.ebuild deleted file mode 100644 index e851fd25957c..000000000000 --- a/dev-python/sqlalchemy/sqlalchemy-1.4.18.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -PYTHON_REQ_USE="sqlite?" - -inherit distutils-r1 multiprocessing optfeature - -MY_PN="SQLAlchemy" -MY_P="${MY_PN}-${PV/_beta/b}" - -DESCRIPTION="Python SQL toolkit and Object Relational Mapper" -HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/" -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="examples +sqlite test" - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/importlib_metadata[${PYTHON_USEDEP}] - ' pypy3) -" -# Use pytest-xdist to speed up tests -BDEPEND=" - test? ( - $(python_gen_impl_dep sqlite) - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - # remove optional/partial dep on greenlet, greenlet is not very portable - sed -i -e '/greenlet/d' setup.cfg || die - - distutils-r1_src_prepare -} - -python_test() { - # Disable tests hardcoding function call counts specific to Python versions. - epytest --ignore test/aaa_profiling \ - -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" -} - -python_install_all() { - if use examples; then - docompress -x "/usr/share/doc/${PF}/examples" - dodoc -r examples - fi - - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \ - dev-python/mysql-connector-python - optfeature "mssql support" dev-python/pymssql - optfeature "postgresql support" dev-python/psycopg:2 -} diff --git a/dev-python/uvloop/uvloop-0.15.3-r1.ebuild b/dev-python/uvloop/uvloop-0.15.3-r1.ebuild index 444a80e5059e..9024e600ca89 100644 --- a/dev-python/uvloop/uvloop-0.15.3-r1.ebuild +++ b/dev-python/uvloop/uvloop-0.15.3-r1.ebuild @@ -10,7 +10,7 @@ DESCRIPTION="Ultra-fast implementation of asyncio event loop on top of libuv" HOMEPAGE="https://github.com/magicstack/uvloop" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~ppc64 -riscv" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 -riscv ~sparc" LICENSE="MIT" SLOT="0" IUSE="doc examples" diff --git a/dev-python/websockets/Manifest b/dev-python/websockets/Manifest index 91482ee75fcc..e6d188555429 100644 --- a/dev-python/websockets/Manifest +++ b/dev-python/websockets/Manifest @@ -1 +1,2 @@ +DIST websockets-9.1-python-3.10-support.patch.gz 6940 BLAKE2B e4835c7d5efaf956d07b884c85e0b95f26674bf36164fa8362d1c1a564a959bde761d25e747333c58864f74a5ea1b199f228a46ec6a1647c5495ea032020c179 SHA512 7fb4b298a9167c8d913e293fa7549b21d5acb333a5b97e0624a22cb83548ef548b819ac23750c40295140b6f83a701c73a81fdcaed3ab8e704dbee8e17d22f1d DIST websockets-9.1-src.tar.gz 191813 BLAKE2B cb3807f01e1a4c22a40bf5150d1e8b21ca786dc5bc4da8f3e6602971f3f7c79b57092f5ddfe3ee52ec00e7fd15f3a992fdbb94b5e26599f2621a7f51434ba6dd SHA512 ff2907a913ff0b8ced6dda72b6fc6512a2ece3ffded2e2dcb8ff6805de9ad504430cc1871c1f6e02ab8069e7b96b2e7609afaf3c9c25f9271b28e2daa72bd3ac diff --git a/dev-python/websockets/websockets-9.1-r1.ebuild b/dev-python/websockets/websockets-9.1-r1.ebuild new file mode 100644 index 000000000000..c479bbe55064 --- /dev/null +++ b/dev-python/websockets/websockets-9.1-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Library for building WebSocket servers and clients in Python" +HOMEPAGE="https://websockets.readthedocs.io/" +SRC_URI=" + https://github.com/aaugustin/${PN}/archive/${PV}.tar.gz -> ${P}-src.tar.gz + https://dev.gentoo.org/~sbraz/${P}-python-3.10-support.patch.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + +distutils_enable_tests unittest + +PATCHES=( + # https://github.com/aaugustin/websockets/commit/08d8011132ba038b3f6c4d591189b57af4c9f147 + "${WORKDIR}/${P}-python-3.10-support.patch" +) + +src_prepare() { + # these fail due to timeouts on slower hardware + sed -e 's:test_keepalive_ping_with_no_ping_timeout:_&:' \ + -e 's:test_keepalive_ping(:_&:' \ + -i tests/legacy/test_protocol.py || die + + distutils-r1_src_prepare +} |
