* [gentoo-commits] repo/proj/guru:master commit in: dev-python/b2sdk/, dev-python/b2sdk/files/
@ 2021-01-04 9:34 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2021-01-04 9:34 UTC (permalink / raw
To: gentoo-commits
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>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/b2sdk/, dev-python/b2sdk/files/
@ 2021-06-04 7:59 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2021-06-04 7:59 UTC (permalink / raw
To: gentoo-commits
commit: 43059ced8913306fdff547cc64d444775db08c4b
Author: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Wed Jun 2 17:20:59 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Jun 2 18:20:12 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=43059ced
dev-python/b2sdk: bump to 1.8.0
Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail.com>
dev-python/b2sdk/Manifest | 2 +-
.../{b2sdk-1.2.0.ebuild => b2sdk-1.8.0.ebuild} | 9 +++++++--
...dk-1.8.0-disable-requirement-installation.patch | 22 ++++++++++++++++++++++
3 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest
index 117886c8d..245834d91 100644
--- a/dev-python/b2sdk/Manifest
+++ b/dev-python/b2sdk/Manifest
@@ -1 +1 @@
-DIST b2sdk-1.2.0.tar.gz 172456 BLAKE2B 7af232d1bb274037b327a7a0740ca7ea8f1a8edda26bd6816fe66bc332c69c9ba3f95c790f8d1c799391548ff7a7b190603ed3c358512401c0cdec5d9c93c72c SHA512 05273de5d83a62afe33873ddd66f22005bcfbd559314d43a5662981e024f18063eeee078d00b42b407aeda331083c826c4c6fc4e06cad280b280de8cb66423d2
+DIST b2sdk-1.8.0.tar.gz 250511 BLAKE2B dad792589148fc3cad91fed1aeb43e02afca6f67f35e2f8239510606d601067abbdd36a3f0b2b2b8264697004d548d8077c999437f027c058072d7383d13c48c SHA512 ee1e1987f127835b2016bba9485c7a9d9503b4a675662a7364310fec7c963214805ed6bc15b3a1f07477f202bbe06325f480997eb202bcdfa1cb24f006d0a900
diff --git a/dev-python/b2sdk/b2sdk-1.2.0.ebuild b/dev-python/b2sdk/b2sdk-1.8.0.ebuild
similarity index 73%
rename from dev-python/b2sdk/b2sdk-1.2.0.ebuild
rename to dev-python/b2sdk/b2sdk-1.8.0.ebuild
index 98fcb1d76..e0953aa8f 100644
--- a/dev-python/b2sdk/b2sdk-1.2.0.ebuild
+++ b/dev-python/b2sdk/b2sdk-1.8.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7..8} )
+PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="The client library for BackBlaze's B2 product"
@@ -16,6 +16,7 @@ KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}/${PN}-1.2.0-skip-integration-test.patch"
+ "${FILESDIR}/${PN}-1.8.0-disable-requirement-installation.patch"
)
RDEPEND="
@@ -25,6 +26,9 @@ RDEPEND="
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
>=dev-python/tqdm-4.5.0[${PYTHON_USEDEP}]
')
+ $(python_gen_cond_dep '
+ dev-python/importlib_metadata[${PYTHON_USEDEP}]
+ ' pypy3 python3_7)
"
distutils_enable_tests pytest
@@ -32,5 +36,6 @@ distutils_enable_tests pytest
BDEPEND+=" test? (
$(python_gen_cond_dep '
>=dev-python/pytest-mock-3.3.1[${PYTHON_USEDEP}]
+ dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}]
')
)"
diff --git a/dev-python/b2sdk/files/b2sdk-1.8.0-disable-requirement-installation.patch b/dev-python/b2sdk/files/b2sdk-1.8.0-disable-requirement-installation.patch
new file mode 100644
index 000000000..482203f24
--- /dev/null
+++ b/dev-python/b2sdk/files/b2sdk-1.8.0-disable-requirement-installation.patch
@@ -0,0 +1,22 @@
+# This will disable the setup.py features that attempt to install missing
+# requirements using pip
+--- a/setup.py
++++ b/setup.py
+@@ -95,7 +95,7 @@ setup(
+ # your project is installed. For an analysis of "install_requires" vs pip's
+ # requirements files see:
+ # https://packaging.python.org/en/latest/requirements.html
+- install_requires=requirements,
++ # install_requires=requirements,
+
+ # List additional groups of dependencies here (e.g. development
+ # dependencies). You can install these using the following syntax,
+@@ -111,7 +111,7 @@ setup(
+ 'sadisplay'
+ ],
+ },
+- setup_requires=['setuptools_scm<6.0'], # setuptools_scm>=6.0 doesn't support Python 3.5
++ # setup_requires=['setuptools_scm<6.0'], # setuptools_scm>=6.0 doesn't support Python 3.5
+ use_scm_version=True,
+
+ # If there are data files included in your packages that need to be
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-04 7:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-04 7:59 [gentoo-commits] repo/proj/guru:master commit in: dev-python/b2sdk/, dev-python/b2sdk/files/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2021-01-04 9:34 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox