summaryrefslogtreecommitdiff
path: root/dev-python/send2trash
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-08-04 08:53:53 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-08-04 08:53:53 +0100
commite3872864be25f7421015bef2732fa57c0c9fb726 (patch)
tree9cb29a544215119b5c5538e37211b994ce1c87ae /dev-python/send2trash
parent480486b52ea64765faf696c88b2c6a26a5a454d4 (diff)
gentoo resync : 04.08.2018
Diffstat (limited to 'dev-python/send2trash')
-rw-r--r--dev-python/send2trash/Manifest5
-rw-r--r--dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch29
-rw-r--r--dev-python/send2trash/metadata.xml4
-rw-r--r--dev-python/send2trash/send2trash-1.5.0.ebuild36
4 files changed, 73 insertions, 1 deletions
diff --git a/dev-python/send2trash/Manifest b/dev-python/send2trash/Manifest
index 19d6d569cf48..193caf4091f3 100644
--- a/dev-python/send2trash/Manifest
+++ b/dev-python/send2trash/Manifest
@@ -1,3 +1,6 @@
+AUX send2trash-1.5.0-fix-broken-tests-on-py2.patch 862 BLAKE2B 1d0e43f642c47f5b9f56c5e82361c7376501c0b1f5f34573b6a954bf849f26fe9d2bac456ec474c1cef0a24d62a0481a5a62d04b92c943556b97d45e574e410a SHA512 2b63d6fd6c684c950fb3e60df5412931e95dbab18c360a0d3c21a3a99ed011a2c494cd74b1fae933de1e2edc81e7bb9b6f7d46f84c1b04f9c6b3c1b6b6876fa8
DIST Send2Trash-1.3.0.tar.gz 5563 BLAKE2B 54fe34a5f984ded219a3c17f0e06b74a2e5624a8bda8d5723087a918217041bbf6a2b20976b0b4ba71d4a1e08d9ce645b8d5d7fb022ec8e5ed72786496e1ee90 SHA512 d308dd06ef7a11ad7bcb5d9195fb52aa0c0b8e76590ef11b1576d14815501c32c48b96167eb0a325e4f27d0dbf77f41c012a128d30c8f05d9d5ebec9967e21f3
+DIST Send2Trash-1.5.0.tar.gz 10892 BLAKE2B 36b51f1859a3b40aa5d9b619491a13da8453ff6615e71423724131a2a88207665d3fbaeef49ecc0ff02b77738d02023c08543d8a759cc0807d74740a8af9b9de SHA512 3c08ef513e5707cd4ac82290b326bb19161222c7a84b8ffd494789ba9858929241f55ea55482947af464c14e32fea27bd92cd762a32a1d55e2daf2e21fd63172
EBUILD send2trash-1.3.0.ebuild 619 BLAKE2B b9fdbfacbf69f7ad0437b173a3f53e20fa9679f8be6ac43d27f244b52d69feab928f1915edec1083f0cc1457b2ac9738e9e0875d8b0ca6b787daf2f07f699e1d SHA512 d4fbeb53d17bc10091d73f00566900afa438ebcfc301437dfa401a855fe389e06fc58d97ea7cad899b81372d8816294d33c0dfcfb210a275f2fe8a8fc5e1aa72
-MISC metadata.xml 381 BLAKE2B 5afbd1afb5fab636015e710ae55c2e7b6c9eb24d1ffe0418f4ae4c6d02befdf4d50922d25ae6dcd134e2f17de1cc5a7bcee0467cdfc03ac86cbf5b31d33153dd SHA512 309a92e88f854e9384519bb8a959025c97a8c75a7ee317a17d2c51c0a444b0fa008fd46fbbe07be3dd95ab2fc1930cfdf2a0c6df7ce68fc190610176f841067c
+EBUILD send2trash-1.5.0.ebuild 690 BLAKE2B 741f79918094127a8b83b7cf342bfaf27245c37d7bdacc4244cd9ffb8315f6915684830e393d8d9ea65753ad25adc4d1f0dfdf19d863dd0af6da72ac08acc5f5 SHA512 ab84e22b16a150c079b0d97c08118c7e652434ead58300af98b3ff58afe2f1d8857fca283f82a67928bdb307bf0e167aec53f2bdbd8dfc7589d523f2b4c4f865
+MISC metadata.xml 495 BLAKE2B ae16e355c25ecd42a185794076c1c16315e311a59165c3ca76b4452374d1347d075b626fb0c450557c3ac3e7dd200854ef06b1d45213ee80fc7c6ece4f34b357 SHA512 1c8d9152257865cf74594076405912a922cf3c564d56b6e660cce4615995a4d2809ce4e4b3edc30e35fdb5ac71ad4da2534bf5e242dc3f74cee7704c84ad5328
diff --git a/dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch b/dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch
new file mode 100644
index 000000000000..3f2a64ca2a21
--- /dev/null
+++ b/dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch
@@ -0,0 +1,29 @@
+From 74352462f5df2cb5708b96458b81afef3070c800 Mon Sep 17 00:00:00 2001
+From: Virgil Dupras <hsoft@hardcoded.net>
+Date: Thu, 26 Jul 2018 08:30:39 -0400
+Subject: [PATCH] Fix broken tests on py2
+
+---
+ tests/test_plat_other.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_plat_other.py b/tests/test_plat_other.py
+index b94295d..ae4f391 100644
+--- a/tests/test_plat_other.py
++++ b/tests/test_plat_other.py
+@@ -6,7 +6,11 @@ from os import path as op
+ import send2trash.plat_other
+ from send2trash.plat_other import send2trash as s2t
+ from send2trash.compat import PY3
+-from configparser import ConfigParser
++try:
++ from configparser import ConfigParser
++except ImportError:
++ # py2
++ from ConfigParser import ConfigParser
+ from tempfile import mkdtemp, NamedTemporaryFile, mktemp
+ import shutil
+ import stat
+--
+2.16.4
+
diff --git a/dev-python/send2trash/metadata.xml b/dev-python/send2trash/metadata.xml
index 9dd529756191..0267c38bf914 100644
--- a/dev-python/send2trash/metadata.xml
+++ b/dev-python/send2trash/metadata.xml
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <maintainer type="person">
+ <email>vdupras@gentoo.org</email>
+ <name>Virgil Dupras</name>
+ </maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
diff --git a/dev-python/send2trash/send2trash-1.5.0.ebuild b/dev-python/send2trash/send2trash-1.5.0.ebuild
new file mode 100644
index 000000000000..8d102d20e3e2
--- /dev/null
+++ b/dev-python/send2trash/send2trash-1.5.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} pypy )
+
+inherit distutils-r1
+
+MY_PN="Send2Trash"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Sends files to the Trash (or Recycle Bin)"
+HOMEPAGE="
+ https://pypi.org/project/Send2Trash/
+ https://github.com/hsoft/send2trash"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}"/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-broken-tests-on-py2.patch"
+)
+
+python_test() {
+ ${EPYTHON} setup.py test
+}