mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/python-multipart: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST python-multipart-0.0.5.gh.tar.gz 48018 BLAKE2B cfff5c1c57ada3ba3d50da71273435781d62d3907ca1b7e6180cd319f2680258b3e1e278dff760106e7ca9c116f4c5c7adf957601d6d8465bf300e6211b83773 SHA512 c2fabeb77a25119c4bbb71c3faa6de58e27ac2f0c768298eac62b519fc51e5d95fdea05c4f3846ed47205f297802982a001577a73b2feec2d9f585c784d6c3d7
|
||||
DIST python-multipart-0.0.6.gh.tar.gz 48648 BLAKE2B 4995136e6fcda8df952a6ee868238a507f3d5ea8f8454d4c4933e89b4897440f9186bd820af427f81b3240ca3610aa8300a944e4a0436291cc414f5e97daca30 SHA512 fb996725266996aefb5284b4815ecd8d0005344359f29780f0c2817125f625f3910be14d7d937e975b3ca9fb27a2a483401ab342a0c861df0e1112d447b1f083
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
From 4831a3f9b5007145f2cb9e3020e83581523d4079 Mon Sep 17 00:00:00 2001
|
||||
From: Carl George <carl@george.computer>
|
||||
Date: Tue, 19 Apr 2022 20:20:49 -0500
|
||||
Subject: [PATCH] Use yaml.safe_load instead of yaml.load (#46)
|
||||
|
||||
yaml.load in PyYAML 6 requires a Loader argument. PyYAML recommends
|
||||
using SafeLoader, which is implied if you call yaml.safe_load instead.
|
||||
|
||||
https://github.com/yaml/pyyaml/pull/561
|
||||
https://msg.pyyaml.org/load
|
||||
|
||||
Fixes #41
|
||||
---
|
||||
multipart/tests/test_multipart.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/multipart/tests/test_multipart.py b/multipart/tests/test_multipart.py
|
||||
index 0e38c9c..ab33e7c 100644
|
||||
--- a/multipart/tests/test_multipart.py
|
||||
+++ b/multipart/tests/test_multipart.py
|
||||
@@ -716,7 +716,7 @@ def test_not_aligned(self):
|
||||
test_data = f.read()
|
||||
|
||||
with open(yaml_file, 'rb') as f:
|
||||
- yaml_data = yaml.load(f)
|
||||
+ yaml_data = yaml.safe_load(f)
|
||||
|
||||
http_tests.append({
|
||||
'name': fname,
|
||||
@@ -1,36 +0,0 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{9..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A streaming multipart parser for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/andrew-d/python-multipart/
|
||||
https://pypi.org/project/python-multipart/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/andrew-d/python-multipart/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~ia64 ~loong ppc ppc64 ~riscv x86"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-pyyaml.patch
|
||||
)
|
||||
Reference in New Issue
Block a user