Closed kloczek closed 1 year ago
Thanks for reporting this issue @kloczek! From the details it looks like you're missing the faust-cchardet
dependency. That dependency is optional for the base version of CleverCSV but not for the "full" version. I see that the unit test in question assumes that this is available though, so I'll leave this issue open to resolve that.
I think this should be fixed in v0.7.6, but let me know if that's not the case
Just tested new verzaion and indeed issue has been solved. Thank you very much 👍 What about that pytest warning?
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-clevercsv-0.7.6-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-clevercsv-0.7.6-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.16, pytest-7.3.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/CleverCSV-0.7.6
plugins: cov-4.0.0
collected 156 items
tests/test_unit/test_consistency.py .. [ 1%]
tests/test_unit/test_console.py .................... [ 14%]
tests/test_unit/test_cparser.py ................................................. [ 45%]
tests/test_unit/test_detect.py .... [ 48%]
tests/test_unit/test_detect_pattern.py .................... [ 60%]
tests/test_unit/test_detect_type.py .......... [ 67%]
tests/test_unit/test_dict.py .................... [ 80%]
tests/test_unit/test_encoding.py s. [ 81%]
tests/test_unit/test_fuzzing.py . [ 82%]
tests/test_unit/test_normal_forms.py ..... [ 85%]
tests/test_unit/test_potential_dialects.py .... [ 87%]
tests/test_unit/test_reader.py ......... [ 93%]
tests/test_unit/test_wrappers.py ..... [ 96%]
tests/test_unit/test_write.py ..... [100%]
===================================================================================== warnings summary ======================================================================================
../../../../../usr/lib/python3.8/site-packages/wilderness/tester.py:23
/usr/lib/python3.8/site-packages/wilderness/tester.py:23: PytestCollectionWarning: cannot collect test class 'Tester' because it has a __init__ constructor (from: tests/test_unit/test_console.py)
class Tester:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
SKIPPED [1] tests/test_unit/test_encoding.py:69: Failed to import cchardet, skipping this test
========================================================================= 155 passed, 1 skipped, 1 warning in 0.78s =========================================================================
Good to hear! That pytest warning was never a real issue, but should now be fixed when using Wilderness v0.1.10.
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"
)Here is pytest output:
Here is list of installed modules in build env