From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1138154-garchives=archives.gentoo.org@lists.gentoo.org>
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 BDABF138350
	for <garchives@archives.gentoo.org>; Wed, 15 Jan 2020 23:46:35 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id ADD9DE081B;
	Wed, 15 Jan 2020 23:46:34 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(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 7B482E081B
	for <gentoo-commits@lists.gentoo.org>; Wed, 15 Jan 2020 23:46:34 +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 0D68534E0DA
	for <gentoo-commits@lists.gentoo.org>; Wed, 15 Jan 2020 23:46:33 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D31D7B
	for <gentoo-commits@lists.gentoo.org>; Wed, 15 Jan 2020 23:46:31 +0000 (UTC)
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" <mattst88@gentoo.org>
Message-ID: <1579131983.49a077f7db2ebd4376e02aeeeebff292aabec6aa.mattst88@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/paho-mqtt/, dev-python/paho-mqtt/files/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-python/paho-mqtt/Manifest dev-python/paho-mqtt/files/paho-mqtt-1.5.0-strip-test-dependency.patch dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild
X-VCS-Directories: dev-python/paho-mqtt/files/ dev-python/paho-mqtt/
X-VCS-Committer: mattst88
X-VCS-Committer-Name: Matt Turner
X-VCS-Revision: 49a077f7db2ebd4376e02aeeeebff292aabec6aa
X-VCS-Branch: master
Date: Wed, 15 Jan 2020 23:46:31 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: f54db9d0-d8ff-409e-a90c-fa9d970cdcb6
X-Archives-Hash: 8800b712636b13c8cae27bb8dbe0a76a

commit:     49a077f7db2ebd4376e02aeeeebff292aabec6aa
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 15 23:34:48 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Jan 15 23:46:23 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a077f7

dev-python/paho-mqtt: Version bump to 1.5.0

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 dev-python/paho-mqtt/Manifest                      |  1 +
 .../paho-mqtt-1.5.0-strip-test-dependency.patch    | 31 ++++++++++++++++++
 dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild        | 38 ++++++++++++++++++++++
 3 files changed, 70 insertions(+)

diff --git a/dev-python/paho-mqtt/Manifest b/dev-python/paho-mqtt/Manifest
index 221aa29a562..4cb8fa1c495 100644
--- a/dev-python/paho-mqtt/Manifest
+++ b/dev-python/paho-mqtt/Manifest
@@ -1 +1,2 @@
 DIST paho-mqtt-1.4.0.tar.gz 108278 BLAKE2B 0569f3cb5d262b3b7f6ae68261fe138d839afcc6fe91f880e29de24d5cf8e2491af81a30eb82c27fe63eee90114326eb75b06a32e05ec2fffed27b92d9601902 SHA512 2e49f0f146207ab4fbc8c346b10d3e2b50869b2d9db7c999b6645f7213fb635b64cff01c5405e7833a8b25334d24685ce6ed734a6e4b6b0660b48f65cf4a941c
+DIST paho-mqtt-1.5.0.tar.gz 126869 BLAKE2B 2dce27c1fcfe7ae422dc6da76fb58e7901de00c0c349b9715c56a3603da26e1f46af9bb8c0bd982043ba54a2070655b483d251a0a847e1c3afb36bcd4cfcdba8 SHA512 7e52180bf1783ee1f39aa5248730e82fae47fe3db7c4579b0b7207a29f5337c7c0af58d58aac1c265b1ed91fa9c240187d5e3005f55c6e28623e6cbc36750294

diff --git a/dev-python/paho-mqtt/files/paho-mqtt-1.5.0-strip-test-dependency.patch b/dev-python/paho-mqtt/files/paho-mqtt-1.5.0-strip-test-dependency.patch
new file mode 100644
index 00000000000..9c830735933
--- /dev/null
+++ b/dev-python/paho-mqtt/files/paho-mqtt-1.5.0-strip-test-dependency.patch
@@ -0,0 +1,31 @@
+# Remove Pylama from test dependencies.
+
+diff --git a/setup.cfg b/setup.cfg
+index 84551cd..73bd714 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -1,9 +1,6 @@
+ [aliases]
+ test=pytest
+ [tool:pytest]
+-addopts=-r xs --pylama
++addopts=-r xs
+ strict=True
+ testpaths=tests src
+-[pylama]
+-linters=pyflakes
+-skip=tests/*
+diff --git a/setup.py b/setup.py
+index 8441de1..2878352 100644
+--- a/setup.py
++++ b/setup.py
+@@ -11,7 +11,7 @@ with open('README.rst', 'rb') as readme_file:
+     readme = readme_file.read().decode('utf-8')
+ 
+ requirements = []
+-test_requirements = ['pytest', 'pylama', 'six']
++test_requirements = ['pytest', 'six']
+ needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
+ setup_requirements = ['pytest-runner'] if needs_pytest else []
+ extra_requirements = {'proxy': ['PySocks']}
+-- 

diff --git a/dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild b/dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild
new file mode 100644
index 00000000000..dbeecd0ba64
--- /dev/null
+++ b/dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="A client class with support for both MQTT v3.1 and v3.1.1"
+HOMEPAGE="https://www.eclipse.org/paho/clients/python/"
+SRC_URI="https://github.com/eclipse/paho.mqtt.python/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="EPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+	test? (
+		dev-python/mock[${PYTHON_USEDEP}]
+		dev-python/pytest[${PYTHON_USEDEP}]
+		dev-python/pytest-runner[${PYTHON_USEDEP}]
+		dev-python/six[${PYTHON_USEDEP}]
+	) "
+
+S="${WORKDIR}/paho.mqtt.python-${PV}"
+
+#RESTRICT="test" #659106
+
+src_prepare() {
+	eapply "${FILESDIR}/${P}-strip-test-dependency.patch"
+	default
+}
+
+python_test() {
+	esetup.py test
+}