summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-05-25 01:38:03 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-05-25 01:38:03 +0000
commit615b03183c05de487b415218c7616a514671b834 (patch)
treeea9312c38fb6a61a51fe379386e56614280ebb1f /dev-python
parentaa59327e2423640e203da71ddc5f7a0331879f84 (diff)
downloadbaldeagleos-repo-615b03183c05de487b415218c7616a514671b834.tar.gz
baldeagleos-repo-615b03183c05de487b415218c7616a514671b834.tar.xz
baldeagleos-repo-615b03183c05de487b415218c7616a514671b834.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cryptography/metadata.xml2
-rw-r--r--dev-python/flit/Manifest1
-rw-r--r--dev-python/flit/files/flit-3.2.0-tests.patch12
-rw-r--r--dev-python/flit/flit-2.1.0.ebuild4
-rw-r--r--dev-python/flit/flit-3.2.0.ebuild48
-rw-r--r--dev-python/importlib_metadata/importlib_metadata-4.0.1.ebuild2
-rw-r--r--dev-python/jsonpointer/jsonpointer-2.1.ebuild2
-rw-r--r--dev-python/jsonschema/jsonschema-3.2.0.ebuild4
-rw-r--r--dev-python/numpy/files/numpy-1.20.2-fix-popcnt-detection.patch103
-rw-r--r--dev-python/numpy/numpy-1.20.2-r1.ebuild (renamed from dev-python/numpy/numpy-1.20.2.ebuild)1
-rw-r--r--dev-python/numpy/numpy-1.20.3-r1.ebuild (renamed from dev-python/numpy/numpy-1.20.3.ebuild)1
-rw-r--r--dev-python/pyfakefs/pyfakefs-4.4.0.ebuild2
-rw-r--r--dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5.ebuild2
-rw-r--r--dev-python/pysimdjson/files/pysimdjson-4.0.0-error-types.patch53
-rw-r--r--dev-python/pysimdjson/pysimdjson-4.0.0-r1.ebuild (renamed from dev-python/pysimdjson/pysimdjson-4.0.0.ebuild)3
-rw-r--r--dev-python/pytest-freezegun/pytest-freezegun-0.4.2.ebuild2
-rw-r--r--dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch39
-rw-r--r--dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch5
-rw-r--r--dev-python/pytest-localserver/pytest-localserver-0.5.0.ebuild7
-rw-r--r--dev-python/requests_download/requests_download-0.1.2.ebuild2
-rw-r--r--dev-python/rfc3339-validator/rfc3339-validator-0.1.4.ebuild2
-rw-r--r--dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild2
-rw-r--r--dev-python/snaketrace/Manifest2
-rw-r--r--dev-python/snaketrace/snaketrace-0.3.1.ebuild (renamed from dev-python/snaketrace/snaketrace-0.1.1.ebuild)5
24 files changed, 288 insertions, 18 deletions
diff --git a/dev-python/cryptography/metadata.xml b/dev-python/cryptography/metadata.xml
index f2be31338534..fbff9fb48557 100644
--- a/dev-python/cryptography/metadata.xml
+++ b/dev-python/cryptography/metadata.xml
@@ -11,7 +11,7 @@
</maintainer>
<upstream>
<remote-id type="pypi">cryptography</remote-id>
- <remote-id type="cpe">cpe:/a:cryptography_project:cyptography:python</remote-id>
+ <remote-id type="cpe">cpe:/a:cryptography_project::cyptography:::~~~python~~</remote-id>
<remote-id type="github">pyca/cryptography</remote-id>
</upstream>
<use>
diff --git a/dev-python/flit/Manifest b/dev-python/flit/Manifest
index 98fa24ff4f58..b98e888eed18 100644
--- a/dev-python/flit/Manifest
+++ b/dev-python/flit/Manifest
@@ -1 +1,2 @@
DIST flit-2.1.0.tar.gz 106459 BLAKE2B db51d8cc119ae8aa5f8d0ac1655cd29390065567391cbdf06ca7dbb98a79e96a6d8f318273c2f9a58aaf549090a903360701a844ac071d15304a21ea54052a91 SHA512 0fcbfaa1e5e83216a5c98cc87b0a8f2aa17e2c184ec3f09c7dd0dd5e695311be62344ac4f101cb71f87390513496f8c1152a2cd8d7363202f7696ee002f07a55
+DIST flit-3.2.0.tar.gz 115192 BLAKE2B dda4b9f5b56b9868d737516841d7fc49c0e97ef8a71f9f0628112f68c3dadae89a87aef56cebfe8ec3762af5970d206fe462add146d52b3893fb8852fd7f9625 SHA512 1db7c4118fe1d70d1e318db3bc282747d6cc3f3b626ad68420fa056e585caad9ff0a3f230e17c919ea260ddeb6330effc4bbed8b30d11ed7b27e78d9d7af0445
diff --git a/dev-python/flit/files/flit-3.2.0-tests.patch b/dev-python/flit/files/flit-3.2.0-tests.patch
new file mode 100644
index 000000000000..7a0a4c5c7a72
--- /dev/null
+++ b/dev-python/flit/files/flit-3.2.0-tests.patch
@@ -0,0 +1,12 @@
+diff --git a/tests/test_config.py b/tests/test_config.py
+index 214cd17..815005b 100644
+--- a/tests/test_config.py
++++ b/tests/test_config.py
+@@ -5,6 +5,7 @@ from flit.config import read_flit_config, ConfigError
+
+ samples_dir = Path(__file__).parent / 'samples'
+
++@pytest.mark.skip("Needs internet access")
+ def test_invalid_classifier():
+ with pytest.raises(ConfigError):
+ read_flit_config(samples_dir / 'invalid_classifier.toml')
diff --git a/dev-python/flit/flit-2.1.0.ebuild b/dev-python/flit/flit-2.1.0.ebuild
index 4172e3dcd80f..c639084ad887 100644
--- a/dev-python/flit/flit-2.1.0.ebuild
+++ b/dev-python/flit/flit-2.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -16,7 +16,7 @@ KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="
- dev-python/flit_core[${PYTHON_USEDEP}]
+ <dev-python/flit_core-3.0.0[${PYTHON_USEDEP}]
dev-python/intreehooks[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/requests_download[${PYTHON_USEDEP}]
diff --git a/dev-python/flit/flit-3.2.0.ebuild b/dev-python/flit/flit-3.2.0.ebuild
new file mode 100644
index 000000000000..2e0423afed39
--- /dev/null
+++ b/dev-python/flit/flit-3.2.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2019-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 )
+inherit distutils-r1
+
+DESCRIPTION="Simplified packaging of Python modules"
+HOMEPAGE="https://github.com/takluyver/flit https://flit.readthedocs.io/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/flit_core-3.2.0[${PYTHON_USEDEP}]
+ dev-python/intreehooks[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/requests_download[${PYTHON_USEDEP}]
+ dev-python/toml[${PYTHON_USEDEP}]
+"
+BDEPEND="${RDEPEND}
+ sys-apps/grep
+ sys-apps/findutils
+ test? (
+ dev-python/responses[${PYTHON_USEDEP}]
+ dev-python/testpath[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/flit-3.2.0-tests.patch"
+)
+
+distutils_enable_tests pytest
+distutils_enable_sphinx doc \
+ dev-python/sphinxcontrib-github-alt \
+ dev-python/pygments-github-lexers \
+
+python_prepare_all() {
+ printf -- "from setuptools import setup, find_packages\nsetup(name='%s',version='%s',%s)" \
+ "${PN}" "${PV}" "packages=find_packages(exclude=['tests'])" > setup.py || die
+
+ distutils-r1_python_prepare_all
+}
diff --git a/dev-python/importlib_metadata/importlib_metadata-4.0.1.ebuild b/dev-python/importlib_metadata/importlib_metadata-4.0.1.ebuild
index 85f3760b6baf..f998c0885a23 100644
--- a/dev-python/importlib_metadata/importlib_metadata-4.0.1.ebuild
+++ b/dev-python/importlib_metadata/importlib_metadata-4.0.1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS=""
+KEYWORDS="~mips"
RDEPEND="
$(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_{6,7} pypy3)
diff --git a/dev-python/jsonpointer/jsonpointer-2.1.ebuild b/dev-python/jsonpointer/jsonpointer-2.1.ebuild
index 34cae969d4e5..9ec678391576 100644
--- a/dev-python/jsonpointer/jsonpointer-2.1.ebuild
+++ b/dev-python/jsonpointer/jsonpointer-2.1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
python_test() {
"${EPYTHON}" tests.py || die "Tests fail with ${EPYTHON}"
diff --git a/dev-python/jsonschema/jsonschema-3.2.0.ebuild b/dev-python/jsonschema/jsonschema-3.2.0.ebuild
index a00aa60c43e2..a53d4ff7ee8b 100644
--- a/dev-python/jsonschema/jsonschema-3.2.0.ebuild
+++ b/dev-python/jsonschema/jsonschema-3.2.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
@@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
IUSE="test"
BDEPEND="
diff --git a/dev-python/numpy/files/numpy-1.20.2-fix-popcnt-detection.patch b/dev-python/numpy/files/numpy-1.20.2-fix-popcnt-detection.patch
new file mode 100644
index 000000000000..85f4bb11b768
--- /dev/null
+++ b/dev-python/numpy/files/numpy-1.20.2-fix-popcnt-detection.patch
@@ -0,0 +1,103 @@
+https://github.com/numpy/numpy/pull/19074
+https://bugs.gentoo.org/788184
+
+From 8dc768964b5578a8aa9db1ef2c55134a00731e10 Mon Sep 17 00:00:00 2001
+From: Carl Michal <michal@physics.ubc.ca>
+Date: Sat, 22 May 2021 20:43:10 -0700
+Subject: [PATCH 1/2] Fix compile-time test of POPCNT
+
+The compile-time test of POPCNT, cpu_popcnt.c produced code that would
+execute without error even if the machine didn't support the popcnt
+instruction. This patch attempts to use popcnt on random numbers so the
+compiler can't substitute the answer at compile time.
+---
+ numpy/distutils/checks/cpu_popcnt.c | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/numpy/distutils/checks/cpu_popcnt.c b/numpy/distutils/checks/cpu_popcnt.c
+index e6a80fb40be4..f6c785dd2a97 100644
+--- a/numpy/distutils/checks/cpu_popcnt.c
++++ b/numpy/distutils/checks/cpu_popcnt.c
+@@ -4,20 +4,26 @@
+ #include <popcntintrin.h>
+ #endif
+
++#include <stdlib.h>
++
+ int main(void)
+ {
+ long long a = 0;
+ int b;
++
++ a = random();
++ b = random();
++
+ #ifdef _MSC_VER
+ #ifdef _M_X64
+- a = _mm_popcnt_u64(1);
++ a = _mm_popcnt_u64(a);
+ #endif
+- b = _mm_popcnt_u32(1);
++ b = _mm_popcnt_u32(b);
+ #else
+ #ifdef __x86_64__
+- a = __builtin_popcountll(1);
++ a = __builtin_popcountll(a);
+ #endif
+- b = __builtin_popcount(1);
++ b = __builtin_popcount(b);
+ #endif
+ return (int)a + b;
+ }
+
+From 52d5fe1ede45083d0783c3e2bbaee5c44df9d553 Mon Sep 17 00:00:00 2001
+From: Carl Michal <michal@physics.ubc.ca>
+Date: Sun, 23 May 2021 08:24:52 -0700
+Subject: [PATCH 2/2] Change fix of cpu_popcnt.c to use
+ _mm_popcnt_u64/_mm_popcnt_u32 on GCC
+
+_builtin_popcount is always available, so the compile-time check always
+succeeds.
+---
+ numpy/distutils/checks/cpu_popcnt.c | 26 ++++++++------------------
+ 1 file changed, 8 insertions(+), 18 deletions(-)
+
+diff --git a/numpy/distutils/checks/cpu_popcnt.c b/numpy/distutils/checks/cpu_popcnt.c
+index f6c785dd2a97..540c98dab05d 100644
+--- a/numpy/distutils/checks/cpu_popcnt.c
++++ b/numpy/distutils/checks/cpu_popcnt.c
+@@ -4,26 +4,16 @@
+ #include <popcntintrin.h>
+ #endif
+
+-#include <stdlib.h>
+-
+-int main(void)
++int main(int argc, char **argv)
+ {
+- long long a = 0;
+- int b;
+-
+- a = random();
+- b = random();
+-
+-#ifdef _MSC_VER
+- #ifdef _M_X64
++ // To make sure popcnt instructions are generated
++ // and been tested against the assembler
++ unsigned long long a = *((unsigned long long*)argv[argc-1]);
++ unsigned int b = *((unsigned int*)argv[argc-2]);
++
++#if defined(_M_X64) || defined(__x86_64__)
+ a = _mm_popcnt_u64(a);
+- #endif
+- b = _mm_popcnt_u32(b);
+-#else
+- #ifdef __x86_64__
+- a = __builtin_popcountll(a);
+- #endif
+- b = __builtin_popcount(b);
+ #endif
++ b = _mm_popcnt_u32(b);
+ return (int)a + b;
+ }
diff --git a/dev-python/numpy/numpy-1.20.2.ebuild b/dev-python/numpy/numpy-1.20.2-r1.ebuild
index 642ee5965981..e8b0aa662bda 100644
--- a/dev-python/numpy/numpy-1.20.2.ebuild
+++ b/dev-python/numpy/numpy-1.20.2-r1.ebuild
@@ -48,6 +48,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/numpy-1.20.1-no-hardcode-blasv2.patch
"${FILESDIR}"/numpy-1.20.2-fix-ccompiler-tests.patch
+ "${FILESDIR}"/numpy-1.20.2-fix-popcnt-detection.patch
)
distutils_enable_tests pytest
diff --git a/dev-python/numpy/numpy-1.20.3.ebuild b/dev-python/numpy/numpy-1.20.3-r1.ebuild
index 959871565aa1..26e2ef1a3769 100644
--- a/dev-python/numpy/numpy-1.20.3.ebuild
+++ b/dev-python/numpy/numpy-1.20.3-r1.ebuild
@@ -46,6 +46,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/numpy-1.20.1-no-hardcode-blasv2.patch
"${FILESDIR}"/numpy-1.20.2-fix-ccompiler-tests.patch
+ "${FILESDIR}"/numpy-1.20.2-fix-popcnt-detection.patch
"${FILESDIR}"/numpy-1.20.3-float-hashing-py310.patch
)
diff --git a/dev-python/pyfakefs/pyfakefs-4.4.0.ebuild b/dev-python/pyfakefs/pyfakefs-4.4.0.ebuild
index b0bcade455c0..356775062db5 100644
--- a/dev-python/pyfakefs/pyfakefs-4.4.0.ebuild
+++ b/dev-python/pyfakefs/pyfakefs-4.4.0.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/jmcgeheeiv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.g
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
distutils_enable_tests pytest
diff --git a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5.ebuild b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5.ebuild
index dae032be7aba..ace2d562e264 100644
--- a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5.ebuild
+++ b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2020 Gentoo Authors
+# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
diff --git a/dev-python/pysimdjson/files/pysimdjson-4.0.0-error-types.patch b/dev-python/pysimdjson/files/pysimdjson-4.0.0-error-types.patch
new file mode 100644
index 000000000000..34b8f4aa9e29
--- /dev/null
+++ b/dev-python/pysimdjson/files/pysimdjson-4.0.0-error-types.patch
@@ -0,0 +1,53 @@
+commit 1145be6cac70ed065f2053977d470f3f771ac6a0
+Author: Tyler Kennedy <tk@tkte.ch>
+Date: Sun May 23 15:55:28 2021 -0400
+
+ Empty buffers now raise identical error to empty bytes. Closes #81.
+
+diff --git a/simdjson/csimdjson.pyx b/simdjson/csimdjson.pyx
+index 095a183..c278e08 100644
+--- a/simdjson/csimdjson.pyx
++++ b/simdjson/csimdjson.pyx
+@@ -478,6 +478,13 @@ cdef class Parser:
+ # type-specific APIs, but gives much greater compatibility.
+ data = src
+
++ if data.size == 0:
++ # If we were given a completely empty buffer, trying to access
++ # a stride in the next step will cause a (potentially
++ # confusing) IndexError. This isn't a very good error message,
++ # but it's identical to the one simdjson would have raised.
++ raise ValueError('Empty: no JSON found')
++
+ return element_to_primitive(
+ self,
+ dereference(self.c_parser).parse(
+diff --git a/tests/test_parser.py b/tests/test_parser.py
+index 88e7207..d3a28c7 100644
+--- a/tests/test_parser.py
++++ b/tests/test_parser.py
+@@ -1,3 +1,4 @@
++import io
+ import pathlib
+
+ import pytest
+@@ -32,6 +33,19 @@ def test_parse_str(parser):
+ assert doc.as_dict() == {'hello': 'world'}
+
+
++def test_parse_empty_buffer(parser):
++ """Ensure trying to parse an empty buffer returns an error consistent
++ with attempting to parse an empty bytestring."""
++ # Issue #81
++ with pytest.raises(ValueError) as bytes_exc:
++ parser.parse(b'')
++
++ with pytest.raises(ValueError) as buffer_exc:
++ parser.parse(io.BytesIO(b'').getbuffer())
++
++ assert str(bytes_exc.value) == str(buffer_exc.value)
++
++
+ def test_unicode_decode_error(parser):
+ """Ensure the parser raises encoding issues."""
+ with pytest.raises(UnicodeDecodeError):
diff --git a/dev-python/pysimdjson/pysimdjson-4.0.0.ebuild b/dev-python/pysimdjson/pysimdjson-4.0.0-r1.ebuild
index 7cb6b2b85b52..88f7c717f143 100644
--- a/dev-python/pysimdjson/pysimdjson-4.0.0.ebuild
+++ b/dev-python/pysimdjson/pysimdjson-4.0.0-r1.ebuild
@@ -24,7 +24,8 @@ BDEPEND="
distutils_enable_tests pytest
PATCHES=(
- "${FILESDIR}"/${P}-unbundle.patch
+ "${FILESDIR}"/pysimdjson-4.0.0-unbundle.patch
+ "${FILESDIR}"/pysimdjson-4.0.0-error-types.patch
)
src_prepare() {
diff --git a/dev-python/pytest-freezegun/pytest-freezegun-0.4.2.ebuild b/dev-python/pytest-freezegun/pytest-freezegun-0.4.2.ebuild
index 5855ab0f35b7..ae476b3a4084 100644
--- a/dev-python/pytest-freezegun/pytest-freezegun-0.4.2.ebuild
+++ b/dev-python/pytest-freezegun/pytest-freezegun-0.4.2.ebuild
@@ -14,7 +14,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos"
RDEPEND="
dev-python/freezegun[${PYTHON_USEDEP}]
diff --git a/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch
new file mode 100644
index 000000000000..c9a8fbf0f870
--- /dev/null
+++ b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch
@@ -0,0 +1,39 @@
+--- a/tests/test_https.py 2021-05-24 12:10:07.335676451 -0700
++++ b/tests/test_https.py 2021-05-24 12:10:23.966572498 -0700
+@@ -11,17 +11,20 @@
+ httpsserver = plugin.httpsserver
+
+
++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310")
+ def test_httpsserver_funcarg(httpsserver):
+ assert isinstance(httpsserver, https.SecureContentServer)
+ assert httpsserver.is_alive()
+ assert httpsserver.server_address
+
+
++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310")
+ def test_server_does_not_serve_file_at_startup(httpsserver):
+ assert httpsserver.code == 204
+ assert httpsserver.content == ''
+
+
++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310")
+ def test_some_content_retrieval(httpsserver):
+ httpsserver.serve_content('TEST!')
+ resp = requests.get(httpsserver.url, verify=False)
+@@ -29,6 +32,7 @@
+ assert resp.status_code == 200
+
+
++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310")
+ def test_GET_request(httpsserver):
+ httpsserver.serve_content('TEST!', headers={'Content-type': 'text/plain'})
+ resp = requests.get(httpsserver.url, headers={'User-Agent': 'Test method'}, verify=False)
+@@ -37,6 +41,7 @@
+ assert 'text/plain' in resp.headers['Content-type']
+
+
++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310")
+ def test_HEAD_request(httpsserver):
+ httpsserver.serve_content('TEST!', headers={'Content-type': 'text/plain'})
+ print(httpsserver.url)
diff --git a/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch
new file mode 100644
index 000000000000..1cad7643973a
--- /dev/null
+++ b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch
@@ -0,0 +1,5 @@
+--- a/setup.cfg 2021-05-24 12:19:38.163108453 -0700
++++ b/setup.cfg 2021-05-24 12:19:58.714979990 -0700
+@@ -2 +2 @@
+-description-file = README
++description_file = README
diff --git a/dev-python/pytest-localserver/pytest-localserver-0.5.0.ebuild b/dev-python/pytest-localserver/pytest-localserver-0.5.0.ebuild
index befcf1e1aef1..4ba226b98575 100644
--- a/dev-python/pytest-localserver/pytest-localserver-0.5.0.ebuild
+++ b/dev-python/pytest-localserver/pytest-localserver-0.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
@@ -24,4 +24,9 @@ BDEPEND="
dev-python/six[${PYTHON_USEDEP}]
)"
+PATCHES=(
+ "${FILESDIR}/pytest-localserver-0.5.0-setup.patch"
+ "${FILESDIR}/pytest-localserver-0.5.0-py310-tests.patch"
+)
+
distutils_enable_tests pytest
diff --git a/dev-python/requests_download/requests_download-0.1.2.ebuild b/dev-python/requests_download/requests_download-0.1.2.ebuild
index 970d4491eed9..bb3e0863efd3 100644
--- a/dev-python/requests_download/requests_download-0.1.2.ebuild
+++ b/dev-python/requests_download/requests_download-0.1.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2020 Gentoo Authors
+# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
diff --git a/dev-python/rfc3339-validator/rfc3339-validator-0.1.4.ebuild b/dev-python/rfc3339-validator/rfc3339-validator-0.1.4.ebuild
index 855041508035..94c6066d639b 100644
--- a/dev-python/rfc3339-validator/rfc3339-validator-0.1.4.ebuild
+++ b/dev-python/rfc3339-validator/rfc3339-validator-0.1.4.ebuild
@@ -14,7 +14,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
RDEPEND="dev-python/six[${PYTHON_USEDEP}]
dev-python/strict-rfc3339[${PYTHON_USEDEP}]"
diff --git a/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild b/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild
index 397eb3d386c2..b94463b1fcf6 100644
--- a/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild
+++ b/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
RDEPEND="dev-python/rfc3987[${PYTHON_USEDEP}]"
BDEPEND="test? ( dev-python/hypothesis[${PYTHON_USEDEP}] )"
diff --git a/dev-python/snaketrace/Manifest b/dev-python/snaketrace/Manifest
index 4f6f83554d27..216ca3dc3dc7 100644
--- a/dev-python/snaketrace/Manifest
+++ b/dev-python/snaketrace/Manifest
@@ -1 +1 @@
-DIST snaketrace-0.1.1.tar.gz 4119 BLAKE2B 926861e84905e8331ab05a39a5f1f501af1902ff8cda31411b6f3509dd66bc1cd24392398d7cf599665206ae9ba214e640970897b644113cabdf2ccc29f9c9f8 SHA512 85f2a697308714d8bf3309fb27dff6ecbec3358215f31e06d97dc746b05a24cbdd7df2cd42cfe8d2f10e069ee69c2956197995ffb6ff58c1cd46aa323e0211c4
+DIST snaketrace-0.3.1.tar.gz 6885 BLAKE2B 19201532a3189e981c88343c67920c9275e41c23cd42ac416d6deda037de6dcdee0346a3ea487cd32311aa97596803b907266a3c1d643bdb679206e64d45b078 SHA512 9efb16309e638b9472a6b7fd8415ca5c40b3b498ba0676767ffea4bcd07cfdba23345b5cd53a0b9d88f7d81f454035f126cdcbf2a51f9a04e1e7aa6e833a20fc
diff --git a/dev-python/snaketrace/snaketrace-0.1.1.ebuild b/dev-python/snaketrace/snaketrace-0.3.1.ebuild
index 47b003898669..64e8783fc81c 100644
--- a/dev-python/snaketrace/snaketrace-0.1.1.ebuild
+++ b/dev-python/snaketrace/snaketrace-0.3.1.ebuild
@@ -1,10 +1,9 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9,10} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="An strace-like tool for Python audit events"
@@ -14,3 +13,5 @@ SRC_URI="https://github.com/dcoles/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+
+distutils_enable_tests unittest