Dear Maintainer,

Please find attached a patch to fix this issue and the next one:

...
Running Sphinx v7.2.6
making output directory... done
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due 
to <class 'requests.exceptions.ProxyError'>: 
HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded
with url: /3/objects.inv (Caused by ProxyError('Cannot connect to proxy.', 
NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7fbc8d5dfc50>: Failed to establish a new connection:
[Errno 111] Connection refused')))
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 26 source files that are out of date
updating environment: [new config] 26 added, 0 changed, 0 removed
reading sources... [100%] usecase_flask
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [100%] usecase_flask
generating indices... genindex done
writing additional pages... search done
copying images... [100%] _static/behave_logo1.png
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 1 warning.

The HTML pages are in ../.pybuild/docs/html.
rm -rf /build/behave-1.2.6/.pybuild/docs/html/.doctrees
make[1]: Leaving directory '/build/behave-1.2.6'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:310: cd 
/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build; python3.12 -m pytest 
tests
==================================================================== test 
session starts 
====================================================================
platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
rootdir: /build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build
configfile: pytest.ini
collected 208 items / 1 error                                                   
                                                                            

========================================================================== 
ERRORS 
===========================================================================
_____________________________________________ ERROR collecting 
tests/unit/test_behave4cmd_command_shell_proc.py 
_____________________________________________
ImportError while importing test module 
'/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/test_behave4cmd_command_shell_proc.py:16: in <module>
    from behave4cmd0.command_shell_proc import \
E   ModuleNotFoundError: No module named 'behave4cmd0'
===================================================================== warnings 
summary ======================================================================
behave/matchers.py:267
  
/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build/behave/matchers.py:267: 
SyntaxWarning: invalid escape sequence '\d'
    """Registers a custom type that will be available to "parse"

behave/formatter/ansi_escapes.py:57
  
/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build/behave/formatter/ansi_escapes.py:57:
 SyntaxWarning: invalid escape sequence '\['
    _ANSI_ESCAPE_PATTERN = re.compile(u"\x1b\[\d+[mA]", re.UNICODE)

tests/unit/test_behave4cmd_command_shell_proc.py:2
  
/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:2:
 SyntaxWarning: invalid escape sequence '\.'
    """

tests/unit/test_behave4cmd_command_shell_proc.py:26
  
/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:26:
 SyntaxWarning: invalid escape sequence '\w'
    winpath_pattern = 
u"^([A-Za-z]:(\\[\w\.\-]+)+)|((\\[\w\.\-]+)*)|(\s[\w\.\-]+([\w\.\-]+)*)$"

tests/unit/test_behave4cmd_command_shell_proc.py:64
  
/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:64:
 SyntaxWarning: invalid escape sequence '\s'
    '^\s*File "(?P<path>.*)", line \d+, in ',

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================== short test 
summary info ==================================================================
ERROR tests/unit/test_behave4cmd_command_shell_proc.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error 
during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================== 5 warnings, 1 
error in 0.25s ================================================================
E: pybuild pybuild:395: test: plugin distutils failed with: exit code=2: cd 
/build/behave-1.2.6/.pybuild/cpython3_3.12_behave/build; python3.12 -m pytest 
tests
I: pybuild base:310: cd 
/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build; python3.11 -m pytest 
tests
==================================================================== test 
session starts 
====================================================================
platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
rootdir: /build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build
configfile: pytest.ini
collected 208 items / 1 error                                                   
                                                                            

========================================================================== 
ERRORS 
===========================================================================
_____________________________________________ ERROR collecting 
tests/unit/test_behave4cmd_command_shell_proc.py 
_____________________________________________
ImportError while importing test module 
'/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/test_behave4cmd_command_shell_proc.py:16: in <module>
    from behave4cmd0.command_shell_proc import \
E   ModuleNotFoundError: No module named 'behave4cmd0'
===================================================================== warnings 
summary ======================================================================
behave/matchers.py:267
  
/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build/behave/matchers.py:267: 
DeprecationWarning: invalid escape sequence '\d'
    """Registers a custom type that will be available to "parse"

behave/formatter/ansi_escapes.py:57
  
/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build/behave/formatter/ansi_escapes.py:57:
 DeprecationWarning: invalid escape sequence '\['
    _ANSI_ESCAPE_PATTERN = re.compile(u"\x1b\[\d+[mA]", re.UNICODE)

tests/unit/test_behave4cmd_command_shell_proc.py:2
  
/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:2:
 DeprecationWarning: invalid escape sequence '\.'
    """

tests/unit/test_behave4cmd_command_shell_proc.py:26
  
/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:26:
 DeprecationWarning: invalid escape sequence '\w'
    winpath_pattern = 
u"^([A-Za-z]:(\\[\w\.\-]+)+)|((\\[\w\.\-]+)*)|(\s[\w\.\-]+([\w\.\-]+)*)$"

tests/unit/test_behave4cmd_command_shell_proc.py:64
  
/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build/tests/unit/test_behave4cmd_command_shell_proc.py:64:
 DeprecationWarning: invalid escape sequence '\s'
    '^\s*File "(?P<path>.*)", line \d+, in ',

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================== short test 
summary info ==================================================================
ERROR tests/unit/test_behave4cmd_command_shell_proc.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error 
during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================== 5 warnings, 1 
error in 0.23s ================================================================
E: pybuild pybuild:395: test: plugin distutils failed with: exit code=2: cd 
/build/behave-1.2.6/.pybuild/cpython3_3.11_behave/build; python3.11 -m pytest 
tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
3.11" returned exit code 13
make: *** [debian/rules:5: build] Error 13
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


python3-doc needs to be added to B-D.
After applying these changes, I was able to build your package in a
sid chroot environment.


Kind Regards
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -44,15 +44,15 @@
 
 
 extlinks = { 
-    "pypi": ("https://pypi.python.org/pypi/%s";, ""),
-    "github": ("https://github.com/%s";, "github:/"),
-    "issue":  ("https://github.com/behave/behave/issue/%s";, "issue #"),
-    "youtube": ("https://www.youtube.com/watch?v=%s";, "youtube:video="),
-    "behave": ("https://github.com/behave/behave";, None),
+    "pypi": ("https://pypi.python.org/pypi/%s";, None),
+    "github": ("https://github.com/%s";, "github:/%s"),
+    "issue":  ("https://github.com/behave/behave/issue/%s";, "issue #%s"),
+    "youtube": ("https://www.youtube.com/watch?v=%s";, "youtube:video=%s"),
+    "behave": ("https://github.com/behave/behave";, None)
 }
 
 intersphinx_mapping = { 
-    "python": ('https://docs.python.org/3', None)
+    "python": ('/usr/share/doc/python3-doc/html', None)
 }
 
 # -- SUPPORT: Documentation variation-points with sphinx.ext.ifconfig

Reply via email to