From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/imapclient/Manifest | 8 ++++ dev-python/imapclient/files/0.12-tests.patch | 36 ++++++++++++++++ dev-python/imapclient/imapclient-0.12.ebuild | 62 ++++++++++++++++++++++++++++ dev-python/imapclient/imapclient-0.13.ebuild | 62 ++++++++++++++++++++++++++++ dev-python/imapclient/metadata.xml | 11 +++++ 5 files changed, 179 insertions(+) create mode 100644 dev-python/imapclient/Manifest create mode 100644 dev-python/imapclient/files/0.12-tests.patch create mode 100644 dev-python/imapclient/imapclient-0.12.ebuild create mode 100644 dev-python/imapclient/imapclient-0.13.ebuild create mode 100644 dev-python/imapclient/metadata.xml (limited to 'dev-python/imapclient') diff --git a/dev-python/imapclient/Manifest b/dev-python/imapclient/Manifest new file mode 100644 index 000000000000..b23709b5500e --- /dev/null +++ b/dev-python/imapclient/Manifest @@ -0,0 +1,8 @@ +AUX 0.12-tests.patch 1596 SHA256 91c2baa7ea8dbf9e3557080c2cc288a8594b0a704e4586dfe219ca98542b7e47 SHA512 87cd44146f273bf4d77df34eeb4f921eaaa36bfed951769b7c7b8b729b21ca078f8e7a907d98529f917c88754c48b5cc08acb53ac7786dd6b205b567a50d2c0d WHIRLPOOL 5e6bff85ff08ee76a843034221dcda8668a655be7b6ce88ae87ed8fab82bad46f5f153339fd0faca423bad3e364069d1b0ab983792e6d91b35a76a0855fab53c +DIST IMAPClient-0.12.tar.gz 100698 SHA256 037ff008f1454287c1ed8684e1cf40b2ced382a875c5157dce380562f3566e15 SHA512 bd7d3e3911ff5ef1cc4a66f20e261955851562e76228f941d35f16a4680678be6a3741d520cc3133925a2dba9e8b6b5b988d7a740ff8abb63c14db1cf962acda WHIRLPOOL 134bf4db98806dbaf98bd780b92b8be2a2dbbcfec1ae83320f52a83bf0952f139bebd99d686d212830d25c08886217062577576a76205af54085628b03d7dbeb +DIST IMAPClient-0.13.tar.gz 102427 SHA256 3a0e9a3c790722aa4882982090e68546c7f9352eb535026b06cead965968f36c SHA512 daebaf7f4180b6c9c6f4a486b313abfdd06f3ed8ece18a19bf46a50e56c2094e85de8a8e4efb8850566378eba016c10816611d03852caf637ee1d43f3c8a418f WHIRLPOOL b29ae9ea83ea4e736202af263215132028da47dfb4e9ee220b37e35eb2649cb85cc46bdabf6b06c5edb5f5173b8b942cb73293c0ae22c5efb1397c7bb65cfde9 +EBUILD imapclient-0.12.ebuild 1706 SHA256 17226d43cbe54777e3adc40287c509e3afab2bfbfc361b2b1929305cb2c7fb80 SHA512 bb77119146d5f36a744dd1c79ac3864f208e03876d8fdf6eb5a100c9f661316b39a378cac220c2249b4f55569679b1fe4ef024b0b04b16bf47bf9cd86154bc90 WHIRLPOOL 50e2e781f77b2d691db807c1f9661abb38eef0f16817432aaa75fff30ba9e462d0fb13776a95a63014d978a39ccb4d8d597668c781e0c569b19db5d5a0bbccdd +EBUILD imapclient-0.13.ebuild 1714 SHA256 1112fc0b7c9fd508150af401f8f1dc417b4566ca6c4d0b7e67c3915f53193838 SHA512 3bfdc98ee2e723cafb291a2e3a2994f12f55cacf5c0b804c3b7633980fea0656c3cc79e29fc81734707e9a1f901b85c48b4a557f5c549407df94199de9bdb1cf WHIRLPOOL 0a0ed8bafc54fcbab8af1893852594dc4c97f1f8f64da1b76dddbe8af883233f423d80eb5d4f246f1824a444c73f9daedc27d8b351e9232d7badc2ac45146a29 +MISC ChangeLog 2673 SHA256 10e147a6bd67d051a019b6159e1e1397ccc16a9e03c9c4fad3f7a68a89ef7278 SHA512 6d84e3a92536d67801a6ad62df5cad23fb95194d191567c089fd654224ceb21941aeb132a7d4347f179070bfffcd0ca21191d3b16a362ba8bdd7330bf0e73934 WHIRLPOOL 451a93cb5f18c5738a318e4ce263464ecd2c051a33e78b0fac7ae7d3e14b40cbc6c39b3219627a9efa75a81dbd0abc3982434c8428246d8a40aafd57fb9b84e5 +MISC ChangeLog-2015 1541 SHA256 b3a21cabb9bb0e573667d0802aa7cedf53c7f5cf2481f14c6c46c82aaa545541 SHA512 5d7262239a762328bb470b7453f27bc47fb8e8f6a8c00f05927d2c5ca0bb00c069ab1ea9c0a1fd22efc3cc81bde673eeede5b54da8f12bf7a4313acd4569b0cb WHIRLPOOL 8b22545905d54c77d6cbc5ae4edb2223e6ee5dd6480fe40490f05d39c3af4ad266f822f367769d39d6e5bd53c25a5c8a7f504d760c6b2becb8bedd53934198b2 +MISC metadata.xml 313 SHA256 7682db8fe00091e9d289663af9313183c04845b6df0dee69d5abc3434cd147fe SHA512 b8b32e8bfcf59a3f7134ca2f562365c02e590a2d6e8e5eae9c6d3dbe2d4918b973b614aa38650cc67a5c34167b6293f4dede92e53f635f079a050bb26289d48b WHIRLPOOL b52e85fe2041dc781484a73bbf8feba37a9d3ebd4ceac6cddfdcea353b86a400e878560236eac92baf222b49d7320d1790c64834f8b5e54ae6361cac55342fb8 diff --git a/dev-python/imapclient/files/0.12-tests.patch b/dev-python/imapclient/files/0.12-tests.patch new file mode 100644 index 000000000000..0bd0d001e6e1 --- /dev/null +++ b/dev-python/imapclient/files/0.12-tests.patch @@ -0,0 +1,36 @@ +diff -ur IMAPClient-0.12.orig/imapclient/test/test_imapclient.py IMAPClient-0.12/imapclient/test/test_imapclient.py +--- imapclient/test/test_imapclient.py 2015-01-12 19:36:18.000000000 +0800 ++++ imapclient/test/test_imapclient.py 2015-01-17 08:42:46.669121934 +0800 +@@ -10,7 +10,7 @@ + from datetime import datetime + from mock import patch, sentinel, Mock + +-from imapclient import six ++import six + from imapclient.fixed_offset import FixedOffset + from .testable_imapclient import TestableIMAPClient as IMAPClient + from .imapclient_test import IMAPClientTest +diff -ur IMAPClient-0.12.orig/imapclient/test/test_imap_utf7.py IMAPClient-0.12/imapclient/test/test_imap_utf7.py +--- imapclient/test/test_imap_utf7.py 2015-01-12 19:36:18.000000000 +0800 ++++ imapclient/test/test_imap_utf7.py 2015-01-17 08:43:23.893392410 +0800 +@@ -4,7 +4,7 @@ + + from __future__ import unicode_literals + +-from imapclient.six import text_type, binary_type, int2byte, unichr ++from six import text_type, binary_type, int2byte, unichr + from imapclient.imap_utf7 import decode, encode + from imapclient.test.util import unittest + +diff -ur IMAPClient-0.12.orig/imapclient/test/test_response_lexer.py IMAPClient-0.12/imapclient/test/test_response_lexer.py +--- imapclient/test/test_response_lexer.py 2015-01-12 19:36:18.000000000 +0800 ++++ imapclient/test/test_response_lexer.py 2015-01-17 08:42:14.749747748 +0800 +@@ -5,7 +5,7 @@ + from __future__ import unicode_literals + + from imapclient.response_lexer import TokenSource +-from imapclient.six import next ++from six import next + from imapclient.test.util import unittest + + diff --git a/dev-python/imapclient/imapclient-0.12.ebuild b/dev-python/imapclient/imapclient-0.12.ebuild new file mode 100644 index 000000000000..8c024c439d83 --- /dev/null +++ b/dev-python/imapclient/imapclient-0.12.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4} pypy ) + +inherit distutils-r1 + +MY_PN="IMAPClient" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="easy-to-use, pythonic, and complete IMAP client library" +HOMEPAGE="http://imapclient.freshfoo.com/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc examples test" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) )" + +S=${WORKDIR}/${MY_P} + +python_prepare_all() { + # use system setuptools + sed -i '/use_setuptools/d' setup.py || die + + # drop explicit mock version test dep + sed -i "/tests_require/s:'mock==.\+':'mock':" setup.py || die + + # use system six library. patch proven less preferable to use of sed (< maintenance) + # but a copy of the working hunks from prior version works fine for now. + rm imapclient/six.py || die + epatch "${FILESDIR}"/0.12-tests.patch + sed -e 's:from .six:from six:g' \ + -e 's:from . import six:import six:g' \ + -i ${PN}/*.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" -m unittest discover || die "tests failed under ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + # don't install examples and tests in module dir + rm -r "${D}"$(python_get_sitedir)/imapclient/{examples,test} || die +} + +python_install_all() { +# local DOCS=( AUTHORS HACKING.rst NEWS.rst README.rst THANKS ) + use doc && local HTML_DOCS=( doc/html/. ) + distutils-r1_python_install_all + use examples && dodoc -r ${PN}/examples +} diff --git a/dev-python/imapclient/imapclient-0.13.ebuild b/dev-python/imapclient/imapclient-0.13.ebuild new file mode 100644 index 000000000000..1bb557f59606 --- /dev/null +++ b/dev-python/imapclient/imapclient-0.13.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) + +inherit distutils-r1 + +MY_PN="IMAPClient" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="easy-to-use, pythonic, and complete IMAP client library" +HOMEPAGE="http://imapclient.freshfoo.com/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc examples test" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) )" + +S=${WORKDIR}/${MY_P} + +python_prepare_all() { + # use system setuptools + sed -i '/use_setuptools/d' setup.py || die + + # drop explicit mock version test dep + sed -i "/tests_require/s:'mock==.\+':'mock':" setup.py || die + + # use system six library. patch proven less preferable to use of sed (< maintenance) + # but a copy of the working hunks from prior version works fine for now. + rm imapclient/six.py || die + epatch "${FILESDIR}"/0.12-tests.patch + sed -e 's:from .six:from six:g' \ + -e 's:from . import six:import six:g' \ + -i ${PN}/*.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" -m unittest discover || die "tests failed under ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + # don't install examples and tests in module dir + rm -r "${D}"$(python_get_sitedir)/imapclient/{examples,test} || die +} + +python_install_all() { +# local DOCS=( AUTHORS HACKING.rst NEWS.rst README.rst THANKS ) + use doc && local HTML_DOCS=( doc/html/. ) + distutils-r1_python_install_all + use examples && dodoc -r ${PN}/examples +} diff --git a/dev-python/imapclient/metadata.xml b/dev-python/imapclient/metadata.xml new file mode 100644 index 000000000000..918bf0e26c80 --- /dev/null +++ b/dev-python/imapclient/metadata.xml @@ -0,0 +1,11 @@ + + + + + python@gentoo.org + Python + + + IMAPClient + + -- cgit v1.2.3