diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/httptools | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/httptools')
| -rw-r--r-- | dev-python/httptools/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/httptools/httptools-0.6.4.ebuild | 67 | ||||
| -rw-r--r-- | dev-python/httptools/httptools-0.8.0.ebuild | 63 | ||||
| -rw-r--r-- | dev-python/httptools/metadata.xml | 8 |
4 files changed, 140 insertions, 0 deletions
diff --git a/dev-python/httptools/Manifest b/dev-python/httptools/Manifest new file mode 100644 index 000000000000..1a1afa496705 --- /dev/null +++ b/dev-python/httptools/Manifest @@ -0,0 +1,2 @@ +DIST httptools-0.6.4.gh.tar.gz 15756 BLAKE2B 1f128fb566d677f783798236a12fc1729f819fb4e4cd52f43c4879ac6cff8a5c69fb147fef1dadda89e47b560652b15e7ab07e3e5b00f1e8a6ee23afe2efb879 SHA512 3a2518204b22ce00c1fa3f2387138f768511ff03a2a2ddf0b9c44a4d5de65c93bfd8d3ac9f4e9417805c7c9708a8cb39ec4889e08933fdc029607bcae5b54331 +DIST httptools-0.8.0.gh.tar.gz 16922 BLAKE2B 3d352ac18005d5d0cfd657dc608cf59d84f6143f858e70b56a29b7c173720135cf0b419b228da00fc83341479329e243bb0263230f3bc576d3d67faf9b515a3e SHA512 32556fc4ba282d91bf71323ff27aba1b5dae54838101780c5e35b80f26d3922cc9b944ecdf74c9792a3830d56fa67d91a3e47223f5f45bcd018567092a5f9687 diff --git a/dev-python/httptools/httptools-0.6.4.ebuild b/dev-python/httptools/httptools-0.6.4.ebuild new file mode 100644 index 000000000000..5248540880f8 --- /dev/null +++ b/dev-python/httptools/httptools-0.6.4.ebuild @@ -0,0 +1,67 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="A collection of framework independent HTTP protocol utils" +HOMEPAGE=" + https://github.com/MagicStack/httptools/ + https://pypi.org/project/httptools/ +" +# sdist is missing cython source files, as of 0.6.2 +SRC_URI=" + https://github.com/MagicStack/httptools/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" + +# don't ask me why they use both +DEPEND=" + net-libs/http-parser:= + net-libs/llhttp:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_configure() { + cat > setup.cfg <<-EOF || die + [build_ext] + use_system_llhttp = true + use_system_http_parser = true + cython_always = true + EOF +} + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # error message mismatches + # https://github.com/MagicStack/httptools/issues/16#issuecomment-1114181747 + tests/test_parser.py::TestResponseParser::test_parser_response_2 + tests/test_parser.py::TestRequestParser::test_parser_request_4 + tests/test_parser.py::TestUrlParser::test_parser_url_10 + ) + ;; + esac + + rm -rf httptools || die + epytest tests +} diff --git a/dev-python/httptools/httptools-0.8.0.ebuild b/dev-python/httptools/httptools-0.8.0.ebuild new file mode 100644 index 000000000000..b6f5ee14ca3f --- /dev/null +++ b/dev-python/httptools/httptools-0.8.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 2024-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="A collection of framework independent HTTP protocol utils" +HOMEPAGE=" + https://github.com/MagicStack/httptools/ + https://pypi.org/project/httptools/ +" +# sdist is missing cython source files, as of 0.6.2 +SRC_URI=" + https://github.com/MagicStack/httptools/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# don't ask me why they use both +DEPEND=" + net-libs/http-parser:= + net-libs/llhttp:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + >=dev-python/cython-3.1.0[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +src_configure() { + cat > setup.cfg <<-EOF || die + [build_ext] + use_system_llhttp = true + use_system_http_parser = true + cython_always = true + EOF +} + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + pypy3*) + # no point trying to fix it + return + ;; + esac + + rm -rf httptools || die + epytest tests +} diff --git a/dev-python/httptools/metadata.xml b/dev-python/httptools/metadata.xml new file mode 100644 index 000000000000..988ae9a6a6fe --- /dev/null +++ b/dev-python/httptools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
