summaryrefslogtreecommitdiff
path: root/dev-python/fsspec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-10 03:03:09 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-10 03:03:09 +0000
commitbe94ae04eee564451203d45977c2ef7c7ace1580 (patch)
tree616ffc0ad9aee18dc7d5e9e62bf62394e8e520ba /dev-python/fsspec
parent2be329ae14bbf99f0fc4de7567e2386bbb529fdc (diff)
gentoo auto-resync : 10:11:2024 - 03:03:09
Diffstat (limited to 'dev-python/fsspec')
-rw-r--r--dev-python/fsspec/Manifest5
-rw-r--r--dev-python/fsspec/files/fsspec-2024.9.0-backports.patch128
-rw-r--r--dev-python/fsspec/fsspec-2024.10.0.ebuild2
-rw-r--r--dev-python/fsspec/fsspec-2024.9.0.ebuild63
4 files changed, 2 insertions, 196 deletions
diff --git a/dev-python/fsspec/Manifest b/dev-python/fsspec/Manifest
index b078efd8c81d..13180cbdea11 100644
--- a/dev-python/fsspec/Manifest
+++ b/dev-python/fsspec/Manifest
@@ -1,6 +1,3 @@
-AUX fsspec-2024.9.0-backports.patch 5095 BLAKE2B 432c68771500a179a44ee248783e0252cc7f5fe85fa580e08e5ab2450c741b462c8e59610a3ffcb3413ad512cfb0c89d223c016934c2120da11e574963b99d80 SHA512 d3af20471958e4c6ee68f37fbc582eb6af69cacc0aa9db9b177f89bc2b26f77ac1ee99e6b55b86647d2eeb27db9e6e8e2bcc12a67535957a87e04f663f90c529
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
-EBUILD fsspec-2024.10.0.ebuild 1388 BLAKE2B 4901c87aa1bed71632dd70ef7e20bc6e9f3d01b49ad1d12b570e8b5515c43835601645e3ebd8d36dce9c06acc7d121cdaf129c7bbc68db646840f3202807f4bf SHA512 1eb7a0e9e109ce4ab3b6325882006384b8f0751835e5db55ff9610184b505f72fecdc3b8450acac72e79c254730d99306a63ba2e3ddbf2ba3333247879f2f1b0
-EBUILD fsspec-2024.9.0.ebuild 1599 BLAKE2B b305ab5637f407cf3653c9483990119891cfebc26ff3b75e336e18528ebe9cac37b56bf8b53d33d1247bc64ab3fe821373573dc98e628504fc5d2bf91f5ffc6f SHA512 87efb84e68aca2500baae2f911a86404f149dca6b615314bb72e9f7fea7a67930a6f07ce43268be0e68ed8da814dee9c5a61d32e0e59bbaeeef3f6d22d664fa0
+EBUILD fsspec-2024.10.0.ebuild 1385 BLAKE2B eaaa1dc24cd20232b13cdee77bbf2b3482e59f8ffcb51358ac0b6bc2da1154d014b3132cdfe0fc3532f0c017fcd861d6d95ff1b3dd6595b4711210e44c19d83d SHA512 8285972ae0e1a58e9157fa506564fd6d147483ead9d0846eb6022b8caf5e617c74a2ab6381bb776f2c59589baa5b30d1af5754a5ee01df41ced77fc23681709a
MISC metadata.xml 374 BLAKE2B 6c0b18a0ad3b85713ae6f618ac0646ed63f08549bd7d1ed5bd94b80d89d79efaf2f97ce913a0a7d6e54e77cc602994416520a22deadcc71e484cf7ca22bc6dde SHA512 5bf051387d6bcffb3022d023f60ee8f76ca277bb8d626dda988a0baaf1d1e3a71e872d8316607ee7e269e579b5a17c23ab93c56fade533150171d3ce44e4bb71
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.10.0.ebuild b/dev-python/fsspec/fsspec-2024.10.0.ebuild
index a1a42e4ef47b..e06e223520d0 100644
--- a/dev-python/fsspec/fsspec-2024.10.0.ebuild
+++ b/dev-python/fsspec/fsspec-2024.10.0.ebuild
@@ -23,7 +23,7 @@ S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
BDEPEND="
dev-python/hatch-vcs[${PYTHON_USEDEP}]
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
-}