public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: app-backup/b2/, app-backup/b2/files/
@ 2021-05-05  0:46 Anna Vyalkova
  0 siblings, 0 replies; 5+ messages in thread
From: Anna Vyalkova @ 2021-05-05  0:46 UTC (permalink / raw
  To: gentoo-commits

commit:     58751e4b71e505ecb7ce686045d09929f4fcbcf5
Author:     Anna Vyalkova <cyber <AT> sysrq <DOT> in>
AuthorDate: Wed May  5 00:42:48 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed May  5 00:43:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58751e4b

app-backup/b2: disable failing tests

Closes: https://bugs.gentoo.org/783852
Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>

 app-backup/b2/b2-2.1.0.ebuild                            | 13 ++++++++++---
 app-backup/b2/files/b2-2.1.0-skip-integration-test.patch | 12 ------------
 2 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/app-backup/b2/b2-2.1.0.ebuild b/app-backup/b2/b2-2.1.0.ebuild
index 78feaef03..86c355f36 100644
--- a/app-backup/b2/b2-2.1.0.ebuild
+++ b/app-backup/b2/b2-2.1.0.ebuild
@@ -10,7 +10,7 @@ DISTUTILS_USE_SETUPTOOLS=rdepend
 
 inherit distutils-r1
 
-DESCRIPTION="The command-line tool for BackBlaze's B2 product."
+DESCRIPTION="Command-line tool for BackBlaze's B2 product"
 HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool"
 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 
@@ -20,7 +20,6 @@ KEYWORDS="~amd64 ~x86"
 
 PATCHES=(
 	"${FILESDIR}/${P}-nameclash.patch"
-	"${FILESDIR}/${P}-skip-integration-test.patch"
 )
 
 RDEPEND="
@@ -34,7 +33,15 @@ RDEPEND="
 
 distutils_enable_tests pytest
 
-pkg_postinst(){
+python_test() {
+	epytest \
+		--deselect test/integration/test_b2_command_line.py::test_integration \
+		--deselect test/unit/test_arg_parser.py::TestCustomArgTypes::test_parse_millis_from_float_timestamp \
+		--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_exact \
+		--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_in_range
+}
+
+pkg_postinst() {
 	elog "The b2 executable has been renamed to backblaze2 in order to"
 	elog "avoid a name clash with b2 from boost-build"
 }

diff --git a/app-backup/b2/files/b2-2.1.0-skip-integration-test.patch b/app-backup/b2/files/b2-2.1.0-skip-integration-test.patch
deleted file mode 100644
index 40506bc9b..000000000
--- a/app-backup/b2/files/b2-2.1.0-skip-integration-test.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/test/integration/test_b2_command_line.py b/test/integration/test_b2_command_line.py
-index 02b36ab..bd790ec 100644
---- a/test/integration/test_b2_command_line.py
-+++ b/test/integration/test_b2_command_line.py
-@@ -870,6 +870,7 @@ def main():
- 
- 
- # TODO: rewrite to multiple tests
-+@pytest.mark.skip(reason="Cannot do this in portage")
- def test_integration():
-     application_key_id = os.environ.get('B2_TEST_APPLICATION_KEY_ID')
-     if application_key_id is None:


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

* [gentoo-commits] repo/proj/guru:dev commit in: app-backup/b2/, app-backup/b2/files/
@ 2021-06-02 18:20 Wolfgang E. Sanyer
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang E. Sanyer @ 2021-06-02 18:20 UTC (permalink / raw
  To: gentoo-commits

commit:     89f08bb73b7d5a71a8bde54458bc3bf6fad0ab34
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Wed Jun  2 18:12:41 2021 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Wed Jun  2 18:20:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=89f08bb7

app-backup/b2: bump to 2.5.0

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

 app-backup/b2/Manifest                             |  2 +-
 app-backup/b2/{b2-2.1.0.ebuild => b2-2.5.0.ebuild} | 15 ++++++++++----
 app-backup/b2/files/b2-2.1.0-nameclash.patch       | 12 -----------
 ...b2-2.5.0-disable-pip-requirement-installs.patch | 23 ++++++++++++++++++++++
 app-backup/b2/files/b2-2.5.0-nameclash.patch       | 14 +++++++++++++
 5 files changed, 49 insertions(+), 17 deletions(-)

diff --git a/app-backup/b2/Manifest b/app-backup/b2/Manifest
index 6cbf20eb0..79c31e99d 100644
--- a/app-backup/b2/Manifest
+++ b/app-backup/b2/Manifest
@@ -1 +1 @@
-DIST b2-2.1.0.tar.gz 41812 BLAKE2B 0450b0e0e501a061a0934ac303414322331de3d55da54506b08515136b3084464b0bcf35ca90b6f5298456af3978055f4edf67004aa5351c9bac4e4ecc99a078 SHA512 13bc95226ac98122de401159e3e6149fc783162b33c8c6033538f9e7bcaa782d3f67334b83bd876ca15b73924b5b7af9d9cc62556c10adaf9a0de8c06f9014b6
+DIST b2-2.5.0.tar.gz 72245 BLAKE2B 321114925d594af631a2d489b46a45d35113f561c19223ba62a2777c3c4d578a5ec494c86f35ea4574f81c569de18eba1622a0a8af83379a61ac1341f9050597 SHA512 f9377bd1bbc61d4297afc4080173695df7d3f8461ba0b3c47c408e5cdfd195542a81a4110316d132dab69a90ab6e0a9bf2b08b7b2e4317d29ce8e49d327819ca

diff --git a/app-backup/b2/b2-2.1.0.ebuild b/app-backup/b2/b2-2.5.0.ebuild
similarity index 72%
rename from app-backup/b2/b2-2.1.0.ebuild
rename to app-backup/b2/b2-2.5.0.ebuild
index 86c355f36..e716db900 100644
--- a/app-backup/b2/b2-2.1.0.ebuild
+++ b/app-backup/b2/b2-2.5.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..8} )
+PYTHON_COMPAT=( python3_{7..9} )
 
 DISTUTILS_SINGLE_IMPL=1
 DISTUTILS_USE_SETUPTOOLS=rdepend
@@ -19,16 +19,23 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
 PATCHES=(
-	"${FILESDIR}/${P}-nameclash.patch"
+	"${FILESDIR}/${PN}-2.5.0-nameclash.patch"
+	"${FILESDIR}/${PN}-2.5.0-disable-pip-requirement-installs.patch"
 )
 
 RDEPEND="
 	$(python_gen_cond_dep '
 		>=dev-python/arrow-0.8.0[${PYTHON_USEDEP}]
-		>=dev-python/b2sdk-1.2.0[${PYTHON_USEDEP}]
-		<dev-python/b2sdk-1.3.0[${PYTHON_USEDEP}]
+		>=dev-python/b2sdk-1.8.0[${PYTHON_USEDEP}]
 		>=dev-python/phx-class-registry-3.0.5[${PYTHON_USEDEP}]
+		>=dev-python/rst2ansi-0.1.5[${PYTHON_USEDEP}]
 	')
+	$(python_gen_cond_dep '
+		<dev-python/importlib_metadata-3.0.0[${PYTHON_USEDEP}]
+		' pypy3 python3_7)
+	$(python_gen_cond_dep '
+		>=dev-python/importlib_metadata-3.3.0[${PYTHON_USEDEP}]
+		' pypy3 python3_8)
 "
 
 distutils_enable_tests pytest

diff --git a/app-backup/b2/files/b2-2.1.0-nameclash.patch b/app-backup/b2/files/b2-2.1.0-nameclash.patch
deleted file mode 100644
index 340176f66..000000000
--- a/app-backup/b2/files/b2-2.1.0-nameclash.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/setup.py b/setup.py
-index fee3261..f90056b 100644
---- a/setup.py
-+++ b/setup.py
-@@ -140,6 +140,6 @@ setup(
-     # "scripts" keyword. Entry points provide cross-platform support and allow
-     # pip to create the appropriate form of executable for the target platform.
-     entry_points={
--        'console_scripts': ['b2=b2.console_tool:main',],
-+        'console_scripts': ['backblaze2=b2.console_tool:main',],
-     },
- )

diff --git a/app-backup/b2/files/b2-2.5.0-disable-pip-requirement-installs.patch b/app-backup/b2/files/b2-2.5.0-disable-pip-requirement-installs.patch
new file mode 100644
index 000000000..18cfaaf35
--- /dev/null
+++ b/app-backup/b2/files/b2-2.5.0-disable-pip-requirement-installs.patch
@@ -0,0 +1,23 @@
+# These configurations attempt to install missing dependencies using pip, which
+# violates the network sandbox. Instead, we'll manage the dependencies in
+# portage.
+--- a/setup.py
++++ b/setup.py
+@@ -103,7 +103,7 @@ setup(
+     # requirements files see:
+     # https://packaging.python.org/en/latest/requirements.html
+     dependency_links=[],
+-    install_requires=requirements,
++    # install_requires=requirements,
+ 
+     # List additional groups of dependencies here (e.g. development
+     # dependencies). You can install these using the following syntax,
+@@ -116,7 +116,7 @@ setup(
+                 'sphinxcontrib-plantuml', '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

diff --git a/app-backup/b2/files/b2-2.5.0-nameclash.patch b/app-backup/b2/files/b2-2.5.0-nameclash.patch
new file mode 100644
index 000000000..507392ae1
--- /dev/null
+++ b/app-backup/b2/files/b2-2.5.0-nameclash.patch
@@ -0,0 +1,14 @@
+# boost installs an executable named b2, which clashes with the default name for
+# this package. This package changes the executable name to avoid this clash.
+diff --git a/setup.py b/setup.py
+index f9c1bbe..76ca28f 100644
+--- a/setup.py
++++ b/setup.py
+@@ -135,6 +135,6 @@ setup(
+     # "scripts" keyword. Entry points provide cross-platform support and allow
+     # pip to create the appropriate form of executable for the target platform.
+     entry_points={
+-        'console_scripts': ['b2=b2.console_tool:main'],
++        'console_scripts': ['backblaze2=b2.console_tool:main'],
+     },
+ )


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

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

commit:     28c6c103f91472e29bd9b1fba9399049eee6aead
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Fri Jul 15 01:50:47 2022 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Fri Jul 15 03:11:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=28c6c103

app-backup/b2: bump to 3.4.0

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

 app-backup/b2/Manifest                             |  1 +
 app-backup/b2/b2-3.4.0.ebuild                      | 55 ++++++++++++++++++++++
 ...b2-3.4.0-disable-pip-requirement-installs.patch | 24 ++++++++++
 3 files changed, 80 insertions(+)

diff --git a/app-backup/b2/Manifest b/app-backup/b2/Manifest
index 9e0338705..01eedbe3e 100644
--- a/app-backup/b2/Manifest
+++ b/app-backup/b2/Manifest
@@ -1,2 +1,3 @@
 DIST b2-2.5.0.tar.gz 72245 BLAKE2B 321114925d594af631a2d489b46a45d35113f561c19223ba62a2777c3c4d578a5ec494c86f35ea4574f81c569de18eba1622a0a8af83379a61ac1341f9050597 SHA512 f9377bd1bbc61d4297afc4080173695df7d3f8461ba0b3c47c408e5cdfd195542a81a4110316d132dab69a90ab6e0a9bf2b08b7b2e4317d29ce8e49d327819ca
 DIST b2-3.0.3.tar.gz 78692 BLAKE2B b216b40e7d3bb0a7b5564418ea463bf9e143a0f1a1408ebe2312869943e5bfbae175afa75aadbe203c05b71026f0fc8fa8f6031b7c3a636ba9b9b6017e2e17be SHA512 61ef1dd1d406f04b50b0d8bb3df921127d996465d53f00dc4cf77d5b6e63ce15fdb9a2d1fc5d7d1c01e734c93fe3e4fe316ca43f420aa6c31f7e3d88e134b659
+DIST b2-3.4.0.tar.gz 86706 BLAKE2B 2aa1f4934db0bcf8c1334a5def94fd74824a9ca19d293b201b29f8c4511e8d423fd77d71734c386aeb41e60747ea71d36d8c049676cf6fcd3e101354440da8cc SHA512 5b0f411301f9b022c066ab3a1170d2ef3b21a76fe9c4e668d1da0cbd07334d11614f93d283e5c0482cb4f6985466d28b0fe59b4c058a87643218dd7a96857418

diff --git a/app-backup/b2/b2-3.4.0.ebuild b/app-backup/b2/b2-3.4.0.ebuild
new file mode 100644
index 000000000..9e7054846
--- /dev/null
+++ b/app-backup/b2/b2-3.4.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Command-line tool for BackBlaze's B2 product"
+HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-2.5.0-nameclash.patch"
+	"${FILESDIR}/${PN}-3.4.0-disable-pip-requirement-installs.patch"
+)
+
+RDEPEND="
+	$(python_gen_cond_dep '
+		>=dev-python/arrow-1.0.2[${PYTHON_USEDEP}]
+		>=dev-python/b2sdk-1.16.0[${PYTHON_USEDEP}]
+		>=dev-python/docutils-0.16[${PYTHON_USEDEP}]
+		>=dev-python/phx-class-registry-3.0.5[${PYTHON_USEDEP}]
+		>=dev-python/rst2ansi-0.1.5[${PYTHON_USEDEP}]
+	')
+	$(python_gen_cond_dep '
+		>=dev-python/importlib_metadata-3.3.0[${PYTHON_USEDEP}]
+		' pypy3 python3_8)
+"
+
+distutils_enable_tests pytest
+
+# - integration tests require an application key and id (which is # reasonable)
+# - sync tests require network access
+# - Per https://github.com/Backblaze/B2_Command_Line_Tool/issues/687 , the
+#   parse_millis test is broken due to an upstream issue
+python_test() {
+	epytest \
+		--deselect test/integration/test_b2_command_line.py::test_integration \
+		--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_exact \
+		--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_in_range \
+		--deselect test/unit/test_arg_parser.py::TestCustomArgTypes::test_parse_millis_from_float_timestamp
+}
+
+pkg_postinst() {
+	elog "The b2 executable has been renamed to backblaze2 in order to"
+	elog "avoid a name clash with b2 from boost-build"
+}

diff --git a/app-backup/b2/files/b2-3.4.0-disable-pip-requirement-installs.patch b/app-backup/b2/files/b2-3.4.0-disable-pip-requirement-installs.patch
new file mode 100644
index 000000000..389485167
--- /dev/null
+++ b/app-backup/b2/files/b2-3.4.0-disable-pip-requirement-installs.patch
@@ -0,0 +1,24 @@
+# These configurations attempt to install missing dependencies using pip, which
+# violates the network sandbox. Instead, we'll manage the dependencies in
+# portage.
+--- a/setup.py
++++ b/setup.py
+@@ -104,7 +104,7 @@ setup(
+     # requirements files see:
+     # https://packaging.python.org/en/latest/requirements.html
+     dependency_links=[],
+-    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,
+@@ -110,7 +110,7 @@ setup(
+     # dependencies). You can install these using the following syntax,
+     # 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] 5+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: app-backup/b2/, app-backup/b2/files/
@ 2023-06-05  3:13 Wolfgang E. Sanyer
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang E. Sanyer @ 2023-06-05  3:13 UTC (permalink / raw
  To: gentoo-commits

commit:     7bec09d5b280508b14e01f2a7dbb86f13133cec2
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Mon Jun  5 03:05:32 2023 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Mon Jun  5 03:13:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7bec09d5

app-backup/b2: Bump to 3.9.0

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

 app-backup/b2/Manifest                             |  1 +
 app-backup/b2/b2-3.9.0.ebuild                      | 98 ++++++++++++++++++++++
 ...b2-3.9.0-disable-pip-requirement-installs.patch | 23 +++++
 app-backup/b2/metadata.xml                         |  1 +
 4 files changed, 123 insertions(+)

diff --git a/app-backup/b2/Manifest b/app-backup/b2/Manifest
index 939d66585..1bd1b86f8 100644
--- a/app-backup/b2/Manifest
+++ b/app-backup/b2/Manifest
@@ -1 +1,2 @@
 DIST b2-3.4.0.tar.gz 86706 BLAKE2B 2aa1f4934db0bcf8c1334a5def94fd74824a9ca19d293b201b29f8c4511e8d423fd77d71734c386aeb41e60747ea71d36d8c049676cf6fcd3e101354440da8cc SHA512 5b0f411301f9b022c066ab3a1170d2ef3b21a76fe9c4e668d1da0cbd07334d11614f93d283e5c0482cb4f6985466d28b0fe59b4c058a87643218dd7a96857418
+DIST b2-3.9.0.tar.gz 131326 BLAKE2B c357831b7c0b4ae6abc4fafb6e09690f8ffe833d2c58c05610ffdbf94ba276f5fa143dd1528f7e7424b6fa96857c8328be993e6ffc60b61c44037bd9ef0b0e96 SHA512 db2fab07e973d6d39db3931dd7f645ee3c9737f4de0ab29327490607d52aad4df2e9049782ef347ee44f80b76dbe91f495ce273285001d49195abe91d5b2cb5d

diff --git a/app-backup/b2/b2-3.9.0.ebuild b/app-backup/b2/b2-3.9.0.ebuild
new file mode 100644
index 000000000..e7159e74c
--- /dev/null
+++ b/app-backup/b2/b2-3.9.0.ebuild
@@ -0,0 +1,98 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_10 python3_11 )
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Command-line tool for BackBlaze's B2 product"
+HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-2.5.0-nameclash.patch"
+	"${FILESDIR}/${PN}-3.9.0-disable-pip-requirement-installs.patch"
+)
+
+RDEPEND="
+	$(python_gen_cond_dep '
+		>=dev-python/argcomplete-2.1.2[${PYTHON_USEDEP}]
+		>=dev-python/arrow-1.0.2[${PYTHON_USEDEP}]
+		>=dev-python/b2sdk-1.21.0[${PYTHON_USEDEP}]
+		>=dev-python/docutils-0.19[${PYTHON_USEDEP}]
+		>=dev-python/phx-class-registry-4.0.6[${PYTHON_USEDEP}]
+		>=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}]
+		>=dev-python/rst2ansi-0.1.5[${PYTHON_USEDEP}]
+		>=dev-python/tqdm-4.65.0[${PYTHON_USEDEP}]
+	')
+	$(python_gen_cond_dep '
+		>=dev-python/importlib_metadata-3.3.0[${PYTHON_USEDEP}]
+		' pypy3 python3_8)
+"
+
+DEPEND="
+	test? (
+		$(python_gen_cond_dep '
+			>=dev-python/backoff-2.2.1[${PYTHON_USEDEP}]
+			>=dev-python/pexpect-4.8.0[${PYTHON_USEDEP}]
+		')
+	)
+"
+
+distutils_enable_tests pytest
+
+# - integration tests require an application key and id (which is reasonable)
+# - sync tests require network access
+python_test() {
+	epytest \
+		--deselect test/integration/test_autocomplete.py::test_autocomplete_b2_bucket_n_file_name \
+		--deselect test/integration/test_autocomplete.py::test_autocomplete_b2_commands \
+		--deselect test/integration/test_autocomplete.py::test_autocomplete_b2_only_matching_commands \
+		--deselect test/integration/test_b2_command_line.py::test_integration \
+		--deselect test/integration/test_b2_command_line.py::test_download \
+		--deselect test/integration/test_b2_command_line.py::test_basic \
+		--deselect test/integration/test_b2_command_line.py::test_bucket \
+		--deselect test/integration/test_b2_command_line.py::test_key_restrictions \
+		--deselect test/integration/test_b2_command_line.py::test_account \
+		--deselect test/integration/test_b2_command_line.py::test_sync_up \
+		--deselect test/integration/test_b2_command_line.py::test_sync_up_sse_b2 \
+		--deselect test/integration/test_b2_command_line.py::test_sync_up_sse_c \
+		--deselect test/integration/test_b2_command_line.py::test_sync_up_no_prefix \
+		--deselect test/integration/test_b2_command_line.py::test_sync_down \
+		--deselect test/integration/test_b2_command_line.py::test_sync_down_no_prefix \
+		--deselect test/integration/test_b2_command_line.py::test_sync_down_sse_c_no_prefix \
+		--deselect test/integration/test_b2_command_line.py::test_sync_copy \
+		--deselect test/integration/test_b2_command_line.py::test_sync_copy_no_prefix_default_encryption \
+		--deselect test/integration/test_b2_command_line.py::test_sync_copy_no_prefix_no_encryption \
+		--deselect test/integration/test_b2_command_line.py::test_sync_copy_no_prefix_sse_b2 \
+		--deselect test/integration/test_b2_command_line.py::test_sync_copy_no_prefix_sse_c \
+		--deselect test/integration/test_b2_command_line.py::test_sync_copy_sse_c_single_bucket \
+		--deselect test/integration/test_b2_command_line.py::test_sync_long_path \
+		--deselect test/integration/test_b2_command_line.py::test_default_sse_b2 \
+		--deselect test/integration/test_b2_command_line.py::test_sse_b2 \
+		--deselect test/integration/test_b2_command_line.py::test_sse_c \
+		--deselect test/integration/test_b2_command_line.py::test_license[True] \
+		--deselect test/integration/test_b2_command_line.py::test_license[False] \
+		--deselect test/integration/test_b2_command_line.py::test_file_lock \
+		--deselect test/integration/test_b2_command_line.py::test_profile_switch \
+		--deselect test/integration/test_b2_command_line.py::test_replication_basic \
+		--deselect test/integration/test_b2_command_line.py::test_replication_setup \
+		--deselect test/integration/test_b2_command_line.py::test_replication_monitoring \
+		--deselect test/integration/test_b2_command_line.py::test_enable_file_lock_first_retention_second \
+		--deselect test/integration/test_b2_command_line.py::test_enable_file_lock_and_set_retention_at_once \
+		--deselect test/integration/test_b2_command_line.py::test_cut \
+		--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_exact \
+		--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_in_range
+}
+
+pkg_postinst() {
+	elog "The b2 executable has been renamed to backblaze2 in order to"
+	elog "avoid a name clash with b2 from boost-build"
+}

diff --git a/app-backup/b2/files/b2-3.9.0-disable-pip-requirement-installs.patch b/app-backup/b2/files/b2-3.9.0-disable-pip-requirement-installs.patch
new file mode 100644
index 000000000..e9ec96911
--- /dev/null
+++ b/app-backup/b2/files/b2-3.9.0-disable-pip-requirement-installs.patch
@@ -0,0 +1,23 @@
+# These configurations attempt to install missing dependencies using pip, which
+# violates the network sandbox. Instead, we'll manage the dependencies in
+# portage.
+--- a/setup.py
++++ b/setup.py
+@@ -104,7 +104,7 @@
+     # requirements files see:
+     # https://packaging.python.org/en/latest/requirements.html
+     dependency_links=[],
+-    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,
+@@ -114,7 +114,7 @@
+         'doc': read_requirements('doc'),
+         'license': read_requirements('license'),
+     },
+-    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/app-backup/b2/metadata.xml b/app-backup/b2/metadata.xml
index cb84a3148..fbab36376 100644
--- a/app-backup/b2/metadata.xml
+++ b/app-backup/b2/metadata.xml
@@ -13,5 +13,6 @@
 	</longdescription>
 	<upstream>
 		<remote-id type="github">Backblaze/B2_Command_Line_Tool</remote-id>
+		<remote-id type="pypi">b2</remote-id>
 	</upstream>
 </pkgmetadata>


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

* [gentoo-commits] repo/proj/guru:dev commit in: app-backup/b2/, app-backup/b2/files/
@ 2024-06-04 19:46 Wolfgang E. Sanyer
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang E. Sanyer @ 2024-06-04 19:46 UTC (permalink / raw
  To: gentoo-commits

commit:     8714381ef5750a50c5cb58c024a53a7353557e4e
Author:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
AuthorDate: Tue Jun  4 19:46:08 2024 +0000
Commit:     Wolfgang E. Sanyer <ezzieyguywuf <AT> gmail <DOT> com>
CommitDate: Tue Jun  4 19:46:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8714381e

app-backup/b2: bump to 4.0.1

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

 app-backup/b2/Manifest                       |  1 +
 app-backup/b2/b2-4.0.1.ebuild                | 75 ++++++++++++++++++++++++++++
 app-backup/b2/files/b2-4.0.1-nameclash.patch | 17 +++++++
 3 files changed, 93 insertions(+)

diff --git a/app-backup/b2/Manifest b/app-backup/b2/Manifest
index 92370c8f8..604ce7bb8 100644
--- a/app-backup/b2/Manifest
+++ b/app-backup/b2/Manifest
@@ -1,2 +1,3 @@
 DIST b2-3.18.0.gh.tar.gz 189572 BLAKE2B 9516d98c7c493791f120c345480f16c8d615cbf425f692fa3fe6688c21ef7d26f14cdd7b44cfb22f2c13a5554166c046eb5fa1712a1e1994fa4e4181399eda84 SHA512 45c784e961b8b650d27e7fe642cacd194462b3c0864fdc1af52e41a70b435c36fbb803e80cfb2c88b8165ea95459a7e62b1995f26caf612110f8c77418cb6669
 DIST b2-3.9.0.tar.gz 131326 BLAKE2B c357831b7c0b4ae6abc4fafb6e09690f8ffe833d2c58c05610ffdbf94ba276f5fa143dd1528f7e7424b6fa96857c8328be993e6ffc60b61c44037bd9ef0b0e96 SHA512 db2fab07e973d6d39db3931dd7f645ee3c9737f4de0ab29327490607d52aad4df2e9049782ef347ee44f80b76dbe91f495ce273285001d49195abe91d5b2cb5d
+DIST b2-4.0.1.gh.tar.gz 201737 BLAKE2B 74fb1dd52c8592816c2f2680469c2dd08910f8c25d4a923dd53258f63dd4c38ef77855e6845c41572b8fe52d33ee390a2fac6555016663c450feeb6ff89ed09e SHA512 02a14c2c78fecd1dda536539b5977d6ff45892db0355575209417d7f8471a45ace0d4766dd454c0ba0a65a1ae44e0c698cca38814b0bf36ca5e7a69efec9149a

diff --git a/app-backup/b2/b2-4.0.1.ebuild b/app-backup/b2/b2-4.0.1.ebuild
new file mode 100644
index 000000000..1f428d20f
--- /dev/null
+++ b/app-backup/b2/b2-4.0.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_10 python3_11 python3_12 )
+DISTUTILS_USE_PEP517="pdm-backend"
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Command-line tool for BackBlaze's B2 product"
+HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool"
+SRC_URI="https://github.com/Backblaze/B2_Command_Line_Tool/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+S="${WORKDIR}/B2_Command_Line_Tool-${PV}"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+	"${FILESDIR}/${P}-nameclash.patch"
+)
+
+export PDM_BUILD_SCM_VERSION=${PV}
+
+RDEPEND="
+	$(python_gen_cond_dep '
+		>=dev-python/argcomplete-2.1.2[${PYTHON_USEDEP}]
+		>=dev-python/arrow-1.3.0[${PYTHON_USEDEP}]
+		>=dev-python/b2sdk-2.3.0[${PYTHON_USEDEP}]
+		>=dev-python/docutils-0.19[${PYTHON_USEDEP}]
+		>=dev-python/phx-class-registry-4.0.6[${PYTHON_USEDEP}]
+		>=dev-python/rst2ansi-0.1.5[${PYTHON_USEDEP}]
+		>=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}]
+		>=dev-python/tqdm-4.65.0[${PYTHON_USEDEP}]
+	')
+"
+
+DEPEND="
+	test? (
+		$(python_gen_cond_dep '
+			>=dev-python/backoff-2.2.1[${PYTHON_USEDEP}]
+			>=dev-python/pexpect-4.8.0[${PYTHON_USEDEP}]
+		')
+	)
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+	# fixture 'worker_id' not found
+	"test/integration/test_b2_command_line.py"
+	"test/integration/test_help.py::test_help"
+	"test/integration/test_autocomplete.py"
+
+	# Timeout exceeded
+	# I think this is trying to access files outside of the sandbox
+	"test/unit/console_tool/test_install_autocomplete.py::test_install_autocomplete"
+
+	# TypeError: super(type, obj): obj must be an instance or subtype of type
+	# This test itself does not fail, but running it causes subsequent test to
+	# fail, which otherwise pass. Not really sure why (I assume this test is
+	# somehow polluting the test fixture?) but disabling causes the other tests
+	# to pass
+	"test/unit/_cli/test_autocomplete_cache.py"
+)
+python_test() {
+	epytest test
+}
+
+pkg_postinst() {
+	elog "The b2 executable has been renamed to backblaze2 in order to"
+	elog "avoid a name clash with b2 from boost-build"
+}

diff --git a/app-backup/b2/files/b2-4.0.1-nameclash.patch b/app-backup/b2/files/b2-4.0.1-nameclash.patch
new file mode 100644
index 000000000..463c4c387
--- /dev/null
+++ b/app-backup/b2/files/b2-4.0.1-nameclash.patch
@@ -0,0 +1,17 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index ff817d2..de26c16 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -65,9 +65,9 @@ full = [
+ Homepage = "https://github.com/Backblaze/B2_Command_Line_Tool"
+ 
+ [project.scripts]
+-b2 = "b2._internal.b2v4.__main__:main"
+-b2v3 = "b2._internal.b2v3.__main__:main"
+-b2v4 = "b2._internal.b2v4.__main__:main"
++backblaze2 = "b2._internal.b2v4.__main__:main"
++backblaze2v3 = "b2._internal.b2v3.__main__:main"
++backblaze2v4 = "b2._internal.b2v4.__main__:main"
+ 
+ [build-system]
+ requires = ["pdm-backend"]


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

end of thread, other threads:[~2024-06-04 19:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-05  0:46 [gentoo-commits] repo/proj/guru:dev commit in: app-backup/b2/, app-backup/b2/files/ Anna Vyalkova
  -- strict thread matches above, loose matches on Subject: below --
2021-06-02 18:20 Wolfgang E. Sanyer
2022-07-15  3:11 Wolfgang E. Sanyer
2023-06-05  3:13 Wolfgang E. Sanyer
2024-06-04 19:46 Wolfgang E. Sanyer

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