diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-21 04:04:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-21 04:04:33 +0100 |
commit | 3dc4de6331223493015f198dc61854af604da86c (patch) | |
tree | 626add8c88d96adf9429cdb19226d9de60e6dafd /dev-python/python-multipart | |
parent | d895362f98ae63a6ed12cd16d3b3df95d6967f25 (diff) |
gentoo auto-resync : 21:10:2024 - 04:04:33
Diffstat (limited to 'dev-python/python-multipart')
-rw-r--r-- | dev-python/python-multipart/Manifest | 6 | ||||
-rw-r--r-- | dev-python/python-multipart/files/python-multipart-0.0.12-rename.patch | 54 | ||||
-rw-r--r-- | dev-python/python-multipart/python-multipart-0.0.12-r100.ebuild (renamed from dev-python/python-multipart/python-multipart-0.0.9.ebuild) | 18 | ||||
-rw-r--r-- | dev-python/python-multipart/python-multipart-0.0.12.ebuild | 2 |
4 files changed, 75 insertions, 5 deletions
diff --git a/dev-python/python-multipart/Manifest b/dev-python/python-multipart/Manifest index b1bda09343ce..d870b4fc9077 100644 --- a/dev-python/python-multipart/Manifest +++ b/dev-python/python-multipart/Manifest @@ -1,5 +1,5 @@ +AUX python-multipart-0.0.12-rename.patch 1975 BLAKE2B 19f9f4b173a0c0583a5a30212889a34ca1d5ab3e6da6581beb188c64ef8276a93adb7db25dd600ee90b5bffc1c0ea073915eca1f563ccd8b80991e6091701d31 SHA512 5876d5accb984407e03643eadcb635a1ee99bb02595d1cddfad2f968e32bc5958cc7110d808a44fc3c475437e5be6e7a181582f4e8359b20472f3a97205254ef DIST python-multipart-0.0.12.gh.tar.gz 92904 BLAKE2B 25076627fdcb3a4bfc9eda74218f9d6d30ea18517da00c312f50c9d3ae156894b29e83bd38d4e11d7d06732999ae9640243e660d2a037253b9f511772a6c737b SHA512 271ed29f3025be5c058a56ec56ce373348dc27b4c8130c17609bd48d73fc975b2ac8387d4989be578e1be01a618aad87c1d3ec3a37dbe73dc45813ec961842d0 -DIST python-multipart-0.0.9.gh.tar.gz 49448 BLAKE2B 9ab4026dd4f45e60fd3bd781b178258edc9841e2a999ba6d0e918e37da106d7e9fb5816fa3e2fccb9eb3139c06c83dc892fe3e38b98bc6289dccaee4cdc64260 SHA512 6e41be080e079b1e9730e61d72b5b339fbb447bfb2b171a617c17025c5ad69924ca3c24f39e160f7b1cc495cea0999e72e6674e5631ce88a48240ecc229d0343 -EBUILD python-multipart-0.0.12.ebuild 666 BLAKE2B 75d223262e92847ce06f5d4a49e295c6337e4cf55f7e0c143a4655053d4c2aebd89204b2a87b73c367e8ef8c5e5e45edbe6e8e1fb3bcc73267c2a94190da82c1 SHA512 b9ffd045f494f178dd14ab1ae7ba091de9608bacb0a1732d091e7dcbbd5b7d569eda6c9627f58df71c93662c0fa058334825128c4f13fe766b95bb344b7edab9 -EBUILD python-multipart-0.0.9.ebuild 658 BLAKE2B 4aab8ec01549b29855d383a393bf52c7dabd0b8ad9e291f1c89832653aa42b6d3abef5a6578f32c71d5aeca0b0f2ecfcd8da96749c1f7e413e6b95a8e6ef6f83 SHA512 68d1364a63b5a674d71d9142b712375f64cbbe84710c0495b5166966b9d43201b537b8a5ea0ce7b51c7320d55e26f5f35e4e74544120aeb77c4ffa8d61ba70c6 +EBUILD python-multipart-0.0.12-r100.ebuild 932 BLAKE2B 247350a43a238c21ba8a04392255aed08195cfdb16729f820631d1ed35cd918e87b0164bca804eab675b379cd8c444742899c7c8a592e6b08eeec251bb204b6d SHA512 0e4388109f512a8fb4bd3977d7ae3882604872058770e56bf270921c36045d145cf56a4a2bbecc31757768f5654f77ef1f5bab84264a0a312363c9d54d709fbf +EBUILD python-multipart-0.0.12.ebuild 658 BLAKE2B 4aab8ec01549b29855d383a393bf52c7dabd0b8ad9e291f1c89832653aa42b6d3abef5a6578f32c71d5aeca0b0f2ecfcd8da96749c1f7e413e6b95a8e6ef6f83 SHA512 68d1364a63b5a674d71d9142b712375f64cbbe84710c0495b5166966b9d43201b537b8a5ea0ce7b51c7320d55e26f5f35e4e74544120aeb77c4ffa8d61ba70c6 MISC metadata.xml 407 BLAKE2B 506414856dda2ccb7c2da00c350f73dcff5a3d9ea5897b96a7acf8973462c564b217c42cb922587378ca8c0e78f8a5a6a5aabb12bd93ca202bb29e377a6ad143 SHA512 4b61836d4f1834b8abe4c5a0e1620cefbee79665ffbd14326dc9b9b43252b519e2d3cd392c40b7356f3be705e3a38da565416e7294d02fb1817cda0e8b72a115 diff --git a/dev-python/python-multipart/files/python-multipart-0.0.12-rename.patch b/dev-python/python-multipart/files/python-multipart-0.0.12-rename.patch new file mode 100644 index 000000000000..cee51b2df1c8 --- /dev/null +++ b/dev-python/python-multipart/files/python-multipart-0.0.12-rename.patch @@ -0,0 +1,54 @@ +From d6e30eb0269fa04d4a16133bd94405f10240aeb0 Mon Sep 17 00:00:00 2001 +From: Henry Schreiner <henryschreineriii@gmail.com> +Date: Fri, 11 Oct 2024 17:11:21 -0400 +Subject: [PATCH 1/2] refactor: rename to python_multipart + +Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> + +diff --git a/pyproject.toml b/pyproject.toml +index fb03f83..1a81077 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -62,13 +65,10 @@ Changelog = "https://github.com/Kludex/python-multipart/blob/master/CHANGELOG.md + Source = "https://github.com/Kludex/python-multipart" + + [tool.hatch.version] +-path = "multipart/__init__.py" +- +-[tool.hatch.build.targets.wheel] +-packages = ["multipart"] ++path = "python_multipart/__init__.py" + + [tool.hatch.build.targets.sdist] +-include = ["/multipart", "/tests", "CHANGELOG.md", "LICENSE.txt"] ++include = ["/python_multipart", "/tests", "CHANGELOG.md", "LICENSE.txt", "_python_multipart.pth", "_python_multipart_loader.py"] + + [tool.mypy] + strict = true +diff --git a/tests/test_multipart.py b/tests/test_multipart.py +index b824f19..f5f8e7e 100644 +--- a/tests/test_multipart.py ++++ b/tests/test_multipart.py +@@ -11,9 +11,9 @@ + + import yaml + +-from multipart.decoders import Base64Decoder, QuotedPrintableDecoder +-from multipart.exceptions import DecodeError, FileError, FormParserError, MultipartParseError, QuerystringParseError +-from multipart.multipart import ( ++from python_multipart.decoders import Base64Decoder, QuotedPrintableDecoder ++from python_multipart.exceptions import DecodeError, FileError, FormParserError, MultipartParseError, QuerystringParseError ++from python_multipart.multipart import ( + BaseParser, + Field, + File, +@@ -31,7 +31,7 @@ + if TYPE_CHECKING: + from typing import Any, Iterator, TypedDict + +- from multipart.multipart import FieldProtocol, FileConfig, FileProtocol ++ from python_multipart.multipart import FieldProtocol, FileConfig, FileProtocol + + class TestParams(TypedDict): + name: str + diff --git a/dev-python/python-multipart/python-multipart-0.0.9.ebuild b/dev-python/python-multipart/python-multipart-0.0.12-r100.ebuild index 09bf47f05425..ea54218ea564 100644 --- a/dev-python/python-multipart/python-multipart-0.0.9.ebuild +++ b/dev-python/python-multipart/python-multipart-0.0.12-r100.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" BDEPEND=" test? ( @@ -29,3 +29,19 @@ BDEPEND=" " distutils_enable_tests pytest + +src_prepare() { + local PATCHES=( + # https://github.com/Kludex/python-multipart/pull/166 + "${FILESDIR}/${P}-rename.patch" + ) + + distutils-r1_src_prepare + + mv multipart python_multipart || die +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/python-multipart/python-multipart-0.0.12.ebuild b/dev-python/python-multipart/python-multipart-0.0.12.ebuild index 5951939aa712..09bf47f05425 100644 --- a/dev-python/python-multipart/python-multipart-0.0.12.ebuild +++ b/dev-python/python-multipart/python-multipart-0.0.12.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86" BDEPEND=" test? ( |