public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tim Harder" <radhermit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyfakefs/, dev-python/pyfakefs/files/
Date: Thu,  1 Mar 2018 19:35:57 +0000 (UTC)	[thread overview]
Message-ID: <1519932886.90cb10da51c2345ab120cc56db60f6e241b6da3b.radhermit@gentoo> (raw)

commit:     90cb10da51c2345ab120cc56db60f6e241b6da3b
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 23 13:36:16 2018 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Mar  1 19:34:46 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90cb10da

dev-python/pyfakefs: initial import

 dev-python/pyfakefs/Manifest                       |  1 +
 .../files/pyfakefs-3.3-sandbox-tests.patch         | 31 ++++++++++++++++++++++
 dev-python/pyfakefs/metadata.xml                   | 12 +++++++++
 dev-python/pyfakefs/pyfakefs-3.3.ebuild            | 26 ++++++++++++++++++
 4 files changed, 70 insertions(+)

diff --git a/dev-python/pyfakefs/Manifest b/dev-python/pyfakefs/Manifest
new file mode 100644
index 00000000000..4119d7c6310
--- /dev/null
+++ b/dev-python/pyfakefs/Manifest
@@ -0,0 +1 @@
+DIST pyfakefs-3.3.tar.gz 141704 BLAKE2B f805146024d9886ce6cb25b23f6f818bb37cac00a51528375b3da3e728515cb5ffd292352888861ff2b434ff71dd730bfbd84874fee0ae1f4d2cfca974f73771 SHA512 0044643964a4f2329d777476940b38d2d63c6de8f854992b4fba7b7e49f1186e7ce9811f83c9870655cbe33b7dda816c1aa1ce685e800e55c06d175c281748b7

diff --git a/dev-python/pyfakefs/files/pyfakefs-3.3-sandbox-tests.patch b/dev-python/pyfakefs/files/pyfakefs-3.3-sandbox-tests.patch
new file mode 100644
index 00000000000..58f24fc89bb
--- /dev/null
+++ b/dev-python/pyfakefs/files/pyfakefs-3.3-sandbox-tests.patch
@@ -0,0 +1,31 @@
+Fix sandbox issues with non-existent file tests.
+
+--- pyfakefs-3.3/fake_filesystem_test.py
++++ pyfakefs-3.3/fake_filesystem_test.py
+@@ -1418,7 +1418,6 @@
+         self.os.chdir(directory)
+         self.assertRaisesOSError(dir_error, self.os.remove, dir_path)
+         self.assertTrue(self.os.path.exists(dir_path))
+-        self.assertRaisesOSError(errno.ENOENT, self.os.remove, '/plugh')
+ 
+     def testRemoveDirLinux(self):
+         self.checkLinuxOnly()
+@@ -2811,8 +2810,8 @@
+         # trying to create a link from a non-existent file should fail
+         self.skipIfSymlinkNotSupported()
+         self.assertRaisesOSError(errno.ENOENT,
+-                                 self.os.link, '/nonexistent_source',
+-                                 '/link_dest')
++                                 self.os.link, 'nonexistent_source',
++                                 'link_dest')
+ 
+     def testLinkDelete(self):
+         self.skipIfSymlinkNotSupported()
+@@ -3158,7 +3157,6 @@
+         self.os.chdir(directory)
+         self.assertRaisesOSError(dir_error, self.os.remove, dir_path)
+         self.assertTrue(self.os.path.exists(dir_path))
+-        self.assertRaisesOSError(errno.ENOENT, self.os.remove, '/Plugh')
+ 
+     def testRemoveDirMacOs(self):
+         self.checkMacOsOnly()

diff --git a/dev-python/pyfakefs/metadata.xml b/dev-python/pyfakefs/metadata.xml
new file mode 100644
index 00000000000..0a79b8f3f70
--- /dev/null
+++ b/dev-python/pyfakefs/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">pyfakefs</remote-id>
+		<remote-id type="github">jmcgeheeiv/pyfakefs</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-python/pyfakefs/pyfakefs-3.3.ebuild b/dev-python/pyfakefs/pyfakefs-3.3.ebuild
new file mode 100644
index 00000000000..35086811c6f
--- /dev/null
+++ b/dev-python/pyfakefs/pyfakefs-3.3.ebuild
@@ -0,0 +1,26 @@
+# 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{,3} )
+DISTUTILS_IN_SOURCE_BUILD=1
+
+inherit distutils-r1
+
+DESCRIPTION="a fake file system that mocks the Python file system modules"
+HOMEPAGE="https://github.com/jmcgeheeiv/pyfakefs/ https://pypi.python.org/pypi/pyfakefs"
+SRC_URI="https://github.com/jmcgeheeiv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+PATCHES=( "${FILESDIR}"/${P}-sandbox-tests.patch )
+
+python_test() {
+	"${PYTHON}" all_tests.py || die "tests failed under ${EPYTHON}"
+}


             reply	other threads:[~2018-03-01 19:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-01 19:35 Tim Harder [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-29  6:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyfakefs/, dev-python/pyfakefs/files/ Michał Górny
2020-03-05  5:50 Michał Górny
2020-07-12 20:19 Michał Górny
2020-12-06 20:50 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1519932886.90cb10da51c2345ab120cc56db60f6e241b6da3b.radhermit@gentoo \
    --to=radhermit@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox