From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 891CD138350 for ; Mon, 3 Feb 2020 18:07:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58B27E08D0; Mon, 3 Feb 2020 18:07:57 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30D95E08D0 for ; Mon, 3 Feb 2020 18:07:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B38734E65C for ; Mon, 3 Feb 2020 18:07:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2109611F for ; Mon, 3 Feb 2020 18:07:52 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1580752574.47994475c1fe4edf60b77105c2b8c6f12f8ff615.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/tekore/files/, dev-python/tekore/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/tekore/Manifest dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch dev-python/tekore/metadata.xml dev-python/tekore/tekore-1.0.1.ebuild dev-python/tekore/tekore-1.1.0.ebuild X-VCS-Directories: dev-python/tekore/ dev-python/tekore/files/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 47994475c1fe4edf60b77105c2b8c6f12f8ff615 X-VCS-Branch: dev Date: Mon, 3 Feb 2020 18:07:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 97bd33c7-6380-4854-a02e-74848a949269 X-Archives-Hash: 77e1ca609998ed04c69c3fa11763e559 commit: 47994475c1fe4edf60b77105c2b8c6f12f8ff615 Author: Andrew Ammerlaan riseup net> AuthorDate: Mon Feb 3 17:56:14 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Mon Feb 3 17:56:14 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=47994475 dev-python/tekore: Version bump 1.1.0 Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/tekore/Manifest | 2 +- .../tekore-1.0.1-skip-sender_type-tests.patch | 75 ---------------------- dev-python/tekore/metadata.xml | 4 -- .../{tekore-1.0.1.ebuild => tekore-1.1.0.ebuild} | 19 ++++-- 4 files changed, 14 insertions(+), 86 deletions(-) diff --git a/dev-python/tekore/Manifest b/dev-python/tekore/Manifest index ace9472..b4bc819 100644 --- a/dev-python/tekore/Manifest +++ b/dev-python/tekore/Manifest @@ -1 +1 @@ -DIST tekore-1.0.1.tar.gz 130077 BLAKE2B 21550c7545125248a0f8ac61eb1c97e80b299de38940ec36b20dbc73fc8224cc703955b0e6aefac1fdd98d59a55e67d24995dcbbeb17f8670515d7acea86be16 SHA512 fb02005990daff11b0c3d7881ad2842578a35e0e62fec5130506d4df48311c2cceae9e7d3a322ad8058a058fdc92bac06533b958be2b57a9d8e85e16c39ef062 +DIST tekore-1.1.0.tar.gz 138871 BLAKE2B 5580c502129ed1fd9c7a7f6a860d918a0a46f6ac51a3f6bef5f08c1e036756684d11c670e55343c27ff3dd7a40fa45b2307a9a27b594558525b7d4a41617908c SHA512 968315f3818803f076798a88f791ca10a4a118850ee730d449e2db8e5d5aca00293f8d8483a4d9edb9802b103aa6328a7514f58f4959bb0a551ed11b065ece87 diff --git a/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch b/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch deleted file mode 100644 index 3ab0043..0000000 --- a/dev-python/tekore/files/tekore-1.0.1-skip-sender_type-tests.patch +++ /dev/null @@ -1,75 +0,0 @@ -diff --git a/tests/sender.py b/tests/sender.py -index 0f9334b..5c5966f 100644 ---- a/tests/sender.py -+++ b/tests/sender.py -@@ -55,22 +55,22 @@ class TestSingletonSender(unittest.TestCase): - ) - - --def test_request_prepared(sender_type): -- mock = MockSessionFactory() -- with patch('tekore.sender.Session', mock): -- s = sender_type() -- r = Request() -- s.send(r) -- mock.instances[0].prepare_request.assert_called_with(r) -- -- --def test_keywords_passed_to_session(sender_type): -- mock = MockSessionFactory() -- kwargs = dict(k1='k1', k2='k2') -- with patch('tekore.sender.Session', mock): -- s = sender_type(**kwargs) -- s.send(Request()) -- mock.instances[0].send.assert_called_with(mock.prepare_return, **kwargs) -+# def test_request_prepared(sender_type): -+# mock = MockSessionFactory() -+# with patch('tekore.sender.Session', mock): -+# s = sender_type() -+# r = Request() -+# s.send(r) -+# mock.instances[0].prepare_request.assert_called_with(r) -+ -+ -+# def test_keywords_passed_to_session(sender_type): -+# mock = MockSessionFactory() -+# kwargs = dict(k1='k1', k2='k2') -+# with patch('tekore.sender.Session', mock): -+# s = sender_type(**kwargs) -+# s.send(Request()) -+# mock.instances[0].send.assert_called_with(mock.prepare_return, **kwargs) - - - class TestPersistentSender(unittest.TestCase): -@@ -88,11 +88,11 @@ class TestPersistentSender(unittest.TestCase): - s2 = PersistentSender() - self.assertTrue(s1.session is not s2.session) - -- def test_request_prepared(self): -- test_request_prepared(PersistentSender) -+ # def test_request_prepared(self): -+ # test_request_prepared(PersistentSender) - -- def test_keywords_passed_to_session(self): -- test_keywords_passed_to_session(PersistentSender) -+ # def test_keywords_passed_to_session(self): -+ # test_keywords_passed_to_session(PersistentSender) - - - class TestTransientSender(unittest.TestCase): -@@ -104,11 +104,11 @@ class TestTransientSender(unittest.TestCase): - s.send(Request()) - self.assertEqual(len(mock.instances), 2) - -- def test_request_prepared(self): -- test_request_prepared(TransientSender) -+ # def test_request_prepared(self): -+ # test_request_prepared(TransientSender) - -- def test_keywords_passed_to_session(self): -- test_keywords_passed_to_session(TransientSender) -+ # def test_keywords_passed_to_session(self): -+ # test_keywords_passed_to_session(TransientSender) - - - def ok_response() -> MagicMock: diff --git a/dev-python/tekore/metadata.xml b/dev-python/tekore/metadata.xml index dd0bd9c..628ab20 100644 --- a/dev-python/tekore/metadata.xml +++ b/dev-python/tekore/metadata.xml @@ -6,8 +6,4 @@ andrewammerlaan@riseup.net Andrew Ammerlaan - - proxy-maint@gentoo.org - Proxy Maintainers - diff --git a/dev-python/tekore/tekore-1.0.1.ebuild b/dev-python/tekore/tekore-1.1.0.ebuild similarity index 51% rename from dev-python/tekore/tekore-1.0.1.ebuild rename to dev-python/tekore/tekore-1.1.0.ebuild index 64c1c55..f356ed9 100644 --- a/dev-python/tekore/tekore-1.0.1.ebuild +++ b/dev-python/tekore/tekore-1.1.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_7 ) inherit distutils-r1 @@ -13,18 +13,25 @@ HOMEPAGE="https://tekore.readthedocs.io SRC_URI="https://github.com/felix-hilden/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" -KEYWORDS="~amd64 ~x86 " +KEYWORDS="~amd64 ~x86" SLOT="0" -RDEPEND="dev-python/requests[${PYTHON_USEDEP}]" - -PATCHES="${FILESDIR}/${P}-skip-sender_type-tests.patch" +RDEPEND="dev-python/requests[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}]" DOCS="readme.rst" -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinx-autodoc-typehints +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] distutils_enable_tests pytest +python_prepare_all() { + # docs fail: AttributeError: 'PosixPath' object has no attribute 'rstrip' + sed -i -e 's:sys.path.insert(0, _root):#&:' \ + docs/conf.py || die + + distutils-r1_python_prepare_all +} + python_test() { pytest -vv tests/* || die "Tests fail with ${EPYTHON}" }