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/send2trash | |
| 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/send2trash')
| -rw-r--r-- | dev-python/send2trash/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/send2trash/files/send2trash-1.5.0-fix-broken-tests-on-py2.patch | 29 | ||||
| -rw-r--r-- | dev-python/send2trash/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-python/send2trash/send2trash-1.5.0-r1.ebuild | 28 |
4 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/send2trash/Manifest b/dev-python/send2trash/Manifest new file mode 100644 index 000000000000..faf1d749682d --- /dev/null +++ b/dev-python/send2trash/Manifest @@ -0,0 +1 @@ +DIST Send2Trash-1.5.0.tar.gz 10892 BLAKE2B 36b51f1859a3b40aa5d9b619491a13da8453ff6615e71423724131a2a88207665d3fbaeef49ecc0ff02b77738d02023c08543d8a759cc0807d74740a8af9b9de SHA512 3c08ef513e5707cd4ac82290b326bb19161222c7a84b8ffd494789ba9858929241f55ea55482947af464c14e32fea27bd92cd762a32a1d55e2daf2e21fd63172 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 new file mode 100644 index 000000000000..0a90afcf0041 --- /dev/null +++ b/dev-python/send2trash/metadata.xml @@ -0,0 +1,13 @@ +<?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">Send2Trash</remote-id> + <remote-id type="github">hsoft/send2trash</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/send2trash/send2trash-1.5.0-r1.ebuild b/dev-python/send2trash/send2trash-1.5.0-r1.ebuild new file mode 100644 index 000000000000..92f356cf9613 --- /dev/null +++ b/dev-python/send2trash/send2trash-1.5.0-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +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" +S="${WORKDIR}"/${MY_P} + +SLOT="0" +LICENSE="BSD" +KEYWORDS="amd64 ~arm64 x86" + +distutils_enable_tests setup.py + +PATCHES=( + "${FILESDIR}/${P}-fix-broken-tests-on-py2.patch" +) |
