mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/python-multipart: New package, v0.0.5
This a test dependency of dev-python/starlette. Note that it actually installs a `multipart` package, that conflicts with PyPI `multipart`. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
1
dev-python/python-multipart/Manifest
Normal file
1
dev-python/python-multipart/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST python-multipart-0.0.5.gh.tar.gz 48018 BLAKE2B cfff5c1c57ada3ba3d50da71273435781d62d3907ca1b7e6180cd319f2680258b3e1e278dff760106e7ca9c116f4c5c7adf957601d6d8465bf300e6211b83773 SHA512 c2fabeb77a25119c4bbb71c3faa6de58e27ac2f0c768298eac62b519fc51e5d95fdea05c4f3846ed47205f297802982a001577a73b2feec2d9f585c784d6c3d7
|
||||
@@ -0,0 +1,29 @@
|
||||
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,
|
||||
13
dev-python/python-multipart/metadata.xml
Normal file
13
dev-python/python-multipart/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="pypi">python-multipart</remote-id>
|
||||
<remote-id type="github">andrew-d/python-multipart</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
35
dev-python/python-multipart/python-multipart-0.0.5.ebuild
Normal file
35
dev-python/python-multipart/python-multipart-0.0.5.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..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 ~x86"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-pyyaml.patch
|
||||
)
|
||||
Reference in New Issue
Block a user