re-add missing yarl-1.6.3-r1 & jinja-3.0.2 from main

This commit is contained in:
Andreas Billmeier 2021-12-13 22:25:34 +01:00 committed by Andreas Billmeier
parent c0d785e00b
commit 190af3162d
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
7 changed files with 18 additions and 158 deletions

View File

@ -1,5 +1,3 @@
DIST jinja-2.10.3.tar.gz 266316 BLAKE2B 0d8c10bb866eb887fd1c88ca5c5304f46d27930d8426587185ea72c0b79b512919bd5fa75987c26e433be049fd5764fb4ec08d42a4ec5ed00510fe8051e10f5e SHA512 566b781218b533c16b107b57e0252da5947fad262fd8d3fbb134b5916939c5e5d31c95e34bd6b14eec333d2ba3b4a6faa4168497a1ac774e7044f8220ac1b06e
DIST jinja-2.11.2.tar.gz 258055 BLAKE2B 5cf12d6c79e7e659b16318cb3dc483a276511192903469629ec497c10ba6cd023f5a834961ac74cbda556177aaac46f5045c5aaca3068dcef87017760895851c SHA512 453e0c94c57065ab78f997726256bd2a31bb79124a2ee17b632cb124a3ccefded33d81b35cac73497f095b1cd5d8cd4420d6932a637fd7c4cdb786f1753e49ac
EBUILD jinja-2.10.3.ebuild 1622 BLAKE2B cae65b5bc69423cedb57034b4166793cba89fe42d3edbe08c59c0c14c5ba68131837e47cbdc64993e8bae0e0c7ed2cf7b5691b938e349ad0cbaa55ab2bb896a4 SHA512 64ca2ae27eac5edb42eefcf944f220487e03de828406b47ced007ce25cf6b9046f932687a77da373db67c8904987b4ade927180e86f8b828b3312ebc5d1dc4df
EBUILD jinja-2.11.2-r1.ebuild 1590 BLAKE2B be3e93f8d938a71e1a22dcfe8b8cf1c6ee5f81cd9459d46e398663dcfbfdf6c7e22d2ee533d18ce50ece7a1a0926cdfc7c4e34d531d61888e9836c953a5970d0 SHA512 d17a819da39c74a541d0aaaa75f8b214b5b4f0d8224e7253a62fa21f2c45679e2b787b0624d4b45096263a5884d45d82b6c7fb45d36b0c4526cff454b26edf9b
DIST jinja-3.0.2.tar.gz 273251 BLAKE2B 69ef01fdce0be5d1df8eec01606c4fde72232aac2e089aed9a3a7e549a3ed283881c7c864aadb50d53eb5f1324781e3a89c2398e8c30e27dbed14d5917154513 SHA512 e6cf8b8e9fb3efc57806c9a17e71444f6e01f4d039c4894ee31aa4a042e63c31c9a68c85ce9400a7a840dc01ac8c46d88cdcc6ed15a28f662565b8ca9c1145b1
EBUILD jinja-3.0.2.ebuild 1316 BLAKE2B 622e3f7fd3b54d2e960d69af59c62f0fbfd6756941383267b6a716e271612c6f857c1ddbc2870f68f19f2f318b89b3e4d2df3a547c91c26f1e345415e782f48c SHA512 fdf83e7f59fe8d5890650f698a11868a048c0d9c9ec4272d09de839c800085ed4681d920a2609094c4ae9992529a04cdea5898603e1853ab4fecbe6241256d99
MISC metadata.xml 459 BLAKE2B 9f39d32ddc5c4f4244168dc33e7a824710edb50f125c8ecc273ea3d2095df8a3053c6cdbfe57bec5a94e593420948844fb293d9d9b1667ce56b8e3fc7884b11e SHA512 9615b934055753d0b8afff2d304101cc508a05948af9495e6c362c4c158cf5a54becd38754d5282d7de26496acb705a23e96b6b5da63dab438a937bd1cfa3ca2

View File

@ -1,72 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy pypy3 )
PYTHON_REQ_USE="threads(+)"
inherit eutils distutils-r1
DESCRIPTION="A full-featured template engine for Python"
HOMEPAGE="https://jinja.pocoo.org/ https://pypi.org/project/Jinja2/"
# pypi tarball is missing tests
SRC_URI="https://github.com/pallets/jinja/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 ~arm arm64 hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
IUSE="doc examples test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/markupsafe[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
!dev-python/jinja:compat"
DEPEND="${RDEPEND}
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
# XXX: handle Babel better?
wrap_opts() {
local mydistutilsargs=()
if [[ ${EPYTHON} == python* ]]; then
mydistutilargs+=( --with-debugsupport )
fi
"${@}"
}
python_compile() {
wrap_opts distutils-r1_python_compile
}
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
py.test || die
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
if use examples ; then
docinto examples
dodoc -r examples/.
fi
distutils-r1_python_install_all
insinto /usr/share/vim/vimfiles/syntax
doins ext/Vim/*
}
pkg_postinst() {
if ! has_version dev-python/Babel; then
elog "For i18n support, please emerge dev-python/Babel."
fi
}

View File

@ -1,10 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
PYTHON_COMPAT=( python3_{8..10} pypy3 )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
@ -16,11 +15,11 @@ SRC_URI="https://github.com/pallets/jinja/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
IUSE="examples"
RDEPEND="
dev-python/markupsafe[${PYTHON_USEDEP}]
>=dev-python/markupsafe-2.0.0[${PYTHON_USEDEP}]
!dev-python/jinja:compat"
distutils_enable_sphinx docs \
@ -37,18 +36,6 @@ src_prepare() {
distutils-r1_src_prepare
}
python_compile() {
distutils-r1_python_compile
if ! python_is_python3; then
rm "${BUILD_DIR}"/lib/jinja2/async*.py || die
fi
}
python_install() {
distutils-r1_python_install --skip-build
}
python_install_all() {
if use examples ; then
docinto examples
@ -56,9 +43,6 @@ python_install_all() {
fi
distutils-r1_python_install_all
insinto /usr/share/vim/vimfiles/syntax
doins ext/Vim/*
}
pkg_postinst() {

View File

@ -1,7 +1,4 @@
AUX yarl-1.4.2-disable-broken-tests.patch 750 BLAKE2B a4d0346c790f68e49c4c1baf5ac0f713a619cd9bae6514bfd22157c8edad08f950b1e207f78b2c9e06e0a0bf281a4406a639200e7b3559a727ff048cf4c51105 SHA512 a0ac3983aa6d88a30b1b31872f24b1ecd7c1055d5f8354ecb14da6aaab029ffe9e5f818d75e5ff3f44f6f70c624ec20bd9f5ae1831e3297cdaf423af7e2ce3d5
AUX yarl-1.4.2-test-without-coverage.patch 585 BLAKE2B 2a49dbc7f8c0465b51f0d3405e897b61ce16355c64a7b19cb805d1d546b26a8088e1aca834b215b3337ed6062d068d646e635d85fdbfa9ae98744fa0a5956cf7 SHA512 f7775c6a01fac42c9c4a544d9326692d97cdf4a4a2e8c7d69a53dc6d0847eaef9660d193531c9bf50964b0e01d764fe85761c3ba1dae8c70669795723da7154d
DIST yarl-1.4.2.tar.gz 163521 BLAKE2B ababd1d35bca51a84c8d189266ef5d35f7a4dc65c84c4097a260e86fb838b1a35d2a639c1cf2a407aac8e68c5f67222aae6fa1f6cbfa5cb71dd851b385bae45a SHA512 036562b645d7b9b3ed4a749decb189587b41ab13b5dda5ff461b00eebadf1ecdbd8d5ae06932cc7d8b7ff551cd630f8671eb0f6c854b20996cda4a6897994fa0
DIST yarl-1.6.3.tar.gz 176823 BLAKE2B 58d36c6d18ef661cb08074153081f541fc98968107d71e7b501297f45f38de092804bba2ae89ddcf0da79b5d4fca62292a4c460bc9dff9d723d3958bc64ff84b SHA512 4c76b94198b8e334f4b4e71d92b0fe23f752d35e0c29bc68df99648b3f48fbb6e3dd8d7339138544e5dc8fbf64c15cb61678052670ac47edc5be958df819d42e
EBUILD yarl-1.4.2.ebuild 720 BLAKE2B 89f6dcbf3890552b8b8e521cf1d25e1aa810bd3549c8d1d38ffefb08b4be9fd5fe7cf42dbb4210b9df8826aa88d303f27dfbc1ad567d62a532a24e372cc1cabb SHA512 1ff2dae8bd197c04366e938d1c5b517210a584e3f45ebc1b034f21cdf142e5973c837e1c26e6d4b1b037d15e0bc94aa8045cf16d52419e8fcbee4924cc0258f0
EBUILD yarl-1.6.3.ebuild 734 BLAKE2B 107c60971e7c2cb62ba66e8008c3f198b2500c172be5df7638e21adab5ae42fce69659ed8ab5cd96095d45386f918e9c63ed566831a6e485bcd6a054f318a41b SHA512 0fa94b829711fc273b0189be4cf7b66a66127689b1952052fd721f55f05a6852979873a70128ed612c8a1899c2e6beeca48761fba0e1c717ba9f605f6f450b19
EBUILD yarl-1.6.3-r1.ebuild 825 BLAKE2B 627eed221470a0af05b89cfaa56f52cd2997ad7436dd3f00a6457264a3ba6e322594e668482f0cb08dc5406b7d267dd689fc0786fe172fb490a80db528f80f74 SHA512 9d7c73d6fddd6bf16ea52ef79556b1cf5646c7c9fdad9d84036e5ac8ac058d12b115e54df61eab3f73e31788f918e959ea27f0bb10fc7a48b4875e3a4c377c06
MISC metadata.xml 455 BLAKE2B 1b921d4a4abf5922b39e34781250850ac644a7ccd8e3864fd5592e7be65d9f9575d8d737a68f3bf6824bcf696e0a7ccf2e5fba735cb1d0b8d381a7a5b2c93a07 SHA512 64a696a4437d7e37ea7220d202b0ce59cf717ddd8fa0e989f7874ecc32775299be933a201ba92090fabac60c6e60eeb987a18627bf9b9867af0d68d21c8258b1

View File

@ -1,25 +0,0 @@
From ca06b26582c08c6e75fa5588f712c4c2f7247223 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Wed, 4 Mar 2020 22:36:58 +0100
Subject: [PATCH] Disable failing test TestScheme.test_no_scheme1
---
tests/test_url_parsing.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_url_parsing.py b/tests/test_url_parsing.py
index beea365..58fa198 100644
--- a/tests/test_url_parsing.py
+++ b/tests/test_url_parsing.py
@@ -38,7 +38,7 @@ class TestScheme:
assert u.query_string == ""
assert u.fragment == ""
- def test_no_scheme1(self):
+ def _test_no_scheme1(self):
u = URL("google.com:80")
assert u.scheme == ""
assert u.host is None
--
2.24.1

View File

@ -1,29 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9} )
inherit distutils-r1
DESCRIPTION="Yet another URL library"
HOMEPAGE="https://github.com/aio-libs/yarl/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86"
RDEPEND="
>=dev-python/multidict-4.0[${PYTHON_USEDEP}]
>=dev-python/idna-2.0[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/${PN}-1.4.2-test-without-coverage.patch
# Upstream: https://github.com/aio-libs/yarl/issues/410
"${FILESDIR}"/${PN}-1.4.2-disable-broken-tests.patch
)

View File

@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} pypy3 )
PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
@ -17,13 +18,19 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x6
RDEPEND="
>=dev-python/multidict-4.0[${PYTHON_USEDEP}]
>=dev-python/idna-2.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
>=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
' python3_{6,7} pypy3)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/alabaster
PATCHES=(
"${FILESDIR}"/${PN}-1.4.2-test-without-coverage.patch
)
python_test() {
cd tests || die
# broken by CPython CVE fix
epytest \
--deselect tests/test_url_query.py::test_semicolon_as_separator
}