You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using 'installer` module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinxcontrib-autoprogram-0.1.8-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinxcontrib-autoprogram-0.1.8-3.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra -m 'not network' sphinxcontrib/autoprogram.py==================================================================================== test session starts ====================================================================================platform linux -- Python 3.8.17, pytest-7.4.0, pluggy-1.2.0rootdir: /home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8collected 8 itemssphinxcontrib/autoprogram.py EEEEEEEE [100%]========================================================================================== ERRORS ===========================================================================================__________________________________________________________________ ERROR at setup of ScannerTestCase.test_argument_groups ___________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError______________________________________________________________________ ERROR at setup of ScannerTestCase.test_choices _______________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError____________________________________________________________________ ERROR at setup of ScannerTestCase.test_parse_epilog ____________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError___________________________________________________________________ ERROR at setup of ScannerTestCase.test_simple_parser ____________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError____________________________________________________________________ ERROR at setup of ScannerTestCase.test_subcommands _____________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError_______________________________________________________________ ERROR at setup of AutoprogramDirectiveTestCase.test_make_rst ________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError_____________________________________________________________________ ERROR at setup of UtilTestCase.test_import_object _____________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError______________________________________________________________________ ERROR at setup of test_case.test_import_object _______________________________________________________________________app = <module 'autoprogram' from '/home/tkloczko/rpmbuild/BUILD/autoprogram-0.1.8/sphinxcontrib/autoprogram.py'> def setup(app) -> Dict[str, bool]:
> app.add_directive("autoprogram", AutoprogramDirective)E AttributeError: module 'autoprogram' has no attribute 'add_directive'sphinxcontrib/autoprogram.py:338: AttributeError================================================================================== short test summary info ==================================================================================ERROR sphinxcontrib/autoprogram.py::ScannerTestCase::test_argument_groups - AttributeError: module 'autoprogram' has no attribute 'add_directive'ERROR sphinxcontrib/autoprogram.py::ScannerTestCase::test_choices - AttributeError: module 'autoprogram' has no attribute 'add_directive'ERROR sphinxcontrib/autoprogram.py::ScannerTestCase::test_parse_epilog - AttributeError: module 'autoprogram' has no attribute 'add_directive'ERROR sphinxcontrib/autoprogram.py::ScannerTestCase::test_simple_parser - AttributeError: module 'autoprogram' has no attribute 'add_directive'ERROR sphinxcontrib/autoprogram.py::ScannerTestCase::test_subcommands - AttributeError: module 'autoprogram' has no attribute 'add_directive'ERROR sphinxcontrib/autoprogram.py::AutoprogramDirectiveTestCase::test_make_rst - AttributeError: module 'autoprogram' has no attribute 'add_directive'ERROR sphinxcontrib/autoprogram.py::UtilTestCase::test_import_object - AttributeError: module 'autoprogram' has no attribute 'add_directive'ERROR sphinxcontrib/autoprogram.py::test_case::test_import_object - AttributeError: module 'autoprogram' has no attribute 'add_directive'===================================================================================== 8 errors in 0.31s =====================================================================================
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
The text was updated successfully, but these errors were encountered: