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/imapclient | |
| 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/imapclient')
| -rw-r--r-- | dev-python/imapclient/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/imapclient/files/imapclient-2.1.0-py36-tests.patch | 28 | ||||
| -rw-r--r-- | dev-python/imapclient/imapclient-2.1.0.ebuild | 43 | ||||
| -rw-r--r-- | dev-python/imapclient/metadata.xml | 12 |
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/imapclient/Manifest b/dev-python/imapclient/Manifest new file mode 100644 index 000000000000..f0c7713f8662 --- /dev/null +++ b/dev-python/imapclient/Manifest @@ -0,0 +1 @@ +DIST imapclient-2.1.0.tar.gz 85925 BLAKE2B 9725be7988c4bec105fda73389241e39e6c006bccd8130125b280041d13becd6a71a1832763171daf25dfb4e7b4a7fc86c0a3afa93216c3dc4370b19348c0a5e SHA512 57e5824504f2667cf41ac4983130e16a5ea73ea37f29cdb16295eb725b56eda55db26a12e380acb579ef6b8540d38ae6badac5dd5b644d4419cbe9151f634e70 diff --git a/dev-python/imapclient/files/imapclient-2.1.0-py36-tests.patch b/dev-python/imapclient/files/imapclient-2.1.0-py36-tests.patch new file mode 100644 index 000000000000..d9a429a27671 --- /dev/null +++ b/dev-python/imapclient/files/imapclient-2.1.0-py36-tests.patch @@ -0,0 +1,28 @@ +From 26fb9c9794ad0b2541320d71d5704fce5642a53c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 10 Aug 2019 09:15:37 +0200 +Subject: [PATCH] test_imapclient: Fix LoggerAdapter version check + +The LoggerAdapter behavior change has been backported into Python 3.6.4. +Update the check to expect logger.log() call in 3.6.4+ rather than 3.7+. + +Fixes #383. +--- + tests/test_imapclient.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_imapclient.py b/tests/test_imapclient.py +index 91ccfa9..0f12823 100644 +--- a/tests/test_imapclient.py ++++ b/tests/test_imapclient.py +@@ -604,8 +604,8 @@ def test_redacted_password(self): + adapter = IMAPlibLoggerAdapter(logger_mock, dict()) + if six.PY3: + adapter.info("""> b'ICHH1 LOGIN foo@bar.org "secret"'""") +- if sys.version_info >= (3, 7): +- # LoggerAdapter in Python 3.7+ calls logger.log() ++ if sys.version_info >= (3, 6, 4): ++ # LoggerAdapter in Python 3.6.4+ calls logger.log() + logger_mock.log.assert_called_once_with( + logging.INFO, + "> b'ICHH1 LOGIN **REDACTED**", diff --git a/dev-python/imapclient/imapclient-2.1.0.ebuild b/dev-python/imapclient/imapclient-2.1.0.ebuild new file mode 100644 index 000000000000..49a5838c9844 --- /dev/null +++ b/dev-python/imapclient/imapclient-2.1.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="easy-to-use, pythonic, and complete IMAP client library" +HOMEPAGE="https://github.com/mjs/imapclient" +SRC_URI="https://github.com/mjs/imapclient/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc examples" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +PATCHES=( + # fix incorrect assumption about py3.6 behavior + # https://github.com/mjs/imapclient/pull/384 + "${FILESDIR}"/imapclient-2.1.0-py36-tests.patch +) + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + esetup.py test +} + +python_install_all() { + local DOCS=( AUTHORS.rst NEWS.rst README.rst ) + use doc && local HTML_DOCS=( doc/html/. ) + distutils-r1_python_install_all + use examples && dodoc -r examples +} diff --git a/dev-python/imapclient/metadata.xml b/dev-python/imapclient/metadata.xml new file mode 100644 index 000000000000..3b15f31acb31 --- /dev/null +++ b/dev-python/imapclient/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">IMAPClient</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
