From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/b2sdk/, dev-python/b2sdk/files/
Date: Mon, 4 Jan 2021 09:34:46 +0000 (UTC) [thread overview]
Message-ID: <1609726493.ec6a473f4f3c62a4a306e84414ea5f2ce16e73f3.andrewammerlaan@gentoo> (raw)
commit: ec6a473f4f3c62a4a306e84414ea5f2ce16e73f3
Author: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail <DOT> com>
AuthorDate: Mon Jan 4 02:02:06 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Jan 4 02:14:53 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ec6a473f
dev-python/b2sdk: new package, dep of b2
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail.com>
dev-python/b2sdk/Manifest | 1 +
dev-python/b2sdk/b2sdk-1.2.0.ebuild | 36 ++++++++++++++++++++++
.../files/b2sdk-1.2.0-skip-integration-test.patch | 12 ++++++++
dev-python/b2sdk/metadata.xml | 14 +++++++++
4 files changed, 63 insertions(+)
diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest
new file mode 100644
index 00000000..117886c8
--- /dev/null
+++ b/dev-python/b2sdk/Manifest
@@ -0,0 +1 @@
+DIST b2sdk-1.2.0.tar.gz 172456 BLAKE2B 7af232d1bb274037b327a7a0740ca7ea8f1a8edda26bd6816fe66bc332c69c9ba3f95c790f8d1c799391548ff7a7b190603ed3c358512401c0cdec5d9c93c72c SHA512 05273de5d83a62afe33873ddd66f22005bcfbd559314d43a5662981e024f18063eeee078d00b42b407aeda331083c826c4c6fc4e06cad280b280de8cb66423d2
diff --git a/dev-python/b2sdk/b2sdk-1.2.0.ebuild b/dev-python/b2sdk/b2sdk-1.2.0.ebuild
new file mode 100644
index 00000000..9967cecd
--- /dev/null
+++ b/dev-python/b2sdk/b2sdk-1.2.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..8} )
+inherit distutils-r1
+
+DESCRIPTION="The client library for BackBlaze's B2 product"
+HOMEPAGE="https://github.com/Backblaze/b2-sdk-python"
+SRC_URI="https://github.com/Backblaze/b2-sdk-python/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.2.0-skip-integration-test.patch"
+)
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ >=dev-python/arrow-0.8.0[${PYTHON_USEDEP}]
+ >=dev-python/logfury-0.1.2[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
+ >=dev-python/tqdm-4.5.0[${PYTHON_USEDEP}]
+ ')
+"
+
+distutils_enable_tests pytest
+
+BDEPEND+=" test? (
+ $(python_gen_cond_dep '
+ >=dev-python/pytest-mock-3.3.1[${PYTHON_USEDEP}]
+ ')
+)"
diff --git a/dev-python/b2sdk/files/b2sdk-1.2.0-skip-integration-test.patch b/dev-python/b2sdk/files/b2sdk-1.2.0-skip-integration-test.patch
new file mode 100644
index 00000000..bd13d994
--- /dev/null
+++ b/dev-python/b2sdk/files/b2sdk-1.2.0-skip-integration-test.patch
@@ -0,0 +1,12 @@
+diff --git a/test/integration/test_raw_api.py b/test/integration/test_raw_api.py
+index e6cd288..ec89604 100644
+--- a/test/integration/test_raw_api.py
++++ b/test/integration/test_raw_api.py
+@@ -15,6 +15,7 @@ from b2sdk import raw_api
+
+
+ # TODO: move the test_raw_api test logic here
++@pytest.mark.skip(reason="Cannot do this in portage")
+ def test_raw_api():
+ application_key_id = os.environ.get('B2_TEST_APPLICATION_KEY_ID')
+ if application_key_id is None:
diff --git a/dev-python/b2sdk/metadata.xml b/dev-python/b2sdk/metadata.xml
new file mode 100644
index 00000000..77c569d1
--- /dev/null
+++ b/dev-python/b2sdk/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>WolfgangESanyer@gmail.com</email>
+ <name>Wolfgang E. Sanyer</name>
+ </maintainer>
+ <longdescription lang="en">
+ The command-line tool that gives easy access to all of the capabilities
+ of B2 Cloud Storage.
+
+ This program provides command-line access to the B2 service.
+ </longdescription>
+</pkgmetadata>
next reply other threads:[~2021-01-04 9:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-04 9:34 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-06-04 7:59 [gentoo-commits] repo/proj/guru:master commit in: dev-python/b2sdk/, dev-python/b2sdk/files/ Andrew Ammerlaan
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=1609726493.ec6a473f4f3c62a4a306e84414ea5f2ce16e73f3.andrewammerlaan@gentoo \
--to=andrewammerlaan@riseup.net \
--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