Open kloczek opened 9 months ago
It seems there are multiple things called libarchive. We mean this one, which is now at version 5. There is at least one other one with the same python package name. This is a test-only dependency and not needed at runtime, except for the specific filesystem backends that need it. Our tests should probably have a skip for when the lib is not available - but something called libarchive
apparently is.
In our (conda) CI env, we specify "libarchive-python-c" here.
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)In build env is isntalled
libarchive
0.4.7.Here is pytest output:
```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-fsspec-2023.12.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-fsspec-2023.12.0-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' ==================================================================================== test session starts ==================================================================================== platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0 rootdir: /home/tkloczko/rpmbuild/BUILD/filesystem_spec-2023.12.0 configfile: pyproject.toml plugins: asyncio-0.23.2, steps-1.8.0, harvest-1.10.4, anyio-4.1.0, vcr-1.0.2, mock-3.12.0 asyncio: mode=strict collected 1580 items / 7 skipped fsspec/implementations/tests/test_archive.py ............................................................FFFFFFFF.F.F...................F.F.F..FFFF [ 6%] fsspec/implementations/tests/test_cached.py ..........................................ssssss............................... [ 11%] fsspec/implementations/tests/test_common.py ssss [ 11%] fsspec/implementations/tests/test_data.py .. [ 11%] fsspec/implementations/tests/test_dbfs.py ..... [ 12%] fsspec/implementations/tests/test_dirfs.py ........................................................................................................................ [ 19%] fsspec/implementations/tests/test_ftp.py ............. [ 20%] fsspec/implementations/tests/test_http.py ...................................................... [ 23%] fsspec/implementations/tests/test_jupyter.py . [ 24%] fsspec/implementations/tests/test_libarchive.py F [ 24%] fsspec/implementations/tests/test_local.py .s............................s...................................................... [ 29%] fsspec/implementations/tests/test_memory.py ............................ [ 31%] fsspec/implementations/tests/test_reference.py ................s.....ss.. [ 32%] fsspec/implementations/tests/test_sftp.py ssssssssss [ 33%] fsspec/implementations/tests/test_tar.py ......................... [ 35%] fsspec/implementations/tests/test_webhdfs.py sssssssssss [ 35%] fsspec/implementations/tests/test_zip.py ....... [ 36%] fsspec/implementations/tests/local/local_test.py .................................................................................................................................... [ 44%] ... [ 44%] fsspec/implementations/tests/memory/memory_test.py .................................................................................................................................. [ 53%] ..... [ 53%] fsspec/tests/test_api.py ...............x...... [ 54%] fsspec/tests/test_async.py .........s... [ 55%] fsspec/tests/test_caches.py ............................................................................................................................................... [ 64%] fsspec/tests/test_callbacks.py ..... [ 64%] fsspec/tests/test_compression.py .....s [ 65%] fsspec/tests/test_config.py ....... [ 65%] fsspec/tests/test_core.py ............................s....... [ 68%] fsspec/tests/test_file.py ........... [ 68%] fsspec/tests/test_generic.py ...... [ 69%] fsspec/tests/test_mapping.py ................. [ 70%] fsspec/tests/test_parquet.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 79%] ssssssssssssssssssssssssssssssssssssssss [ 82%] fsspec/tests/test_registry.py ......s [ 82%] fsspec/tests/test_spec.py ...................x....................................................................................................................................... [ 92%] ............................................................ [ 96%] fsspec/tests/test_utils.py ......................................................... [100%] ========================================================================================= FAILURES ========================================================================================== ___________________________________________________________________________ TestAnyArchive.test_repr[libarchive] ____________________________________________________________________________ self =List of installed modules in build env:
```console Package Version ----------------------------- -------- aiohttp 3.9.0 aiosignal 1.3.1 alabaster 0.7.13 anyio 4.1.0 argon2-cffi 23.1.0 argon2-cffi-bindings 21.2.0 asttokens 2.4.1 async-lru 2.0.4 async-timeout 4.0.3 attrs 23.1.0 Babel 2.14.0 backcall 0.2.0 bcrypt 4.0.1 beautifulsoup4 4.12.2 bleach 6.1.0 build 1.0.3 cffi 1.16.0 charset-normalizer 3.3.2 comm 0.2.0 cppclean 0.13 cryptography 41.0.5 debugpy 1.8.0 decorator 5.1.1 defusedxml 0.7.1 distro 1.8.0 dnf 4.18.2 docutils 0.20.1 exceptiongroup 1.1.3 executing 2.0.1 fastjsonschema 2.18.0 frozenlist 1.4.1 gpg 1.23.2 html5lib 1.1 idna 3.6 imagesize 1.4.1 importlib-metadata 7.0.0 importlib-resources 6.1.1 iniconfig 2.0.0 installer 0.7.0 ipykernel 6.27.1 ipython 8.12.0 jedi 0.19.1 Jinja2 3.1.2 json5 0.9.14 jsonschema 4.19.1 jsonschema-specifications 2023.7.1 jupyter_client 8.6.0 jupyter_core 5.5.0 jupyter-events 0.9.0 jupyter-lsp 2.2.0 jupyter_server 2.12.1 jupyter_server_terminals 0.5.0 jupyterlab 4.0.9 jupyterlab-pygments 0.1.2 jupyterlab_server 2.25.2 libarchive 0.4.7 libdnf 0.72.0 lz4 4.3.2 MarkupSafe 2.1.3 matplotlib-inline 0.1.6 mistune 2.0.5 multidict 6.0.4 nbclient 0.9.0 nbconvert 7.12.0 nbformat 5.9.2 nest-asyncio 1.5.8 notebook 7.0.6 notebook_shim 0.2.3 numpy 1.24.4 numpydoc 1.6.0 overrides 7.4.0 packaging 23.2 pandas 2.0.3 pandocfilters 1.5.0 paramiko 3.3.1 parso 0.8.3 pexpect 4.8.0 pickleshare 0.7.5 pkgutil_resolve_name 1.3.10 platformdirs 4.1.0 pluggy 1.3.0 ply 3.11 prometheus-client 0.19.0 prompt-toolkit 3.0.43 psutil 5.9.5 ptyprocess 0.7.0 pure-eval 0.2.2 pycparser 2.21 pyftpdlib 1.5.7 Pygments 2.17.2 PyNaCl 1.5.0 pyproject_hooks 1.0.0 pytest 7.4.3 pytest-asyncio 0.23.2 pytest-mock 3.12.0 pytest-vcr 1.0.2 python-dateutil 2.8.2 python-json-logger 2.0.7 pytz 2023.3 PyYAML 6.0.1 pyzmq 25.1.1 referencing 0.30.2 requests 2.31.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rpds-py 0.13.2 Send2Trash 1.8.2 setuptools 69.0.2 six 1.16.0 sniffio 1.3.0 snowballstemmer 2.2.0 soupsieve 2.5 Sphinx 7.1.2 sphinx_design 0.5.0 sphinxcontrib-applehelp 1.0.4 sphinxcontrib-devhelp 1.0.5 sphinxcontrib-htmlhelp 2.0.4 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.9 stack-data 0.6.3 tabulate 0.9.0 terminado 0.18.0 tinycss2 1.2.1 tomli 2.0.1 tornado 6.3.3 tqdm 4.66.1 traitlets 5.14.0 typing_extensions 4.9.0 urllib3 1.26.18 vcrpy 5.1.0 wcwidth 0.2.12 webencodings 0.5.1 websocket-client 1.7.0 wheel 0.42.0 wrapt 1.16.0 yarl 1.9.2 zipp 3.17.0 zstandard 0.22.0 ```Please let me know if you need more details or want me to perform some diagnostics.