public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/mrueg:master commit in: dev-python/betamax/, dev-python/betamax/files/
@ 2016-04-07 23:27 Manuel Rüger
  0 siblings, 0 replies; only message in thread
From: Manuel Rüger @ 2016-04-07 23:27 UTC (permalink / raw
  To: gentoo-commits

commit:     57d1233a345dfaeaa826f56003ebf036d83b78cb
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  7 23:27:15 2016 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Apr  7 23:27:15 2016 +0000
URL:        https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=57d1233a

dev-python/betamax: Initial version

Package-Manager: portage-2.2.28

 dev-python/betamax/Manifest                        |  1 +
 dev-python/betamax/betamax-0.5.1.ebuild            | 29 ++++++++++++++++++++++
 .../betamax-0.5.1-exclude-test-integrations.patch  | 23 +++++++++++++++++
 dev-python/betamax/metadata.xml                    |  8 ++++++
 4 files changed, 61 insertions(+)

diff --git a/dev-python/betamax/Manifest b/dev-python/betamax/Manifest
new file mode 100644
index 0000000..4cf27b8
--- /dev/null
+++ b/dev-python/betamax/Manifest
@@ -0,0 +1 @@
+DIST betamax-0.5.1.tar.gz 67677 SHA256 f8ad7db13f0702a4597c2f8e05872fda07f4c86febb1086a22af3f2855c48887 SHA512 cd48f03e607791bdefd3b1855c705b66f3f368a4b1b1ac070c45cb3790fac7d08ed45c21e22762ee5a21b174c78ca787c8a818ff8ddd3fe744720e7e33f1197e WHIRLPOOL a2086949cb27f73cbf7afac14dcf8dd1ef0e90149c5b60e2a9216d1e1ea473086741340322c47c0eee9b08e868620860f8e0e234c99d45f477ba23357f9c4c06

diff --git a/dev-python/betamax/betamax-0.5.1.ebuild b/dev-python/betamax/betamax-0.5.1.ebuild
new file mode 100644
index 0000000..320a313
--- /dev/null
+++ b/dev-python/betamax/betamax-0.5.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=(python{2_7,3_4})
+
+inherit distutils-r1
+
+DESCRIPTION="VCR imitation designed only for python-requests"
+HOMEPAGE="https://github.com/sigmavirus24/betamax"
+SRC_URI="https://github.com/sigmavirus24/betamax/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+	dev-python/setuptools[${PYTHON_USEDEP}]
+	test? ( dev-python/pytest[${PYTHON_USEDEP}]
+		dev-python/mock[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/${P}-exclude-test-integrations.patch )
+
+python_test() {
+	py.test || die
+}

diff --git a/dev-python/betamax/files/betamax-0.5.1-exclude-test-integrations.patch b/dev-python/betamax/files/betamax-0.5.1-exclude-test-integrations.patch
new file mode 100644
index 0000000..ed40695
--- /dev/null
+++ b/dev-python/betamax/files/betamax-0.5.1-exclude-test-integrations.patch
@@ -0,0 +1,23 @@
+From e53e416e2e03abce4c1c097e5d7057f47d1978dc Mon Sep 17 00:00:00 2001
+From: Ian Cordasco <graffatcolmingov@gmail.com>
+Date: Sat, 7 Nov 2015 12:14:57 -0600
+Subject: [PATCH] Exclude tests.integration from find_packages
+
+Closes #82
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index e60d8f9..54b1551 100644
+--- a/setup.py
++++ b/setup.py
+@@ -3,7 +3,7 @@
+ import sys
+ from setuptools import setup, find_packages
+ 
+-packages = find_packages(exclude=['tests'])
++packages = find_packages(exclude=['tests', 'tests.integration'])
+ requires = ['requests >= 2.0']
+ 
+ __version__ = ''

diff --git a/dev-python/betamax/metadata.xml b/dev-python/betamax/metadata.xml
new file mode 100644
index 0000000..bfcb697
--- /dev/null
+++ b/dev-python/betamax/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer>
+		<email>mrueg@gentoo.org</email>
+		<name>Manuel Rüger</name>
+	</maintainer>
+</pkgmetadata>


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

only message in thread, other threads:[~2016-04-07 23:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 23:27 [gentoo-commits] dev/mrueg:master commit in: dev-python/betamax/, dev-python/betamax/files/ Manuel Rüger

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