public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/fsspec/, dev-python/fsspec/files/
@ 2021-06-23  7:31 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2021-06-23  7:31 UTC (permalink / raw
  To: gentoo-commits

commit:     3896d07bc010c1e1f66172772d0040460fdde453
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 23 06:55:21 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 23 07:31:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3896d07b

dev-python/fsspec: Bump to 2021.06.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/fsspec/Manifest                         |  1 +
 .../fsspec/files/fsspec-2021.06.1-ujson.patch      | 32 ++++++++++++++
 dev-python/fsspec/fsspec-2021.06.1.ebuild          | 51 ++++++++++++++++++++++
 3 files changed, 84 insertions(+)

diff --git a/dev-python/fsspec/Manifest b/dev-python/fsspec/Manifest
index 4f23bc45b1e..418da215814 100644
--- a/dev-python/fsspec/Manifest
+++ b/dev-python/fsspec/Manifest
@@ -1 +1,2 @@
 DIST filesystem_spec-2021.05.0.tar.gz 292796 BLAKE2B 5d56d860ced1a72c27d2031b7d257a4bcbd52f6b2fed5275fbcbf7088375fde26652f0a003e919ebd3948d5e9833d802304234282ca858a7a2a19bfa11f66aa8 SHA512 7c27a1ad4e21efdcc0f31f91a9929e4c09db7b9421e7bf8d2f485e961f6887a4a5c083f38f8d7b09005a4cf11f55c93cce4617e3dc6c2b241ed20f7847ad711e
+DIST filesystem_spec-2021.06.1.tar.gz 297254 BLAKE2B e360c0780df2ace31a2a7e15f7269f23140ddbc6bd6a1f657cfddbab2b1f285d79a0c88f8d63e406d4a53fd3737f77012eb9837479707a778ab043503ade9d18 SHA512 1d59c2c53b1a4a604ff3762eca8484d7ed60fba98548cc77d7ed014ddf1513cef046ceeec41911cdecd414bdbb4e3c669a3a3f65da08dabf5a70cc2985d06b73

diff --git a/dev-python/fsspec/files/fsspec-2021.06.1-ujson.patch b/dev-python/fsspec/files/fsspec-2021.06.1-ujson.patch
new file mode 100644
index 00000000000..0c76d8ac71d
--- /dev/null
+++ b/dev-python/fsspec/files/fsspec-2021.06.1-ujson.patch
@@ -0,0 +1,32 @@
+From 270423008d401d9f03a31f08c53a7b13fa193573 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Wed, 23 Jun 2021 09:23:31 +0200
+Subject: [PATCH] Fix test_unmodel to accept ujson encoding without whitespace
+
+The ujson encoding for test_unmodel data is b'"Conventions":"UGRID-0.9.0"'
+(without a space after ':') that breaks the test for me.  Update
+the test to make the whitespace optional.
+
+That said, I have tried multiple ujson versions, going back to <3,
+and was not able to reproduce the output with space.
+---
+ fsspec/implementations/tests/test_reference.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/fsspec/implementations/tests/test_reference.py b/fsspec/implementations/tests/test_reference.py
+index a1a8fdc..15a32d5 100644
+--- a/fsspec/implementations/tests/test_reference.py
++++ b/fsspec/implementations/tests/test_reference.py
+@@ -104,7 +104,8 @@ jdata = """{
+ 
+ def test_unmodel():
+     refs = _unmodel_hdf5(json.loads(jdata))
+-    assert b'"Conventions": "UGRID-0.9.0"' in refs[".zattrs"]
++    # apparently the output may or may not contain a space after ':'
++    assert b'"Conventions":"UGRID-0.9.0"' in refs[".zattrs"].replace(b' ', b'')
+     assert refs["adcirc_mesh/0"] == ("https://url", 8928, 8932)
+ 
+ 
+-- 
+2.32.0
+

diff --git a/dev-python/fsspec/fsspec-2021.06.1.ebuild b/dev-python/fsspec/fsspec-2021.06.1.ebuild
new file mode 100644
index 00000000000..38f77d30991
--- /dev/null
+++ b/dev-python/fsspec/fsspec-2021.06.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..9} )
+inherit distutils-r1
+
+MY_P=filesystem_spec-${PV}
+
+DESCRIPTION="A specification that python filesystems should adhere to"
+HOMEPAGE="https://github.com/intake/filesystem_spec/
+	https://pypi.org/project/fsspec/"
+SRC_URI="
+	https://github.com/intake/filesystem_spec/archive/${PV}.tar.gz
+		-> ${MY_P}.tar.gz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+BDEPEND="
+	dev-python/versioneer[${PYTHON_USEDEP}]
+	test? (
+		dev-python/aiohttp[${PYTHON_USEDEP}]
+		dev-python/numpy[${PYTHON_USEDEP}]
+		dev-python/requests[${PYTHON_USEDEP}]
+		dev-vcs/git
+	)"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+	"${FILESDIR}"/${P}-ujson.patch
+)
+
+src_test() {
+	git config --global user.email "you@example.com" || die
+	git config --global user.name "Your Name" || die
+	distutils-r1_src_test
+}
+
+python_test() {
+	# sftp and smb require server started via docker
+	epytest \
+		--deselect fsspec/tests/test_spec.py::test_find \
+		--ignore fsspec/implementations/tests/test_dbfs.py \
+		--ignore fsspec/implementations/tests/test_sftp.py \
+		--ignore fsspec/implementations/tests/test_smb.py
+}


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

* [gentoo-commits] repo/gentoo:master commit in: dev-python/fsspec/, dev-python/fsspec/files/
@ 2024-10-03  2:36 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2024-10-03  2:36 UTC (permalink / raw
  To: gentoo-commits

commit:     6661d7e7d52d7ab1658ffc13257941887a666b37
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  2 17:52:21 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct  3 02:33:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6661d7e7

dev-python/fsspec: Bump to 2024.9.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/fsspec/Manifest                         |   1 +
 .../fsspec/files/fsspec-2024.9.0-backports.patch   | 128 +++++++++++++++++++++
 dev-python/fsspec/fsspec-2024.9.0.ebuild           |  63 ++++++++++
 3 files changed, 192 insertions(+)

diff --git a/dev-python/fsspec/Manifest b/dev-python/fsspec/Manifest
index be76d6abdb8b..c7916ee7a04c 100644
--- a/dev-python/fsspec/Manifest
+++ b/dev-python/fsspec/Manifest
@@ -1 +1,2 @@
 DIST filesystem_spec-2024.6.1.gh.tar.gz 409416 BLAKE2B c5b2ba4935dcf0a141c952d611b49c4370a07e3c9ed439ae4d7e98f86e93610a2b1eb8c394eb73ed4494555cca1ac169f1ee7b11144cf0d1ecae7316a46092b6 SHA512 67ecf2bc10c3ae28fa64be5ecb659fc466e97b52b152f3f223d347931b04730e58a48e90d7c546a47c5422831103711037fc268c24984cf77ef65ca4714b0e5e
+DIST filesystem_spec-2024.9.0.gh.tar.gz 413991 BLAKE2B b4dbb17e39481d3d5ee900618b3bea036faec0ce84d95cf2e581feb59d0eb5cb1ecc73730b87bbeb175110db34d52db062bf8d94e82f27a28a6f1693e10c49e7 SHA512 2600f7b020019634ec3f4ffd2a66f458c04423f10c00afbfd99dabad7fca809af28792a5b8a6625c57548f8dc172ab0d9498cbfcd570cd1d04a905c079fe4fb9

diff --git a/dev-python/fsspec/files/fsspec-2024.9.0-backports.patch b/dev-python/fsspec/files/fsspec-2024.9.0-backports.patch
new file mode 100644
index 000000000000..a8f9f965c083
--- /dev/null
+++ b/dev-python/fsspec/files/fsspec-2024.9.0-backports.patch
@@ -0,0 +1,128 @@
+From edf495736a39c0031d5514e8350363dfa229f3d4 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Sun, 22 Sep 2024 23:48:36 -0400
+Subject: [PATCH] Fix handling of Paths in zip implementation
+
+Fixes #1688
+---
+ fsspec/implementations/zip.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/fsspec/implementations/zip.py b/fsspec/implementations/zip.py
+index aa6a57842..6db3ae278 100644
+--- a/fsspec/implementations/zip.py
++++ b/fsspec/implementations/zip.py
+@@ -1,3 +1,4 @@
++import os
+ import zipfile
+ 
+ import fsspec
+@@ -48,7 +49,7 @@ def __init__(
+         if mode not in set("rwa"):
+             raise ValueError(f"mode '{mode}' no understood")
+         self.mode = mode
+-        if isinstance(fo, str):
++        if isinstance(fo, (str, os.PathLike)):
+             if mode == "a":
+                 m = "r+b"
+             else:
+From dc4f5a97d90238b862fa7974a9b8e93602f44540 Mon Sep 17 00:00:00 2001
+From: Martin Durant <martindurant@users.noreply.github.com>
+Date: Mon, 23 Sep 2024 09:42:21 -0400
+Subject: [PATCH] Don't require absolute offsets in zip tests (#1691)
+
+---
+ fsspec/implementations/tests/test_zip.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/fsspec/implementations/tests/test_zip.py b/fsspec/implementations/tests/test_zip.py
+index ecd082f3f..8bf8155d9 100644
+--- a/fsspec/implementations/tests/test_zip.py
++++ b/fsspec/implementations/tests/test_zip.py
+@@ -169,12 +169,16 @@ def _assert_all_except_context_dependent_variables(result, expected_result):
+         result_without_date_time.pop("_raw_time")
+         result_without_date_time.pop("external_attr")
+         result_without_date_time.pop("create_system")
++        result_without_date_time.pop("_end_offset", None)
++        result_without_date_time.pop("header_offset", None)
+ 
+         expected_result_without_date_time = expected_result[path].copy()
+         expected_result_without_date_time.pop("date_time")
+         expected_result_without_date_time.pop("_raw_time")
+         expected_result_without_date_time.pop("external_attr")
+         expected_result_without_date_time.pop("create_system")
++        expected_result_without_date_time.pop("_end_offset", None)
++        expected_result_without_date_time.pop("header_offset", None)
+         assert result_without_date_time == expected_result_without_date_time
+ 
+ 
+From 0021859ff78bbf62e86c330e2dad00c5dd205108 Mon Sep 17 00:00:00 2001
+From: Martin Durant <martin.durant@alumni.utoronto.ca>
+Date: Wed, 2 Oct 2024 11:37:14 -0400
+Subject: [PATCH] Limit fields checked in ZIP tests
+
+---
+ fsspec/asyn.py                           |  4 +++
+ fsspec/implementations/tests/test_zip.py | 34 +++++++++++++-----------
+ 2 files changed, 23 insertions(+), 15 deletions(-)
+
+diff --git a/fsspec/asyn.py b/fsspec/asyn.py
+index f203fa0a4..de41839ea 100644
+--- a/fsspec/asyn.py
++++ b/fsspec/asyn.py
+@@ -344,6 +344,10 @@ async def _rm(self, path, recursive=False, batch_size=None, **kwargs):
+     async def _cp_file(self, path1, path2, **kwargs):
+         raise NotImplementedError
+ 
++    async def _mv_file(self, path1, path2):
++        await self._cp_file(path1, path2)
++        await self._rm_file(path1)
++
+     async def _copy(
+         self,
+         path1,
+diff --git a/fsspec/implementations/tests/test_zip.py b/fsspec/implementations/tests/test_zip.py
+index 8bf8155d9..14d00086e 100644
+--- a/fsspec/implementations/tests/test_zip.py
++++ b/fsspec/implementations/tests/test_zip.py
+@@ -164,21 +164,25 @@ def zip_file_fixture(tmp_path):
+ def _assert_all_except_context_dependent_variables(result, expected_result):
+     for path in expected_result.keys():
+         assert result[path]
+-        result_without_date_time = result[path].copy()
+-        result_without_date_time.pop("date_time")
+-        result_without_date_time.pop("_raw_time")
+-        result_without_date_time.pop("external_attr")
+-        result_without_date_time.pop("create_system")
+-        result_without_date_time.pop("_end_offset", None)
+-        result_without_date_time.pop("header_offset", None)
+-
+-        expected_result_without_date_time = expected_result[path].copy()
+-        expected_result_without_date_time.pop("date_time")
+-        expected_result_without_date_time.pop("_raw_time")
+-        expected_result_without_date_time.pop("external_attr")
+-        expected_result_without_date_time.pop("create_system")
+-        expected_result_without_date_time.pop("_end_offset", None)
+-        expected_result_without_date_time.pop("header_offset", None)
++        fields = [
++            "orig_filename",
++            "filename",
++            "compress_type",
++            "comment",
++            "extra",
++            "CRC",
++            "compress_size",
++            "file_size",
++            "name",
++            "size",
++            "type",
++        ]
++
++        result_without_date_time = {k: result[path][k] for k in fields}
++
++        expected_result_without_date_time = {
++            k: expected_result[path][k] for k in fields
++        }
+         assert result_without_date_time == expected_result_without_date_time
+ 
+ 

diff --git a/dev-python/fsspec/fsspec-2024.9.0.ebuild b/dev-python/fsspec/fsspec-2024.9.0.ebuild
new file mode 100644
index 000000000000..b6cde0c2fe2c
--- /dev/null
+++ b/dev-python/fsspec/fsspec-2024.9.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+MY_P=filesystem_spec-${PV}
+DESCRIPTION="A specification that python filesystems should adhere to"
+HOMEPAGE="
+	https://github.com/fsspec/filesystem_spec/
+	https://pypi.org/project/fsspec/
+"
+# upstream removed tests in 2024.6.0
+SRC_URI="
+	https://github.com/fsspec/filesystem_spec/archive/${PV}.tar.gz
+		-> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+
+BDEPEND="
+	dev-python/hatch-vcs[${PYTHON_USEDEP}]
+	test? (
+		dev-python/aiohttp[${PYTHON_USEDEP}]
+		dev-python/numpy[${PYTHON_USEDEP}]
+		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+		dev-python/pytest-mock[${PYTHON_USEDEP}]
+		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+		dev-python/requests[${PYTHON_USEDEP}]
+		dev-python/tqdm[${PYTHON_USEDEP}]
+		dev-vcs/git
+	)
+"
+
+# Note: this package is not xdist-friendly
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+PATCHES=(
+	# https://github.com/fsspec/filesystem_spec/pull/1689
+	# https://github.com/fsspec/filesystem_spec/pull/1691
+	# https://github.com/fsspec/filesystem_spec/pull/1700
+	"${FILESDIR}/${P}-backports.patch"
+)
+
+src_test() {
+	git config --global user.email "you@example.com" || die
+	git config --global user.name "Your Name" || die
+	distutils-r1_src_test
+}
+
+python_test() {
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest -p asyncio -p pytest_mock -o tmp_path_retention_policy=all
+}


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

* [gentoo-commits] repo/gentoo:master commit in: dev-python/fsspec/, dev-python/fsspec/files/
@ 2024-11-09 10:22 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2024-11-09 10:22 UTC (permalink / raw
  To: gentoo-commits

commit:     b8e81715029d2e51ba23e40291093204e941bf9d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  9 10:21:55 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov  9 10:22:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8e81715

dev-python/fsspec: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/fsspec/Manifest                         |   1 -
 .../fsspec/files/fsspec-2024.9.0-backports.patch   | 128 ---------------------
 dev-python/fsspec/fsspec-2024.9.0.ebuild           |  63 ----------
 3 files changed, 192 deletions(-)

diff --git a/dev-python/fsspec/Manifest b/dev-python/fsspec/Manifest
index f3d2d3cef2d7..b37e547688d6 100644
--- a/dev-python/fsspec/Manifest
+++ b/dev-python/fsspec/Manifest
@@ -1,2 +1 @@
 DIST filesystem_spec-2024.10.0.gh.tar.gz 415286 BLAKE2B 59e8a1457c528c350ef49da546ee8e15dc27031dde3c5b2ae4c97a7ec0a392010c8d1558c4a6569be07aebc272add9629c6e8e7fc7e392259bb5f72b47b65a3c SHA512 46542e494044e40110c3da879ec620daca15e3a18e3e0a318f0c98f18a08aa7c319fffdf396527e920f6bc5f17fbec5e4c2030ed6a9b8853720e513165dbc56d
-DIST filesystem_spec-2024.9.0.gh.tar.gz 413991 BLAKE2B b4dbb17e39481d3d5ee900618b3bea036faec0ce84d95cf2e581feb59d0eb5cb1ecc73730b87bbeb175110db34d52db062bf8d94e82f27a28a6f1693e10c49e7 SHA512 2600f7b020019634ec3f4ffd2a66f458c04423f10c00afbfd99dabad7fca809af28792a5b8a6625c57548f8dc172ab0d9498cbfcd570cd1d04a905c079fe4fb9

diff --git a/dev-python/fsspec/files/fsspec-2024.9.0-backports.patch b/dev-python/fsspec/files/fsspec-2024.9.0-backports.patch
deleted file mode 100644
index a8f9f965c083..000000000000
--- a/dev-python/fsspec/files/fsspec-2024.9.0-backports.patch
+++ /dev/null
@@ -1,128 +0,0 @@
-From edf495736a39c0031d5514e8350363dfa229f3d4 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sun, 22 Sep 2024 23:48:36 -0400
-Subject: [PATCH] Fix handling of Paths in zip implementation
-
-Fixes #1688
----
- fsspec/implementations/zip.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/fsspec/implementations/zip.py b/fsspec/implementations/zip.py
-index aa6a57842..6db3ae278 100644
---- a/fsspec/implementations/zip.py
-+++ b/fsspec/implementations/zip.py
-@@ -1,3 +1,4 @@
-+import os
- import zipfile
- 
- import fsspec
-@@ -48,7 +49,7 @@ def __init__(
-         if mode not in set("rwa"):
-             raise ValueError(f"mode '{mode}' no understood")
-         self.mode = mode
--        if isinstance(fo, str):
-+        if isinstance(fo, (str, os.PathLike)):
-             if mode == "a":
-                 m = "r+b"
-             else:
-From dc4f5a97d90238b862fa7974a9b8e93602f44540 Mon Sep 17 00:00:00 2001
-From: Martin Durant <martindurant@users.noreply.github.com>
-Date: Mon, 23 Sep 2024 09:42:21 -0400
-Subject: [PATCH] Don't require absolute offsets in zip tests (#1691)
-
----
- fsspec/implementations/tests/test_zip.py | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/fsspec/implementations/tests/test_zip.py b/fsspec/implementations/tests/test_zip.py
-index ecd082f3f..8bf8155d9 100644
---- a/fsspec/implementations/tests/test_zip.py
-+++ b/fsspec/implementations/tests/test_zip.py
-@@ -169,12 +169,16 @@ def _assert_all_except_context_dependent_variables(result, expected_result):
-         result_without_date_time.pop("_raw_time")
-         result_without_date_time.pop("external_attr")
-         result_without_date_time.pop("create_system")
-+        result_without_date_time.pop("_end_offset", None)
-+        result_without_date_time.pop("header_offset", None)
- 
-         expected_result_without_date_time = expected_result[path].copy()
-         expected_result_without_date_time.pop("date_time")
-         expected_result_without_date_time.pop("_raw_time")
-         expected_result_without_date_time.pop("external_attr")
-         expected_result_without_date_time.pop("create_system")
-+        expected_result_without_date_time.pop("_end_offset", None)
-+        expected_result_without_date_time.pop("header_offset", None)
-         assert result_without_date_time == expected_result_without_date_time
- 
- 
-From 0021859ff78bbf62e86c330e2dad00c5dd205108 Mon Sep 17 00:00:00 2001
-From: Martin Durant <martin.durant@alumni.utoronto.ca>
-Date: Wed, 2 Oct 2024 11:37:14 -0400
-Subject: [PATCH] Limit fields checked in ZIP tests
-
----
- fsspec/asyn.py                           |  4 +++
- fsspec/implementations/tests/test_zip.py | 34 +++++++++++++-----------
- 2 files changed, 23 insertions(+), 15 deletions(-)
-
-diff --git a/fsspec/asyn.py b/fsspec/asyn.py
-index f203fa0a4..de41839ea 100644
---- a/fsspec/asyn.py
-+++ b/fsspec/asyn.py
-@@ -344,6 +344,10 @@ async def _rm(self, path, recursive=False, batch_size=None, **kwargs):
-     async def _cp_file(self, path1, path2, **kwargs):
-         raise NotImplementedError
- 
-+    async def _mv_file(self, path1, path2):
-+        await self._cp_file(path1, path2)
-+        await self._rm_file(path1)
-+
-     async def _copy(
-         self,
-         path1,
-diff --git a/fsspec/implementations/tests/test_zip.py b/fsspec/implementations/tests/test_zip.py
-index 8bf8155d9..14d00086e 100644
---- a/fsspec/implementations/tests/test_zip.py
-+++ b/fsspec/implementations/tests/test_zip.py
-@@ -164,21 +164,25 @@ def zip_file_fixture(tmp_path):
- def _assert_all_except_context_dependent_variables(result, expected_result):
-     for path in expected_result.keys():
-         assert result[path]
--        result_without_date_time = result[path].copy()
--        result_without_date_time.pop("date_time")
--        result_without_date_time.pop("_raw_time")
--        result_without_date_time.pop("external_attr")
--        result_without_date_time.pop("create_system")
--        result_without_date_time.pop("_end_offset", None)
--        result_without_date_time.pop("header_offset", None)
--
--        expected_result_without_date_time = expected_result[path].copy()
--        expected_result_without_date_time.pop("date_time")
--        expected_result_without_date_time.pop("_raw_time")
--        expected_result_without_date_time.pop("external_attr")
--        expected_result_without_date_time.pop("create_system")
--        expected_result_without_date_time.pop("_end_offset", None)
--        expected_result_without_date_time.pop("header_offset", None)
-+        fields = [
-+            "orig_filename",
-+            "filename",
-+            "compress_type",
-+            "comment",
-+            "extra",
-+            "CRC",
-+            "compress_size",
-+            "file_size",
-+            "name",
-+            "size",
-+            "type",
-+        ]
-+
-+        result_without_date_time = {k: result[path][k] for k in fields}
-+
-+        expected_result_without_date_time = {
-+            k: expected_result[path][k] for k in fields
-+        }
-         assert result_without_date_time == expected_result_without_date_time
- 
- 

diff --git a/dev-python/fsspec/fsspec-2024.9.0.ebuild b/dev-python/fsspec/fsspec-2024.9.0.ebuild
deleted file mode 100644
index 01b1d8409ec3..000000000000
--- a/dev-python/fsspec/fsspec-2024.9.0.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 2020-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..13} )
-
-inherit distutils-r1
-
-MY_P=filesystem_spec-${PV}
-DESCRIPTION="A specification that python filesystems should adhere to"
-HOMEPAGE="
-	https://github.com/fsspec/filesystem_spec/
-	https://pypi.org/project/fsspec/
-"
-# upstream removed tests in 2024.6.0
-SRC_URI="
-	https://github.com/fsspec/filesystem_spec/archive/${PV}.tar.gz
-		-> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
-
-BDEPEND="
-	dev-python/hatch-vcs[${PYTHON_USEDEP}]
-	test? (
-		dev-python/aiohttp[${PYTHON_USEDEP}]
-		dev-python/numpy[${PYTHON_USEDEP}]
-		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-		dev-python/pytest-mock[${PYTHON_USEDEP}]
-		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-		dev-python/requests[${PYTHON_USEDEP}]
-		dev-python/tqdm[${PYTHON_USEDEP}]
-		dev-vcs/git
-	)
-"
-
-# Note: this package is not xdist-friendly
-distutils_enable_tests pytest
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
-
-PATCHES=(
-	# https://github.com/fsspec/filesystem_spec/pull/1689
-	# https://github.com/fsspec/filesystem_spec/pull/1691
-	# https://github.com/fsspec/filesystem_spec/pull/1700
-	"${FILESDIR}/${P}-backports.patch"
-)
-
-src_test() {
-	git config --global user.email "you@example.com" || die
-	git config --global user.name "Your Name" || die
-	distutils-r1_src_test
-}
-
-python_test() {
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	epytest -p asyncio -p pytest_mock -o tmp_path_retention_policy=all
-}


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-03  2:36 [gentoo-commits] repo/gentoo:master commit in: dev-python/fsspec/, dev-python/fsspec/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2024-11-09 10:22 Michał Górny
2021-06-23  7:31 Michał Górny

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