From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/socketpool/Manifest | 4 +++ .../socketpool/files/socketpool-0.5.2-locale.patch | 21 ++++++++++++ dev-python/socketpool/metadata.xml | 12 +++++++ dev-python/socketpool/socketpool-0.5.3.ebuild | 37 ++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 dev-python/socketpool/Manifest create mode 100644 dev-python/socketpool/files/socketpool-0.5.2-locale.patch create mode 100644 dev-python/socketpool/metadata.xml create mode 100644 dev-python/socketpool/socketpool-0.5.3.ebuild (limited to 'dev-python/socketpool') diff --git a/dev-python/socketpool/Manifest b/dev-python/socketpool/Manifest new file mode 100644 index 000000000000..c580b1902770 --- /dev/null +++ b/dev-python/socketpool/Manifest @@ -0,0 +1,4 @@ +AUX socketpool-0.5.2-locale.patch 615 BLAKE2B eecb66a15dff1ca068da3147b7e27618f49cb414e34a27b10949565dfac46f5b714bd00bcfc152c9d3b98b59ae4282fa5431aff61295086abcf0e5367f45954c SHA512 df27a0b1cc8ef2475ad8c68e3f77153ccf5397e962bfae2f6116dd37d1ad3a1a45cfa0912ee4d4597560004b8875b609bb8b0a6298861651ff23ff2e70955dce +DIST socketpool-0.5.3.tar.gz 9793 BLAKE2B 89b7b71d9f05f7f5e560eb3cb5e7cd4d2254ff971066d236b98903d790dd96f6c580333e9fafeab7314c50f499c9617df706a20efa1c52de069c583b6dabd928 SHA512 6d16a18927672157703fb5a29f4332241f9ddf743dfee8f2606d600dbb75d547f2e0dcc0398febe55df3319829a80b3f537b5877679e4f674569ef55de78c1b7 +EBUILD socketpool-0.5.3.ebuild 943 BLAKE2B 6f7a8bc86c731583aab2170c45989c99400a4a6045457e08b6c613a798780d951a71d051680cdbd7162642b2faafbafac0f2c57a94c009a9afd8080f1907a920 SHA512 da84c454d5ac42ef4174d448b26db22be480a80bcbf6b083c3e70430964da5b55ab51849df5fbb0f7102bdde127fd0757e302f9b7892dd7768ece34497207436 +MISC metadata.xml 383 BLAKE2B bd4f1eccf7f3fdd7c416bfea5e96ff6b1b28b4bc5e703e1e236be4932e20bdbb8d9bdf6712f0bfd8845b49fe0a7ebc032f21bfadfe419554ce54c2b790cf73ce SHA512 3051b0487ab4dcdf440c36b12829a30c03db7256c99eef6623497b8223ebf6cf188a9ae054342c468771b2a38f8b3508ff0f49aa19398f3aec0a25a7bc1e9248 diff --git a/dev-python/socketpool/files/socketpool-0.5.2-locale.patch b/dev-python/socketpool/files/socketpool-0.5.2-locale.patch new file mode 100644 index 000000000000..aa0af681a768 --- /dev/null +++ b/dev-python/socketpool/files/socketpool-0.5.2-locale.patch @@ -0,0 +1,21 @@ +diff -ur socketpool-0.5.2.orig/setup.py socketpool-0.5.2/setup.py +--- socketpool-0.5.2.orig/setup.py 2012-08-05 12:33:47.000000000 +0800 ++++ socketpool-0.5.2/setup.py 2013-02-05 00:22:13.685705089 +0800 +@@ -5,7 +5,7 @@ + # See the NOTICE for more information. + + +-import os ++import os, io + from setuptools import setup, find_packages + + CLASSIFIERS = [ +@@ -22,7 +22,7 @@ + + + # read long description +-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: ++with io.open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf8') as f: + long_description = f.read() + + DATA_FILES = [ diff --git a/dev-python/socketpool/metadata.xml b/dev-python/socketpool/metadata.xml new file mode 100644 index 000000000000..a948c85adc2a --- /dev/null +++ b/dev-python/socketpool/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + socketpool + benoitc/socketpool + + diff --git a/dev-python/socketpool/socketpool-0.5.3.ebuild b/dev-python/socketpool/socketpool-0.5.3.ebuild new file mode 100644 index 000000000000..e73308b6f454 --- /dev/null +++ b/dev-python/socketpool/socketpool-0.5.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="A simple Python socket pool" +HOMEPAGE="https://github.com/benoitc/socketpool/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +KEYWORDS="amd64 arm ~arm64 ppc ppc64 ~s390 ~sh x86" +IUSE="examples test" +LICENSE="|| ( MIT public-domain )" +SLOT="0" + +RDEPEND="$(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' 'python2*')" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${PN}-0.5.2-locale.patch ) + +python_test() { + py.test tests || die +} + +python_install_all() { + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi + distutils-r1_python_install_all + + # package installs unneeded LICENSE files here + rm -rf "${ED}"/usr/socketpool || die +} -- cgit v1.2.3