I'm trying to package 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.
```console
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-ini2toml-0.10-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-ini2toml-0.10-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/ini2toml-0.10, configfile: setup.cfg, testpaths: tests
plugins: forked-1.4.0, shutil-1.7.0, virtualenv-1.7.0, xdist-2.5.0, cov-3.0.0, flake8-1.1.1, checkdocs-2.7.1
collected 106 items
tests/test_cli.py ......F [ 8%]
tests/test_examples.py EEEEEEEEEEEEEEEEEEEE.......... [ 42%]
tests/test_intermediate_repr.py ...... [ 49%]
tests/test_plugins.py ... [ 52%]
tests/test_transformations.py ..... [ 58%]
tests/test_translator.py ..... [ 64%]
tests/drivers/test_configparser.py . [ 65%]
tests/drivers/test_configupdater.py . [ 66%]
tests/drivers/test_full_toml.py . [ 67%]
tests/drivers/test_lite_toml.py . [ 68%]
tests/drivers/test_plain_builtins.py . [ 70%]
. F [ 71%]
tests/plugins/test_best_effort.py . [ 72%]
tests/plugins/test_coverage.py . [ 73%]
tests/plugins/test_isort.py . [ 74%]
tests/plugins/test_mypy.py . [ 75%]
tests/plugins/test_profile_independent_tasks.py .. [ 78%]
tests/plugins/test_pytest.py . [ 79%]
tests/plugins/test_setuptools_pep621.py .................. [100%]
================================================================================== ERRORS ==================================================================================
________________________________ ERROR at setup of test_examples_api[tests/examples/django/setup.cfg-tests/examples/django/pyproject.toml] _________________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
_________________________________ ERROR at setup of test_examples_api[tests/examples/flask/setup.cfg-tests/examples/flask/pyproject.toml] __________________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
________________________________ ERROR at setup of test_examples_api[tests/examples/pandas/setup.cfg-tests/examples/pandas/pyproject.toml] _________________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
________________________________ ERROR at setup of test_examples_api[tests/examples/pluggy/setup.cfg-tests/examples/pluggy/pyproject.toml] _________________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
_______________________________ ERROR at setup of test_examples_api[tests/examples/plumbum/setup.cfg-tests/examples/plumbum/pyproject.toml] ________________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
____________________________ ERROR at setup of test_examples_api[tests/examples/pyscaffold/setup.cfg-tests/examples/pyscaffold/pyproject.toml] _____________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
_______________________ ERROR at setup of test_examples_api[tests/examples/setuptools_docs/setup.cfg-tests/examples/setuptools_docs/pyproject.toml] ________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
________________________ ERROR at setup of test_examples_api[tests/examples/setuptools_scm/setup.cfg-tests/examples/setuptools_scm/pyproject.toml] _________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
____________________________ ERROR at setup of test_examples_api[tests/examples/virtualenv/setup.cfg-tests/examples/virtualenv/pyproject.toml] _____________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
__________________________________ ERROR at setup of test_examples_api[tests/examples/zipp/setup.cfg-tests/examples/zipp/pyproject.toml] ___________________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
______________________________ ERROR at setup of test_examples_api_lite[tests/examples/django/setup.cfg-tests/examples/django/pyproject.toml] ______________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
_______________________________ ERROR at setup of test_examples_api_lite[tests/examples/flask/setup.cfg-tests/examples/flask/pyproject.toml] _______________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
______________________________ ERROR at setup of test_examples_api_lite[tests/examples/pandas/setup.cfg-tests/examples/pandas/pyproject.toml] ______________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
______________________________ ERROR at setup of test_examples_api_lite[tests/examples/pluggy/setup.cfg-tests/examples/pluggy/pyproject.toml] ______________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
_____________________________ ERROR at setup of test_examples_api_lite[tests/examples/plumbum/setup.cfg-tests/examples/plumbum/pyproject.toml] _____________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
__________________________ ERROR at setup of test_examples_api_lite[tests/examples/pyscaffold/setup.cfg-tests/examples/pyscaffold/pyproject.toml] __________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
_____________________ ERROR at setup of test_examples_api_lite[tests/examples/setuptools_docs/setup.cfg-tests/examples/setuptools_docs/pyproject.toml] _____________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
______________________ ERROR at setup of test_examples_api_lite[tests/examples/setuptools_scm/setup.cfg-tests/examples/setuptools_scm/pyproject.toml] ______________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
__________________________ ERROR at setup of test_examples_api_lite[tests/examples/virtualenv/setup.cfg-tests/examples/virtualenv/pyproject.toml] __________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
________________________________ ERROR at setup of test_examples_api_lite[tests/examples/zipp/setup.cfg-tests/examples/zipp/pyproject.toml] ________________________________
@pytest.fixture(scope="module")
def validate():
"""Use ``validate-pyproject`` to validate the generated TOML"""
tests/test_examples.py:35:
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:208: in init
self._schema_registry = SchemaRegistry(self._plugins)
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:96: in init
top_level = cast(dict, load(TOP_LEVEL_SCHEMA)) # Make it mutable
/usr/lib/python3.8/site-packages/validate_pyproject/api.py:74: in load
return Schema(json.loads(read_text(package, f"{name}{ext}")))
/usr/lib64/python3.8/importlib/resources.py:169: in read_text
with open_text(package, resource, encoding, errors) as fp:
/usr/lib64/python3.8/importlib/resources.py:125: in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa993e62f40>, resource = 'pyproject_toml.schema.json'
???
E FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/validate_pyproject/pyproject_toml.schema.json'
:1048: FileNotFoundError
================================================================================= FAILURES =================================================================================
___________________________________________________________________________ test_auto_formatting ___________________________________________________________________________
tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-356/test_auto_formatting0'), capsys = <_pytest.capture.CaptureFixture object at 0x7fa9939da8e0>
def test_auto_formatting(tmp_path, capsys):
setupcfg = """
[metadata]
version = 42
name = myproj
"""
normal_output = """
requires = ["setuptools"]
"""
expected = """
requires = [
"setuptools",
]
"""
# Check if the underlying function works
formatted = cli.apply_auto_formatting(cleandoc(expected))
assert formatted.strip() == cleandoc(expected).strip()
(tmp_path / "setup.cfg").write_text(cleandoc(setupcfg), encoding="utf-8")
assert (tmp_path / "setup.cfg").exists()
# Check the output when formatting in off
cli.run([str(tmp_path / "setup.cfg")])
out, _ = capsys.readouterr()
assert cleandoc(normal_output) in out
assert cleandoc(expected) not in out
# Check the output when formatting in on
cli.run(["-F", str(tmp_path / "setup.cfg")])
tests/test_cli.py:137:
/usr/lib64/python3.8/contextlib.py:75: in inner
return func(*args, **kwds)
../../BUILDROOT/python-ini2toml-0.10-2.fc35.x86_64/usr/lib/python3.8/site-packages/ini2toml/cli.py:196: in run
params = parse_args(args, profiles, profile_augmentations)
/usr/lib64/python3.8/contextlib.py:75: in inner
return func(*args, **kwds)
../../BUILDROOT/python-ini2toml-0.10-2.fc35.x86_64/usr/lib/python3.8/site-packages/ini2toml/cli.py:150: in parse_args
params = parser.parse_args(args)
/usr/lib64/python3.8/argparse.py:1771: in parse_args
self.error(msg % ' '.join(argv))
/usr/lib64/python3.8/argparse.py:2521: in error
self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
self = ArgumentParser(prog='pytest', usage=None, description='Automatically converts .cfg/.ini files into TOML', formatter_class=<class 'ini2toml.cli.Formatter'>, conflict_handler='error', add_help=True)
status = 2, message = 'pytest: error: unrecognized arguments: -F\n'
def exit(self, status=0, message=None):
if message:
self._print_message(message, _sys.stderr)
E SystemExit: 2
/usr/lib64/python3.8/argparse.py:2508: SystemExit
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
usage: pytest [-h] [-V] [-o OUTPUT_FILE] [-p PROFILE]
[-D TRANSFORMATION [TRANSFORMATION ...]] [-v] [-vv]
input_file
pytest: error: unrecognized arguments: -F
_______________________________________________________________________________ test session _______________________________________________________________________________
cls = <class '_pytest.runner.CallInfo'>, func = <function call_runtest_hook.. at 0x7fa99398b280>, when = 'call'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
@classmethod
def from_call(
cls,
func: "Callable[[], TResult]",
when: "Literal['collect', 'setup', 'call', 'teardown']",
reraise: Optional[
Union[Type[BaseException], Tuple[Type[BaseException], ...]]
] = None,
) -> "CallInfo[TResult]":
"""Call func, wrapping the result in a CallInfo.
:param func:
The function to call. Called without arguments.
:param when:
The phase in which the function is called.
:param reraise:
Exception or exceptions that shall propagate if raised by the
function, instead of being wrapped in the CallInfo.
"""
excinfo = None
start = timing.time()
precise_start = timing.perf_counter()
try:
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:338:
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
/usr/lib/python3.8/site-packages/_pytest/runner.py:259:
self = <_HookCaller 'pytest_runtest_call'>, args = (), kwargs = {'item': }, argname = 'item', firstresult = False
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
# This is written to avoid expensive operations when not needed.
if self.spec:
for argname in self.spec.argnames:
if argname not in kwargs:
notincall = tuple(set(self.spec.argnames) - kwargs.keys())
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call".format(notincall),
stacklevel=2,
)
break
firstresult = self.spec.opts.get("firstresult")
else:
firstresult = False
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
/usr/lib/python3.8/site-packages/pluggy/_hooks.py:265:
self = <_pytest.config.PytestPluginManager object at 0x7fa995f9cbb0>, hook_name = 'pytest_runtest_call'
methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.8/site-packages/_pytest/runner...in=<module '_pytest.unraisableexception' from '/usr/lib/python3.8/site-packages/_pytest/unraisableexception.py'>>, ...]
kwargs = {'item': }, firstresult = False
def _hookexec(self, hook_name, methods, kwargs, firstresult):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
/usr/lib/python3.8/site-packages/pluggy/_manager.py:80:
hook_name = 'pytest_runtest_call'
hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.8/site-packages/_pytest/runner...in=<module '_pytest.unraisableexception' from '/usr/lib/python3.8/site-packages/_pytest/unraisableexception.py'>>, ...]
caller_kwargs = {'item': }, firstresult = False
def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):
"""Execute a call into multiple python functions/methods and return the
result(s).
``caller_kwargs`` comes from _HookCaller.__call__().
"""
__tracebackhide__ = True
results = []
excinfo = None
try: # run impl and wrapper setup functions in a loop
teardowns = []
try:
for hook_impl in reversed(hook_impls):
try:
args = [caller_kwargs[argname] for argname in hook_impl.argnames]
except KeyError:
for argname in hook_impl.argnames:
if argname not in caller_kwargs:
raise HookCallError(
f"hook call must provide argument {argname!r}"
)
if hook_impl.hookwrapper:
try:
gen = hook_impl.function(*args)
next(gen) # first yield
teardowns.append(gen)
except StopIteration:
_raise_wrapfail(gen, "did not yield")
else:
res = hook_impl.function(*args)
if res is not None:
results.append(res)
if firstresult: # halt further impl calls
break
except BaseException:
excinfo = sys.exc_info()
finally:
if firstresult: # first result hooks return a single value
outcome = _Result(results[0] if results else None, excinfo)
else:
outcome = _Result(results, excinfo)
# run all wrapper post-yield blocks
for gen in reversed(teardowns):
try:
gen.send(outcome)
_raise_wrapfail(gen, "has second yield")
except StopIteration:
pass
return outcome.get_result()
/usr/lib/python3.8/site-packages/pluggy/_callers.py:60:
self = <pluggy._result._Result object at 0x7fa9938127c0>
def get_result(self):
"""Get the result(s) for this hook call.
If the hook was marked as a ``firstresult`` only a single value
will be returned otherwise a list of results.
"""
__tracebackhide__ = True
if self._excinfo is None:
return self._result
else:
ex = self._excinfo
raise ex[1].with_traceback(ex[2])
/usr/lib/python3.8/site-packages/pluggy/_result.py:60:
hook_name = 'pytest_runtest_call'
hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/lib/python3.8/site-packages/_pytest/runner...in=<module '_pytest.unraisableexception' from '/usr/lib/python3.8/site-packages/_pytest/unraisableexception.py'>>, ...]
caller_kwargs = {'item': }, firstresult = False
def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):
"""Execute a call into multiple python functions/methods and return the
result(s).
``caller_kwargs`` comes from _HookCaller.__call__().
"""
__tracebackhide__ = True
results = []
excinfo = None
try: # run impl and wrapper setup functions in a loop
teardowns = []
try:
for hook_impl in reversed(hook_impls):
try:
args = [caller_kwargs[argname] for argname in hook_impl.argnames]
except KeyError:
for argname in hook_impl.argnames:
if argname not in caller_kwargs:
raise HookCallError(
f"hook call must provide argument {argname!r}"
)
if hook_impl.hookwrapper:
try:
gen = hook_impl.function(*args)
next(gen) # first yield
teardowns.append(gen)
except StopIteration:
_raise_wrapfail(gen, "did not yield")
else:
res = hook_impl.function(*args)
/usr/lib/python3.8/site-packages/pluggy/_callers.py:39:
item =
def pytest_runtest_call(item: Item) -> None:
_update_current_test_var(item, "call")
try:
del sys.last_type
del sys.last_value
del sys.last_traceback
except AttributeError:
pass
try:
item.runtest()
except Exception as e:
# Store trace info to allow postmortem debugging
sys.last_type = type(e)
sys.last_value = e
assert e.__traceback__ is not None
# Skip *this* frame
sys.last_traceback = e.__traceback__.tb_next
/usr/lib/python3.8/site-packages/_pytest/runner.py:174:
item =
def pytest_runtest_call(item: Item) -> None:
_update_current_test_var(item, "call")
try:
del sys.last_type
del sys.last_value
del sys.last_traceback
except AttributeError:
pass
try:
/usr/lib/python3.8/site-packages/_pytest/runner.py:166:
self =
def runtest(self):
desc = self.get_long_description()
method_name = f"run_{re.sub('[-/]', '_', desc.content_type)}"
getattr(self, method_name)(desc)
E AttributeError: 'CheckdocsItem' object has no attribute 'run_text_x_rst; charset=UTF_8'
/usr/lib/python3.8/site-packages/pytest_checkdocs/init.py:42: AttributeError
---------- coverage: platform linux, python 3.8.13-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing
src/ini2toml/init.py 5 0 0 0 100%
src/ini2toml/base_translator.py 61 0 18 1 99% 137->136
src/ini2toml/cli.py 109 5 45 1 96% 89-98, 202
src/ini2toml/drivers/init.py 0 0 0 0 100%
src/ini2toml/drivers/configparser.py 19 0 6 0 100%
src/ini2toml/drivers/configupdater.py 42 0 18 0 100%
src/ini2toml/drivers/full_toml.py 185 9 97 8 93% 159, 203, 220->exit, 221->223, 228-229, 231->195, 257-260, 265
src/ini2toml/drivers/lite_toml.py 8 0 0 0 100%
src/ini2toml/drivers/plain_builtins.py 44 3 18 3 90% 64, 67-68, 71->58
src/ini2toml/errors.py 33 10 12 2 73% 31-34, 41, 48-49, 54, 61-62
src/ini2toml/intermediate_repr.py 160 3 74 3 97% 214-215, 239->exit, 259->261, 288
src/ini2toml/plugins/init.py 27 1 14 2 93% 35, 85->88
src/ini2toml/plugins/best_effort.py 42 1 16 1 97% 60
src/ini2toml/plugins/coverage.py 30 0 12 0 100%
src/ini2toml/plugins/isort.py 34 0 12 0 100%
src/ini2toml/plugins/mypy.py 53 2 24 3 94% 43, 73, 74->exit
src/ini2toml/plugins/profile_independent_tasks.py 29 0 4 0 100%
src/ini2toml/plugins/pytest.py 33 0 16 0 100%
src/ini2toml/plugins/setuptools_pep621.py 392 7 195 7 98% 276, 310, 546, 738, 748-749, 755, 783->781, 789->794, 797->783
src/ini2toml/profile.py 30 0 6 0 100%
src/ini2toml/transformations.py 128 4 48 3 95% 155, 228, 368, 376
src/ini2toml/translator.py 17 0 2 0 100%
src/ini2toml/types.py 36 0 8 0 100%
TOTAL 1517 45 645 34 96%
========================================================================= short test summary info ==========================================================================
ERROR tests/test_examples.py::test_examples_api[tests/examples/django/setup.cfg-tests/examples/django/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or dire...
ERROR tests/test_examples.py::test_examples_api[tests/examples/flask/setup.cfg-tests/examples/flask/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or direct...
ERROR tests/test_examples.py::test_examples_api[tests/examples/pandas/setup.cfg-tests/examples/pandas/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or dire...
ERROR tests/test_examples.py::test_examples_api[tests/examples/pluggy/setup.cfg-tests/examples/pluggy/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or dire...
ERROR tests/test_examples.py::test_examples_api[tests/examples/plumbum/setup.cfg-tests/examples/plumbum/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or di...
ERROR tests/test_examples.py::test_examples_api[tests/examples/pyscaffold/setup.cfg-tests/examples/pyscaffold/pyproject.toml] - FileNotFoundError: [Errno 2] No such file...
ERROR tests/test_examples.py::test_examples_api[tests/examples/setuptools_docs/setup.cfg-tests/examples/setuptools_docs/pyproject.toml] - FileNotFoundError: [Errno 2] No...
ERROR tests/test_examples.py::test_examples_api[tests/examples/setuptools_scm/setup.cfg-tests/examples/setuptools_scm/pyproject.toml] - FileNotFoundError: [Errno 2] No s...
ERROR tests/test_examples.py::test_examples_api[tests/examples/virtualenv/setup.cfg-tests/examples/virtualenv/pyproject.toml] - FileNotFoundError: [Errno 2] No such file...
ERROR tests/test_examples.py::test_examples_api[tests/examples/zipp/setup.cfg-tests/examples/zipp/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or director...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/django/setup.cfg-tests/examples/django/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/flask/setup.cfg-tests/examples/flask/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or d...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/pandas/setup.cfg-tests/examples/pandas/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/pluggy/setup.cfg-tests/examples/pluggy/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/plumbum/setup.cfg-tests/examples/plumbum/pyproject.toml] - FileNotFoundError: [Errno 2] No such file ...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/pyscaffold/setup.cfg-tests/examples/pyscaffold/pyproject.toml] - FileNotFoundError: [Errno 2] No such...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/setuptools_docs/setup.cfg-tests/examples/setuptools_docs/pyproject.toml] - FileNotFoundError: [Errno ...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/setuptools_scm/setup.cfg-tests/examples/setuptools_scm/pyproject.toml] - FileNotFoundError: [Errno 2]...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/virtualenv/setup.cfg-tests/examples/virtualenv/pyproject.toml] - FileNotFoundError: [Errno 2] No such...
ERROR tests/test_examples.py::test_examples_api_lite[tests/examples/zipp/setup.cfg-tests/examples/zipp/pyproject.toml] - FileNotFoundError: [Errno 2] No such file or dir...
FAILED tests/test_cli.py::test_auto_formatting - SystemExit: 2
FAILED ::project - AttributeError: 'CheckdocsItem' object has no attribute 'run_text_x_rst; charset=UTF_8'
================================================================= 2 failed, 65 passed, 20 errors in 14.29s =================================================================