diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/yarl | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/yarl')
| -rw-r--r-- | dev-python/yarl/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/yarl/files/yarl-1.4.2-disable-broken-tests.patch | 25 | ||||
| -rw-r--r-- | dev-python/yarl/files/yarl-1.4.2-test-without-coverage.patch | 24 | ||||
| -rw-r--r-- | dev-python/yarl/metadata.xml | 16 | ||||
| -rw-r--r-- | dev-python/yarl/yarl-1.3.0.ebuild | 36 | ||||
| -rw-r--r-- | dev-python/yarl/yarl-1.4.2.ebuild | 29 |
6 files changed, 132 insertions, 0 deletions
diff --git a/dev-python/yarl/Manifest b/dev-python/yarl/Manifest new file mode 100644 index 000000000000..ae6f67274389 --- /dev/null +++ b/dev-python/yarl/Manifest @@ -0,0 +1,2 @@ +DIST yarl-1.3.0.tar.gz 159748 BLAKE2B cd7844545f3ee749d1dce865e21065c2b8e0c1ebf4715a3f8ec01064e534fa5b8b872539aece8a7e3a7ae147942ff5e0dc1878d84449d8248fd8e33c4234e3f1 SHA512 58e539900e7754b0a3d41960ebe20d21fd7245ce71fccb31d6a1204298dd71cacd742b2cb2b4c49c3a9b28ce5c664c412334f29e23a3c608aad8018142ba3e14 +DIST yarl-1.4.2.tar.gz 163521 BLAKE2B ababd1d35bca51a84c8d189266ef5d35f7a4dc65c84c4097a260e86fb838b1a35d2a639c1cf2a407aac8e68c5f67222aae6fa1f6cbfa5cb71dd851b385bae45a SHA512 036562b645d7b9b3ed4a749decb189587b41ab13b5dda5ff461b00eebadf1ecdbd8d5ae06932cc7d8b7ff551cd630f8671eb0f6c854b20996cda4a6897994fa0 diff --git a/dev-python/yarl/files/yarl-1.4.2-disable-broken-tests.patch b/dev-python/yarl/files/yarl-1.4.2-disable-broken-tests.patch new file mode 100644 index 000000000000..b6f774a77eaa --- /dev/null +++ b/dev-python/yarl/files/yarl-1.4.2-disable-broken-tests.patch @@ -0,0 +1,25 @@ +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 + diff --git a/dev-python/yarl/files/yarl-1.4.2-test-without-coverage.patch b/dev-python/yarl/files/yarl-1.4.2-test-without-coverage.patch new file mode 100644 index 000000000000..6fac57fdd249 --- /dev/null +++ b/dev-python/yarl/files/yarl-1.4.2-test-without-coverage.patch @@ -0,0 +1,24 @@ +From 364faab4ba6d433fdb31785ee14c25fa4d65dbb4 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Wed, 4 Mar 2020 22:23:40 +0100 +Subject: [PATCH] setup.cfg: Stop collecting coverage during test execution + +--- + setup.cfg | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.cfg b/setup.cfg +index a9c0f7b..aea046b 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -2,7 +2,6 @@ + license_file = LICENSE + + [tool:pytest] +-addopts = --cov=yarl -v + filterwarnings = error + norecursedirs = dist docs build .tox .eggs venv virtualenv .git + minversion = 3.8.2 +-- +2.24.1 + diff --git a/dev-python/yarl/metadata.xml b/dev-python/yarl/metadata.xml new file mode 100644 index 000000000000..b2f76f79cd18 --- /dev/null +++ b/dev-python/yarl/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">yarl</remote-id> + <remote-id type="github">aio-libs/yarl</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/yarl/yarl-1.3.0.ebuild b/dev-python/yarl/yarl-1.3.0.ebuild new file mode 100644 index 000000000000..f541d5c0f1d2 --- /dev/null +++ b/dev-python/yarl/yarl-1.3.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{6,7,8} ) + +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="amd64 ~arm arm64 x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/multidict-4.0[${PYTHON_USEDEP}] + >=dev-python/idna-2.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # don't use pytest-runner for tests + sed -i 's|"pytest-runner"||' setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v tests || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/yarl/yarl-1.4.2.ebuild b/dev-python/yarl/yarl-1.4.2.ebuild new file mode 100644 index 000000000000..33d927f6403b --- /dev/null +++ b/dev-python/yarl/yarl-1.4.2.ebuild @@ -0,0 +1,29 @@ +# 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 +) |
