public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/b2sdk/files/, dev-python/b2sdk/
@ 2021-01-04  2:15 Wolfgang E. Sanyer
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang E. Sanyer @ 2021-01-04  2:15 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:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
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] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/b2sdk/files/, dev-python/b2sdk/
@ 2021-06-02 18:20 Wolfgang E. Sanyer
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang E. Sanyer @ 2021-06-02 18:20 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:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
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] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/b2sdk/files/, dev-python/b2sdk/
@ 2022-07-15  3:01 Wolfgang E. Sanyer
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang E. Sanyer @ 2022-07-15  3:01 UTC (permalink / raw
  To: gentoo-commits

commit:     a2e4ff366975f9f1e7f6c7c233ecc0562efc561c
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Fri Jul 15 01:47:36 2022 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Fri Jul 15 03:01:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a2e4ff36

dev-python/b2sdk: bump to 1.17.2

Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail.com>

 dev-python/b2sdk/Manifest                          |  1 +
 dev-python/b2sdk/b2sdk-1.17.2.ebuild               | 59 ++++++++++++++++++++++
 ...k-1.17.2-disable-requirement-installation.patch | 22 ++++++++
 3 files changed, 82 insertions(+)

diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest
index 38390b803..f74d62d00 100644
--- a/dev-python/b2sdk/Manifest
+++ b/dev-python/b2sdk/Manifest
@@ -1,2 +1,3 @@
 DIST b2sdk-1.12.0.tar.gz 273412 BLAKE2B e67cf20a6d7277c3d2990e6f6c46cf9df253b3a46a8c8672cbdc810ca851e8c0cd6b6033b9034ce00283a577e2838cdb0c15410b12546f87c480581b5920074b SHA512 4d5eff1f9efed551c474a472a4c531b67b3356e959dde1d1058aad797abd5fd160781700753019d62ac2f05bd711bf1e6a0b15c0f5f86fd93bab17347a83cb13
+DIST b2sdk-1.17.2.tar.gz 308753 BLAKE2B 07b6f71f604475d861257a1a7c567fc561a90c1c8c5768d21d63a82ff1c57240a81f8ebf96f1b3113cbea181140a128ebad9ed524e410a9c163a04a1de1ee2a0 SHA512 e618e18de16b021dc86a4b5ee9d315294eba5c3421318a4ea668681dc0420d6c3798f17c17be6475dddad7cfada8bf615916a5dc41ef905b8ecd7623b2a0c7bb
 DIST b2sdk-1.8.0.tar.gz 250511 BLAKE2B dad792589148fc3cad91fed1aeb43e02afca6f67f35e2f8239510606d601067abbdd36a3f0b2b2b8264697004d548d8077c999437f027c058072d7383d13c48c SHA512 ee1e1987f127835b2016bba9485c7a9d9503b4a675662a7364310fec7c963214805ed6bc15b3a1f07477f202bbe06325f480997eb202bcdfa1cb24f006d0a900

diff --git a/dev-python/b2sdk/b2sdk-1.17.2.ebuild b/dev-python/b2sdk/b2sdk-1.17.2.ebuild
new file mode 100644
index 000000000..215e1a142
--- /dev/null
+++ b/dev-python/b2sdk/b2sdk-1.17.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+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.17.2-disable-requirement-installation.patch"
+)
+
+RDEPEND="
+	$(python_gen_cond_dep '
+		>=dev-python/arrow-1.0.2[${PYTHON_USEDEP}]
+		>=dev-python/logfury-1.0.1[${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.6.1[${PYTHON_USEDEP}]
+		>=dev-python/pytest-lazy-fixture-0.6.3[${PYTHON_USEDEP}]
+	')
+)"
+
+# These tests seem to require some b2 authentication (they're integration tests
+# so this is not unreasonable)
+python_test() {
+	epytest \
+		--deselect test/integration/test_large_files.py::TestLargeFile::test_large_file \
+		--deselect test/integration/test_raw_api.py::test_raw_api \
+		--deselect test/integration/test_download.py::TestDownload::test_large_file \
+		--deselect test/integration/test_download.py::TestDownload::test_small \
+		--deselect test/integration/test_download.py::TestDownload::test_small_unverified \
+		--deselect test/integration/test_download.py::TestDownload::test_gzip \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_invalid_profile_name \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_profile_and_file_name_conflict \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_profile_and_env_var_conflict \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_profile_and_xdg_config_env_var \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_profile \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_file_name \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_env_var \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_default_file_if_exists \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_xdg_config_env_var \
+		--deselect test/unit/account_info/test_sqlite_account_info.py::TestSqliteAccountProfileFileLocation::test_default_file
+}

diff --git a/dev-python/b2sdk/files/b2sdk-1.17.2-disable-requirement-installation.patch b/dev-python/b2sdk/files/b2sdk-1.17.2-disable-requirement-installation.patch
new file mode 100644
index 000000000..d6d1952b0
--- /dev/null
+++ b/dev-python/b2sdk/files/b2sdk-1.17.2-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
+@@ -102,7 +102,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=read_requirements(),
++    # install_requires=read_requirements(),
+ 
+     # List additional groups of dependencies here (e.g. development
+     # dependencies). You can install these using the following syntax,
+@@ -109,7 +109,7 @@ setup(
+     # for example:
+     # $ pip install -e .[dev,test]
+     extras_require={'doc': read_requirements('doc')},
+-    setup_requires=['setuptools_scm<6.0'],
++    # setup_requires=['setuptools_scm<6.0'],
+     use_scm_version=True,
+ 
+     # If there are data files included in your packages that need to be


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/b2sdk/files/, dev-python/b2sdk/
@ 2022-07-15  3:11 Wolfgang E. Sanyer
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang E. Sanyer @ 2022-07-15  3:11 UTC (permalink / raw
  To: gentoo-commits

commit:     b36f603097826356aa401c5c27ea8f18037b9f64
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Fri Jul 15 02:38:54 2022 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Fri Jul 15 03:11:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b36f6030

dev-python/b2sdk: drop old versions

Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail.com>

 dev-python/b2sdk/Manifest                          |  1 -
 dev-python/b2sdk/b2sdk-1.8.0.ebuild                | 41 ----------------------
 .../files/b2sdk-1.2.0-skip-integration-test.patch  | 12 -------
 3 files changed, 54 deletions(-)

diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest
index f74d62d00..05576c6cd 100644
--- a/dev-python/b2sdk/Manifest
+++ b/dev-python/b2sdk/Manifest
@@ -1,3 +1,2 @@
 DIST b2sdk-1.12.0.tar.gz 273412 BLAKE2B e67cf20a6d7277c3d2990e6f6c46cf9df253b3a46a8c8672cbdc810ca851e8c0cd6b6033b9034ce00283a577e2838cdb0c15410b12546f87c480581b5920074b SHA512 4d5eff1f9efed551c474a472a4c531b67b3356e959dde1d1058aad797abd5fd160781700753019d62ac2f05bd711bf1e6a0b15c0f5f86fd93bab17347a83cb13
 DIST b2sdk-1.17.2.tar.gz 308753 BLAKE2B 07b6f71f604475d861257a1a7c567fc561a90c1c8c5768d21d63a82ff1c57240a81f8ebf96f1b3113cbea181140a128ebad9ed524e410a9c163a04a1de1ee2a0 SHA512 e618e18de16b021dc86a4b5ee9d315294eba5c3421318a4ea668681dc0420d6c3798f17c17be6475dddad7cfada8bf615916a5dc41ef905b8ecd7623b2a0c7bb
-DIST b2sdk-1.8.0.tar.gz 250511 BLAKE2B dad792589148fc3cad91fed1aeb43e02afca6f67f35e2f8239510606d601067abbdd36a3f0b2b2b8264697004d548d8077c999437f027c058072d7383d13c48c SHA512 ee1e1987f127835b2016bba9485c7a9d9503b4a675662a7364310fec7c963214805ed6bc15b3a1f07477f202bbe06325f480997eb202bcdfa1cb24f006d0a900

diff --git a/dev-python/b2sdk/b2sdk-1.8.0.ebuild b/dev-python/b2sdk/b2sdk-1.8.0.ebuild
deleted file mode 100644
index 5744b272d..000000000
--- a/dev-python/b2sdk/b2sdk-1.8.0.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8..9} )
-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"
-	"${FILESDIR}/${PN}-1.8.0-disable-requirement-installation.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}]
-	')
-	$(python_gen_cond_dep '
-		dev-python/importlib_metadata[${PYTHON_USEDEP}]
-		' pypy3 python3_7)
-"
-
-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.2.0-skip-integration-test.patch b/dev-python/b2sdk/files/b2sdk-1.2.0-skip-integration-test.patch
deleted file mode 100644
index bd13d9944..000000000
--- a/dev-python/b2sdk/files/b2sdk-1.2.0-skip-integration-test.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-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:


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/b2sdk/files/, dev-python/b2sdk/
@ 2024-06-05  0:26 Wolfgang E. Sanyer
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang E. Sanyer @ 2024-06-05  0:26 UTC (permalink / raw
  To: gentoo-commits

commit:     79d97aa02e85f09bb7000ca4157f1a437740097b
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Wed Jun  5 00:22:07 2024 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Wed Jun  5 00:22:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=79d97aa0

dev-python/b2sdk: remove old version.

Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail.com>
Closes: https://bugs.gentoo.org/908089

 dev-python/b2sdk/Manifest                          |  1 -
 dev-python/b2sdk/b2sdk-1.21.0.ebuild               | 45 ----------------------
 ...k-1.17.2-disable-requirement-installation.patch | 22 -----------
 ...dk-1.8.0-disable-requirement-installation.patch | 22 -----------
 4 files changed, 90 deletions(-)

diff --git a/dev-python/b2sdk/Manifest b/dev-python/b2sdk/Manifest
index 6e707ab7f..7a6f26b16 100644
--- a/dev-python/b2sdk/Manifest
+++ b/dev-python/b2sdk/Manifest
@@ -1,3 +1,2 @@
-DIST b2sdk-1.21.0.tar.gz 335333 BLAKE2B 7aa3a9664844e1f5ef71b7eec2fc28f456bed0a8ae431a90f23865cb9d73526090f78926b943f67bb1745bb9760718666202a9bd67790d92d90c14a0f1510bab SHA512 3d431ce8a3be536d6e49d20a0e6eef2d435bfccf2dd36c0b501c03ebd013de68063302f3ae4d8c9cd6fcfa7b77e3ea2c00b06c3a5e044e30f545a4ab5248fa62
 DIST b2sdk-2.0.0.tar.gz 378875 BLAKE2B 0d65eb0b9238fccb5f6ef2252280cb9891c1fbf9bfddc2ef38692f5063fc0384eefab26876126d9dc056f178788e72a970f604fb8f9952e1ef6cd62a2417ab9d SHA512 97700574cd948a8a177bb52edc89e67d8f1cf6efcc7227c8581af30cdc95dc7e54afd30357f5723f2abee05cdbbf17d6b26494c586c2851782bebb72224386c0
 DIST b2sdk-2.3.0.tar.gz 390949 BLAKE2B e14c9fc56b7ed66350b8d73456dd50b0f6fdb40d7a6fe73cf7950afcb25bb5257a63bb361d8cbca99116b4999a2b0195967b4e08aff5ca9aaf5c16e4b4b532eb SHA512 29ba07581d0e587b413396f128d7fe14f8ac25ea0553eef69e1c428823690974d9373db727321f9838886a07946c36defdd5bae24d31266751d6b1a2f05968c6

diff --git a/dev-python/b2sdk/b2sdk-1.21.0.ebuild b/dev-python/b2sdk/b2sdk-1.21.0.ebuild
deleted file mode 100644
index cbb725554..000000000
--- a/dev-python/b2sdk/b2sdk-1.21.0.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 2021-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DISTUTILS_USE_PEP517="setuptools"
-PYTHON_COMPAT=( python3_10 python3_11 python3_12 )
-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.17.2-disable-requirement-installation.patch"
-)
-
-RDEPEND="
-	$(python_gen_cond_dep '
-		>=dev-python/logfury-1.0.1[${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.6.1[${PYTHON_USEDEP}]
-		>=dev-python/pytest-lazy-fixture-0.6.3[${PYTHON_USEDEP}]
-	')
-)"
-
-EPYTEST_DESELECT=(
-	test/integration/test_large_files.py::TestLargeFile::test_large_file
-	test/integration/test_raw_api.py::test_raw_api
-	test/integration/test_download.py
-	test/integration/test_upload.py
-	test/unit/account_info/test_sqlite_account_info.py
-)

diff --git a/dev-python/b2sdk/files/b2sdk-1.17.2-disable-requirement-installation.patch b/dev-python/b2sdk/files/b2sdk-1.17.2-disable-requirement-installation.patch
deleted file mode 100644
index d6d1952b0..000000000
--- a/dev-python/b2sdk/files/b2sdk-1.17.2-disable-requirement-installation.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-# This will disable the setup.py features that attempt to install missing
-# requirements using pip
---- a/setup.py
-+++ b/setup.py
-@@ -102,7 +102,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=read_requirements(),
-+    # install_requires=read_requirements(),
- 
-     # List additional groups of dependencies here (e.g. development
-     # dependencies). You can install these using the following syntax,
-@@ -109,7 +109,7 @@ setup(
-     # for example:
-     # $ pip install -e .[dev,test]
-     extras_require={'doc': read_requirements('doc')},
--    setup_requires=['setuptools_scm<6.0'],
-+    # setup_requires=['setuptools_scm<6.0'],
-     use_scm_version=True,
- 
-     # If there are data files included in your packages that need to be

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
deleted file mode 100644
index 482203f24..000000000
--- a/dev-python/b2sdk/files/b2sdk-1.8.0-disable-requirement-installation.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-# 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] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/b2sdk/files/, dev-python/b2sdk/
@ 2024-09-22  8:31 Takuya Wakazono
  0 siblings, 0 replies; 6+ messages in thread
From: Takuya Wakazono @ 2024-09-22  8:31 UTC (permalink / raw
  To: gentoo-commits

commit:     b6b2873322a589ec81305a8476b25107a1087574
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sun Sep 22 08:25:56 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Sun Sep 22 08:25:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b6b28733

dev-python/b2sdk: migrate to pytest-lazy-fixtures

dev-python/pytest-lazy-fixture is broken with >=pytest-8 and replaced by
dev-python/pytest-lazy-fixtures.

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 dev-python/b2sdk/b2sdk-2.3.0.ebuild                | 11 +++--
 .../b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch    | 56 ++++++++++++++++++++++
 2 files changed, 64 insertions(+), 3 deletions(-)

diff --git a/dev-python/b2sdk/b2sdk-2.3.0.ebuild b/dev-python/b2sdk/b2sdk-2.3.0.ebuild
index 9677228bc..49246e375 100644
--- a/dev-python/b2sdk/b2sdk-2.3.0.ebuild
+++ b/dev-python/b2sdk/b2sdk-2.3.0.ebuild
@@ -1,7 +1,7 @@
-# Copyright 2021-2022 Gentoo Authors
+# Copyright 2021-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 DISTUTILS_USE_PEP517="pdm-backend"
 PYTHON_COMPAT=( python3_10 python3_11 python3_12 )
@@ -33,11 +33,16 @@ distutils_enable_tests pytest
 BDEPEND+=" test? (
 	$(python_gen_cond_dep '
 		>=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
-		>=dev-python/pytest-lazy-fixture-0.6.3[${PYTHON_USEDEP}]
+		dev-python/pytest-lazy-fixtures[${PYTHON_USEDEP}]
 		>=dev-python/tqdm-4.66.2[${PYTHON_USEDEP}]
 	')
 )"
 
+PATCHES=(
+	# migrate from pytest-lazy-fixture to pytest-lazy-fixtures
+	"${FILESDIR}/${P}-lazy-fixtures.patch"
+)
+
 # These tests seem to require some b2 authentication (they're integration tests
 # so this is not unreasonable)
 EPYTEST_DESELECT=(

diff --git a/dev-python/b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch b/dev-python/b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch
new file mode 100644
index 000000000..0a9428784
--- /dev/null
+++ b/dev-python/b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch
@@ -0,0 +1,56 @@
+Migrate from pytest-lazy-fixture to pytest-lazy-fixtures.
+https://github.com/Backblaze/b2-sdk-python/issues/484
+--- a/test/unit/account_info/fixtures.py
++++ b/test/unit/account_info/fixtures.py
+@@ -11,6 +11,7 @@ from __future__ import annotations
+ 
+ import pytest
+ from apiver_deps import InMemoryAccountInfo, SqliteAccountInfo
++from pytest_lazy_fixtures import lf
+ 
+ 
+ @pytest.fixture
+@@ -84,8 +85,8 @@ def sqlite_account_info(sqlite_account_info_factory):
+ 
+ @pytest.fixture(
+     params=[
+-        pytest.lazy_fixture('in_memory_account_info_factory'),
+-        pytest.lazy_fixture('sqlite_account_info_factory'),
++        lf('in_memory_account_info_factory'),
++        lf('sqlite_account_info_factory'),
+     ]
+ )
+ def account_info_factory(request):
+@@ -94,8 +95,8 @@ def account_info_factory(request):
+ 
+ @pytest.fixture(
+     params=[
+-        pytest.lazy_fixture('in_memory_account_info'),
+-        pytest.lazy_fixture('sqlite_account_info'),
++        lf('in_memory_account_info'),
++        lf('sqlite_account_info'),
+     ]
+ )
+ def account_info(request):
+--- a/test/unit/test_cache.py
++++ b/test/unit/test_cache.py
+@@ -13,7 +13,7 @@ from dataclasses import dataclass
+ 
+ import pytest
+ from apiver_deps import AuthInfoCache, DummyCache, InMemoryAccountInfo, InMemoryCache
+-from pytest_lazyfixture import lazy_fixture
++from pytest_lazy_fixtures import lf
+ 
+ 
+ @pytest.fixture
+@@ -32,8 +32,8 @@ def auth_info_cache():
+ 
+ 
+ @pytest.fixture(
+-    scope="class", params=[lazy_fixture('in_memory_cache'),
+-                           lazy_fixture('auth_info_cache')]
++    params=[lf('in_memory_cache'),
++            lf('auth_info_cache')]
+ )
+ def cache(request):
+     return request.param


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-22  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-04  2:15 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/b2sdk/files/, dev-python/b2sdk/ Wolfgang E. Sanyer
  -- strict thread matches above, loose matches on Subject: below --
2021-06-02 18:20 Wolfgang E. Sanyer
2022-07-15  3:01 Wolfgang E. Sanyer
2022-07-15  3:11 Wolfgang E. Sanyer
2024-06-05  0:26 Wolfgang E. Sanyer
2024-09-22  8:31 Takuya Wakazono

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