From 7dca8a2be3fbfd4dc89ba51566ff47e4e73de078 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 23 May 2022 00:41:11 +0000 Subject: Adding metadata --- dev-python/backrefs/Manifest | 2 +- dev-python/backrefs/backrefs-5.3.ebuild | 11 +++-- dev-python/backrefs/metadata.xml | 4 ++ .../google-reauth-python-0.1.1.ebuild | 2 +- .../requests-mock-1.9.3-obj-has-no-attr-url.patch | 50 ++++++++++++++++++++++ .../requests-mock/requests-mock-1.9.3-r1.ebuild | 49 +++++++++++++++++++++ .../socketio-client-nexus-0.7.6.ebuild | 2 +- .../socketio-client/socketio-client-0.7.2.ebuild | 2 +- .../sphinx_celery/sphinx_celery-2.0.0-r1.ebuild | 2 +- dev-python/yappi/Manifest | 1 + dev-python/yappi/yappi-1.3.5.ebuild | 40 +++++++++++++++++ 11 files changed, 154 insertions(+), 11 deletions(-) create mode 100644 dev-python/requests-mock/files/requests-mock-1.9.3-obj-has-no-attr-url.patch create mode 100644 dev-python/requests-mock/requests-mock-1.9.3-r1.ebuild create mode 100644 dev-python/yappi/yappi-1.3.5.ebuild (limited to 'dev-python') diff --git a/dev-python/backrefs/Manifest b/dev-python/backrefs/Manifest index 314e9f32177a..bec0df37f7bc 100644 --- a/dev-python/backrefs/Manifest +++ b/dev-python/backrefs/Manifest @@ -1,2 +1,2 @@ DIST backrefs-5.2.tar.gz 5220528 BLAKE2B b786df162f37406c36b99d9d4d36ed439837dae2f1d138238d5afc6e9ab108f1c4be1802606e14892ae08d7e3878f5c5068a6923de14d13ab89ef6749fd69b6e SHA512 fd68cd90deaf299a3bb21f70126db51f537e6dc1126fa38beda63901dccfe4db81842aea23eb20ac9311bfef74ff2339ebffdb8cdbcfed197c3ef0fd5b3e793b -DIST backrefs-5.3.tar.gz 4291850 BLAKE2B d2d21dcb2d6a540ff6d06fbadb08c9a9ae6251c9bf78601b59611e80215f659cb46e8d535563c397ea28d014a67ffbc4d29a8f8632023ab9904b9630ac96602a SHA512 c42985a26605e3ab1f8b30943efdc554829d2a5951f32cff486959be1c7c1c61613adc947379aaebec74d8f574ae2c39e46e4682e2f78bb059beee2d9572f352 +DIST backrefs-5.3.gh.tar.gz 4291850 BLAKE2B d2d21dcb2d6a540ff6d06fbadb08c9a9ae6251c9bf78601b59611e80215f659cb46e8d535563c397ea28d014a67ffbc4d29a8f8632023ab9904b9630ac96602a SHA512 c42985a26605e3ab1f8b30943efdc554829d2a5951f32cff486959be1c7c1c61613adc947379aaebec74d8f574ae2c39e46e4682e2f78bb059beee2d9572f352 diff --git a/dev-python/backrefs/backrefs-5.3.ebuild b/dev-python/backrefs/backrefs-5.3.ebuild index c6e9430cccf3..4331a3988d55 100644 --- a/dev-python/backrefs/backrefs-5.3.ebuild +++ b/dev-python/backrefs/backrefs-5.3.ebuild @@ -3,8 +3,8 @@ EAPI=8 +DISTUTILS_USE_PEP517=hatchling PYTHON_COMPAT=( python3_{7,8,9,10} ) -DISTUTILS_USE_PEP517=setuptools DOCS_BUILDER="mkdocs" DOCS_DEPEND=" @@ -22,7 +22,10 @@ HOMEPAGE=" https://github.com/facelessuser/backrefs/ https://pypi.org/project/backrefs/ " -SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI=" + https://github.com/facelessuser/backrefs/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" @@ -36,10 +39,6 @@ BDEPEND=" ) " -PATCHES=( - "${FILESDIR}/${P}-fix-regex-unrecognized-escape.patch" -) - distutils_enable_tests pytest python_prepare_all() { diff --git a/dev-python/backrefs/metadata.xml b/dev-python/backrefs/metadata.xml index 91f6362dca40..1cf00980b74a 100644 --- a/dev-python/backrefs/metadata.xml +++ b/dev-python/backrefs/metadata.xml @@ -13,6 +13,10 @@ proxy-maint@gentoo.org Proxy Maintainers + + python@gentoo.org + Python + Backrefs is a wrapper around Python's built-in Re and the 3rd party Regex library. Backrefs adds various additional back references (and a couple other features) that are known to some regular expression engines, but not to Python's Re and/or Regex. The supported back references actually vary depending on the regular expression engine being used as the engine may already have support for some. diff --git a/dev-python/google-reauth-python/google-reauth-python-0.1.1.ebuild b/dev-python/google-reauth-python/google-reauth-python-0.1.1.ebuild index 2ad455007e83..3c2c2adae450 100644 --- a/dev-python/google-reauth-python/google-reauth-python-0.1.1.ebuild +++ b/dev-python/google-reauth-python/google-reauth-python-0.1.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" diff --git a/dev-python/requests-mock/files/requests-mock-1.9.3-obj-has-no-attr-url.patch b/dev-python/requests-mock/files/requests-mock-1.9.3-obj-has-no-attr-url.patch new file mode 100644 index 000000000000..d43b0b41e65a --- /dev/null +++ b/dev-python/requests-mock/files/requests-mock-1.9.3-obj-has-no-attr-url.patch @@ -0,0 +1,50 @@ +From 7238c1148c756e6a27c3dbc1ccbff7a3e9a60d82 Mon Sep 17 00:00:00 2001 +From: Jamie Lennox +Date: Fri, 28 May 2021 09:33:25 +0700 +Subject: [PATCH] Fix failing pytest + +When you start a method with test_ pytest loads it and tries to parse +the parameters as fixtures. In this case it's not a real test, just a +matcher function used later on in the test file. + +We can inline it into the function as it's only used in one place. + +Fixes: #175 +--- + tests/test_custom_matchers.py | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/tests/test_custom_matchers.py b/tests/test_custom_matchers.py +index d49f72a..546a63e 100644 +--- a/tests/test_custom_matchers.py ++++ b/tests/test_custom_matchers.py +@@ -31,13 +31,6 @@ def match_all(request): + return requests_mock.create_response(request, content=six.b('data')) + + +-def test_a(request): +- if 'a' in request.url: +- return match_all(request) +- +- return None +- +- + class CustomMatchersTests(base.TestCase): + + def assertMatchAll(self, resp): +@@ -65,7 +58,14 @@ def test_failing_matcher(self, mocker): + + @requests_mock.Mocker() + def test_some_pass(self, mocker): +- mocker.add_matcher(test_a) ++ ++ def matcher_a(request): ++ if 'a' in request.url: ++ return match_all(request) ++ ++ return None ++ ++ mocker.add_matcher(matcher_a) + + resp = requests.get('http://any/thing') + self.assertMatchAll(resp) diff --git a/dev-python/requests-mock/requests-mock-1.9.3-r1.ebuild b/dev-python/requests-mock/requests-mock-1.9.3-r1.ebuild new file mode 100644 index 000000000000..27269858198d --- /dev/null +++ b/dev-python/requests-mock/requests-mock-1.9.3-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Mock out responses from the requests package" +HOMEPAGE="https://github.com/jamielennox/requests-mock" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/requests-2.3[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/pbr-0.8[${PYTHON_USEDEP}] + test? ( + dev-python/fixtures[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${P}-obj-has-no-attr-url.patch" +) + +distutils_enable_sphinx doc/source +distutils_enable_tests pytest + +python_prepare_all() { + # Disable reno which only works inside a git repository + sed -i "s/'reno.sphinxext',//" doc/source/conf.py || die + # Remove the release notes section which requires reno + rm doc/source/release-notes.rst || die + sed -i '/^=============$/,/release-notes/d' doc/source/index.rst || die + # Disable a test which requires purl (not in the tree) + sed -i -e "/^import purl$/d" -e "s/test_with_purl/_&/" \ + tests/test_adapter.py || die + distutils-r1_python_prepare_all +} diff --git a/dev-python/socketio-client-nexus/socketio-client-nexus-0.7.6.ebuild b/dev-python/socketio-client-nexus/socketio-client-nexus-0.7.6.ebuild index 1aa6ee9bec05..80239bd96600 100644 --- a/dev-python/socketio-client-nexus/socketio-client-nexus-0.7.6.ebuild +++ b/dev-python/socketio-client-nexus/socketio-client-nexus-0.7.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/socketio-client/socketio-client-0.7.2.ebuild b/dev-python/socketio-client/socketio-client-0.7.2.ebuild index 5add67ce6548..e0647cad3e8a 100644 --- a/dev-python/socketio-client/socketio-client-0.7.2.ebuild +++ b/dev-python/socketio-client/socketio-client-0.7.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/sphinx_celery/sphinx_celery-2.0.0-r1.ebuild b/dev-python/sphinx_celery/sphinx_celery-2.0.0-r1.ebuild index d854c16b8c81..de6a4cff9727 100644 --- a/dev-python/sphinx_celery/sphinx_celery-2.0.0-r1.ebuild +++ b/dev-python/sphinx_celery/sphinx_celery-2.0.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/yappi/Manifest b/dev-python/yappi/Manifest index a6802f368b17..89c16aef4451 100644 --- a/dev-python/yappi/Manifest +++ b/dev-python/yappi/Manifest @@ -1 +1,2 @@ DIST yappi-1.3.3.gh.tar.gz 936700 BLAKE2B 45e974949dfeaf6487dd76ef13a1b7f4456e805e50d85d089a366c5dc4ac852ccc117224ce5f17affa1f1ba1950a86b6f666cbc8e76edf51bf21cf2f527b877f SHA512 5634b8af997a082031ad1ec12eb83498949f1a56be3a324137d118f55ee51758af8c129da30138fa54f165eafed1572fb2289476e6d0cd838a884ee9118fd8da +DIST yappi-1.3.5.gh.tar.gz 936884 BLAKE2B a33ea0c506b3e0d05e141b01ebf4af158c6c794c0c504e52c19c00295f105cfff8a6aa8964ce07e13b87cd60164adfd1107da2c286e17dc0d779e7f9e916fbf8 SHA512 2fc243522414626ed6327b3f6b26c4001f01e288700df62cef81e73cf4077af238836b100167df3c4cfb4e0091d4de14385d349b9821759401cc3666e6fe94e9 diff --git a/dev-python/yappi/yappi-1.3.5.ebuild b/dev-python/yappi/yappi-1.3.5.ebuild new file mode 100644 index 000000000000..cb1a8314d419 --- /dev/null +++ b/dev-python/yappi/yappi-1.3.5.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Yet Another Python Profiler" +HOMEPAGE=" + https://pypi.org/project/yappi/ + https://github.com/sumerc/yappi/ +" +SRC_URI=" + https://github.com/sumerc/yappi/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +BDEPEND=" + test? ( + dev-python/gevent[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +PATCHES=( + "${FILESDIR}/yappi-1.2.5-warnings.patch" +) + +python_test() { + local -x PYTHONPATH=tests + eunittest +} -- cgit v1.3.1