DIRACGrid / DIRACGrid/dirac-cwl
[Bug]: some tests fail when using python 3.11
- Dominant language
- Python
- Stars
- 3
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
### Search before creating an issue
- [x] I have searched existing issues and confirmed this is not a duplicate
### Bug Description
in `pyproject.toml` the python version is set to python>=3.11, but `filter` parameter in `tarfile.extractall()` is only available from version 3.12.
https://github.com/DIRACGrid/dirac-cwl/blob/52e6144799eb1421df63b90c30026a536ef8323d/src/dirac_cwl/data_management_mocks/sandbox.py#L88
Tests `test_run_job_paralelly` and `test_run_job_success` with pigather fail because filter is not recognized
`TypeError: TarFile.extractall() got an unexpected keyword argument 'filter'`
### Steps to Reproduce
1. Set `requires-python = "==3.11"` in `pyproject.toml`
2. Run `pixi install`
3. Run tests
4. Observe `test_run_job_paralelly` and `test_run_job_success` failing
### Expected Behavior
Tests should not be failing because of a supported python version
### Actual Behavior
Tests `test_run_job_paralelly` and `test_run_job_success` with `pigather` fail :
`TypeError: TarFile.extractall() got an unexpected keyword argument 'filter'`
### Environment
Python 3.11
### Relevant Log Output
```shell
```
### Additional Context
To fix the problem, python version could be set to `>=3.12` or `filter` parameter can be dropped (unavailable in 3.11 and default value is `"data"` from version 3.14)
more info at https://docs.python.org/3/library/tarfile.html
Contributor guide
Assessment
This issue has not been assessed yet.