public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/subprocess32/, dev-python/subprocess32/files/
@ 2017-06-03 10:28 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2017-06-03 10:28 UTC (permalink / raw
  To: gentoo-commits

commit:     62308fdf8373e8a42c501c90b4b2b658b6d03aca
Author:     Sean Vig <sean.v.775 <AT> gmail <DOT> com>
AuthorDate: Tue May 23 12:32:09 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun  3 10:27:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62308fdf

dev-python/subprocess32: Add new package

 dev-python/subprocess32/Manifest                   |  1 +
 .../subprocess32-3.2.7-sandbox-test-fix.patch      | 14 +++++++++++++
 dev-python/subprocess32/metadata.xml               | 12 +++++++++++
 dev-python/subprocess32/subprocess32-3.2.7.ebuild  | 23 ++++++++++++++++++++++
 4 files changed, 50 insertions(+)

diff --git a/dev-python/subprocess32/Manifest b/dev-python/subprocess32/Manifest
new file mode 100644
index 00000000000..4df47ced9da
--- /dev/null
+++ b/dev-python/subprocess32/Manifest
@@ -0,0 +1 @@
+DIST subprocess32-3.2.7.tar.gz 54240 SHA256 1e450a4a4c53bf197ad6402c564b9f7a53539385918ef8f12bdf430a61036590 SHA512 d897d6a48824991e2a63ea417ca15222f28c3a4117c9bba8cbb4eceabfba9769acce1166aafa7aee8a025d6ebe7e133ce0dd617f90cb07e11bdb73dc1e21dec6 WHIRLPOOL 41226d999895439a089a319e8b805468d1913ec098d5f92705076ae707efb59c8a92f56e1068927065c5c1060ad84388fbaaf575a6e5c4d12a2b2b1e588f3e0a

diff --git a/dev-python/subprocess32/files/subprocess32-3.2.7-sandbox-test-fix.patch b/dev-python/subprocess32/files/subprocess32-3.2.7-sandbox-test-fix.patch
new file mode 100644
index 00000000000..50e4a511fc4
--- /dev/null
+++ b/dev-python/subprocess32/files/subprocess32-3.2.7-sandbox-test-fix.patch
@@ -0,0 +1,14 @@
+diff --git a/test_subprocess32.py b/test_subprocess32.py
+index c312949..000f7d6 100644
+--- a/test_subprocess32.py
++++ b/test_subprocess32.py
+@@ -538,7 +538,8 @@ class ProcessTestCase(BaseTestCase):
+                 [sys.executable, "-c",
+                  'import os; '
+                  'print([k for k in os.environ.keys() '
+-                 '       if ("VERSIONER" not in k and "__CF" not in k)])'],
++                 '       if ("VERSIONER" not in k and "__CF" not in k and '
++                 '           "LD_PRELOAD" not in k and "SANDBOX_" not in k)])'],
+                 stdout=subprocess.PIPE, env={})
+         try:
+             stdout, stderr = p.communicate()

diff --git a/dev-python/subprocess32/metadata.xml b/dev-python/subprocess32/metadata.xml
new file mode 100644
index 00000000000..d06e7b26e19
--- /dev/null
+++ b/dev-python/subprocess32/metadata.xml
@@ -0,0 +1,12 @@
+<?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">subprocess32</remote-id>
+    <remote-id type="github">google/python-subprocess32</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/dev-python/subprocess32/subprocess32-3.2.7.ebuild b/dev-python/subprocess32/subprocess32-3.2.7.ebuild
new file mode 100644
index 00000000000..452ae88d7ab
--- /dev/null
+++ b/dev-python/subprocess32/subprocess32-3.2.7.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A backport of the subprocess module from Python 3.2/3.3 for use on 2.x"
+HOMEPAGE="https://github.com/google/python-subprocess32"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="PSF-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+PATCHES=( "${FILESDIR}"/${P}-sandbox-test-fix.patch )
+
+python_test() {
+	"${PYTHON}" test_subprocess32.py || die "Tests fail with ${EPYTHON}"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-03 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-03 10:28 [gentoo-commits] repo/gentoo:master commit in: dev-python/subprocess32/, dev-python/subprocess32/files/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox