-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
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
buildwith--no-isolationI'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-sphinx-autodoc2-0.4.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc2-0.4.2-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.17, pytest-7.3.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx-autodoc2-0.4.2
configfile: pyproject.toml
testpaths: tests
plugins: datadir-1.4.1, regressions-2.4.2
collected 44 items
tests/test_analyse_module.py .................................... [ 81%]
tests/test_database.py . [ 84%]
tests/test_render.py ....... [100%]
===================================================================================== warnings summary ======================================================================================
tests/test_analyse_module.py: 38 warnings
tests/test_database.py: 5 warnings
tests/test_render.py: 21 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc2-0.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages/autodoc2/analysis.py:116: DeprecationWarning: The 'Module.doc' attribute is deprecated, use 'Module.doc_node' instead.
"doc": fix_docstring_indent(node.doc),
tests/test_analyse_module.py: 18 warnings
tests/test_render.py: 21 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc2-0.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages/autodoc2/astroid_utils.py:449: DeprecationWarning: The 'FunctionDef.doc' attribute is deprecated, use 'FunctionDef.doc_node' instead.
doc = node.doc
tests/test_analyse_module.py: 16 warnings
tests/test_render.py: 14 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc2-0.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages/autodoc2/astroid_utils.py:391: DeprecationWarning: The 'ClassDef.doc' attribute is deprecated, use 'ClassDef.doc_node' instead.
doc = node.doc
tests/test_analyse_module.py::test_basic[class_inherited]
tests/test_analyse_module.py::test_basic[class_inherited_with_docstring]
/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc2-0.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages/autodoc2/astroid_utils.py:401: DeprecationWarning: The 'ClassDef.doc' attribute is deprecated, use 'ClassDef.doc_node' instead.
if base.doc is not None:
tests/test_analyse_module.py::test_basic[class_inherited_with_docstring]
/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-autodoc2-0.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages/autodoc2/astroid_utils.py:402: DeprecationWarning: The 'ClassDef.doc' attribute is deprecated, use 'ClassDef.doc_node' instead.
return str(base.doc), base.qname()
tests/test_render.py::test_sphinx_build[with_rebuild]
tests/test_render.py::test_sphinx_build[with_rebuild]
/usr/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py:26: RemovedInSphinx80Warning: The alias 'sphinx.util.progress_message' is deprecated, use 'sphinx.http_date.epoch_to_rfc1123' instead. Check CHANGES for Sphinx API modifications.
from sphinx.util import progress_message
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================= 44 passed, 138 warnings in 2.70s ==============================================================================Here is list of installed modules in build env
Package Version
----------------------------- -------
alabaster 0.7.13
astroid 2.15.4
asttokens 2.2.1
Babel 2.12.1
backcall 0.2.0
build 0.10.0
charset-normalizer 3.1.0
decorator 5.1.1
distro 1.8.0
docutils 0.19
exceptiongroup 1.1.1
executing 1.2.0
gpg 1.20.0
idna 3.4
imagesize 1.4.1
importlib-metadata 6.6.0
iniconfig 2.0.0
installer 0.7.0
ipython 8.12.0
jedi 0.18.2
Jinja2 3.1.2
lazy-object-proxy 1.9.0
libcomps 0.1.19
markdown-it-py 3.0.0
MarkupSafe 2.1.2
matplotlib-inline 0.1.6
mdit-py-plugins 0.4.0
mdurl 0.1.2
myst-parser 1.0.0
packaging 23.1
parso 0.8.3
pexpect 4.8.0
pickleshare 0.7.5
pluggy 1.0.0
prompt-toolkit 3.0.38
ptyprocess 0.7.0
pure-eval 0.2.2
Pygments 2.15.1
pyproject_hooks 1.0.0
pytest 7.3.1
pytest-datadir 1.4.1
pytest-regressions 2.4.2
python-dateutil 2.8.2
pytz 2023.2
PyYAML 6.0
requests 2.31.0
setuptools 67.7.2
six 1.16.0
snowballstemmer 2.2.0
Sphinx 6.2.1
sphinxcontrib-applehelp 1.0.4
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.5
stack-data 0.6.2
tomli 2.0.1
traitlets 5.9.0
typing_extensions 4.5.0
urllib3 1.26.15
wcwidth 0.2.6
wheel 0.40.0
wrapt 1.14.1
zipp 3.15.0Metadata
Metadata
Assignees
Labels
No labels