[Debian-med-packaging] Bug#1086958: python-ruffus: Python SyntaxWarning

Graham Inggs ginggs at debian.org
Thu Nov 7 15:19:14 GMT 2024


Source: python-ruffus
Version: 2.8.4-5
User: debian-python at lists.debian.org
Usertags: syntaxwarning

Hi Maintainer

The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].

Regards
Graham


[1] https://piuparts.debian.org/sid/source/p/python-ruffus.html


  Setting up python3-ruffus (2.8.4-5) ...
  /usr/lib/python3/dist-packages/ruffus/cmdline.py:668: SyntaxWarning:
invalid escape sequence '\d'
    """
  /usr/lib/python3/dist-packages/ruffus/combinatorics.py:26:
SyntaxWarning: invalid escape sequence '\.'
    """
  /usr/lib/python3/dist-packages/ruffus/parse_old_style_ruffus.py:178:
SyntaxWarning: invalid escape sequence '\s'
    func_re = re.compile("^\s*def.*\(")
  /usr/lib/python3/dist-packages/ruffus/parse_old_style_ruffus.py:195:
SyntaxWarning: invalid escape sequence '\s'
    decorator_re = re.compile("^\s*@")
  /usr/lib/python3/dist-packages/ruffus/parse_old_style_ruffus.py:196:
SyntaxWarning: invalid escape sequence '\s'
    no_white_space_re = re.compile("^[^#\s]")
  /usr/lib/python3/dist-packages/ruffus/proxy_logger.py:26:
SyntaxWarning: invalid escape sequence '\ '
    """
  /usr/lib/python3/dist-packages/ruffus/proxy_logger.py:323:
SyntaxWarning: invalid escape sequence '\ '
    """
  /usr/lib/python3/dist-packages/ruffus/ruffus_utility.py:502:
SyntaxWarning: invalid escape sequence '\d'
    """
  /usr/lib/python3/dist-packages/ruffus/test/draw_specified_dependency_tree.py:112:
SyntaxWarning: invalid escape sequence '\['
    attributes = re.compile("\[.+\]")
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:388:
SyntaxWarning: invalid escape sequence '\['
    '\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:391:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.e_name.h_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue(), re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:463:
SyntaxWarning: invalid escape sequence '\['
    '\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:465:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue(), re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:489:
SyntaxWarning: invalid escape sequence '\['
    '\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:492:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.c_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:516:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:518:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.tmp2\]'.format(tempdir=tempdir), s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:541:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:544:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.c_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:568:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:570:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.tmp2\]'.format(tempdir=tempdir), s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:593:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_combinatorics.py:596:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.c_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_file_name_parameters.py:800:
SyntaxWarning: invalid escape sequence '\w'
    task.formatter("/(?P<name>\w+).test$"),
  /usr/lib/python3/dist-packages/ruffus/test/test_file_name_parameters.py:1592:
SyntaxWarning: invalid escape sequence '\w'
    task.formatter("(?:.+/)?(?P<ID>\w+)\.(.+)"),
  /usr/lib/python3/dist-packages/ruffus/test/test_file_name_parameters.py:1594:
SyntaxWarning: invalid escape sequence '\w'
    task.formatter("(?:.+/)?(?P<ID>\w+)\.(test2)"),
  /usr/lib/python3/dist-packages/ruffus/test/test_file_name_parameters.py:1633:
SyntaxWarning: invalid escape sequence '\w'
    paths = self.do_task_product([tempdir + "/a.test1", tempdir +
"/b.test1"],
task.formatter("(?:.+/)?(?P<ID>\w+)\.(.+)"),
  /usr/lib/python3/dist-packages/ruffus/test/test_file_name_parameters.py:1635:
SyntaxWarning: invalid escape sequence '\w'
    "/e.ignore"], task.formatter("(?:.+/)?(?P<ID>\w+)\.(test2)"),
  /usr/lib/python3/dist-packages/ruffus/test/test_file_name_parameters.py:1652:
SyntaxWarning: invalid escape sequence '\w'
    paths = self.do_task_product([tempdir + "/a.test1", tempdir +
"/b.test1"],
task.formatter("(?:.+/)?(?P<ID>\w+)\.(.+)"),
  /usr/lib/python3/dist-packages/ruffus/test/test_file_name_parameters.py:1654:
SyntaxWarning: invalid escape sequence '\w'
    "/e.ignore"], task.formatter("(?:.+/)?(?P<ID>\w+)\.(test2)"),
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:400:
SyntaxWarning: invalid escape sequence '\['
    '\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:403:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.e_name.h_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue(), re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:474:
SyntaxWarning: invalid escape sequence '\['
    '\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:476:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue(), re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:500:
SyntaxWarning: invalid escape sequence '\['
    '\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:503:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.c_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:527:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:529:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.tmp2\]'.format(tempdir=tempdir), s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:552:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:555:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.c_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:579:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:581:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.tmp2\]'.format(tempdir=tempdir), s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:604:
SyntaxWarning: invalid escape sequence '\['
    self.assertTrue(re.search('\[.*{tempdir}/a_name.tmp1, '
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_combinatorics.py:607:
SyntaxWarning: invalid escape sequence '\]'
    '.*{tempdir}/a_name.b_name.c_name.tmp2\]'.format(tempdir=tempdir),
s.getvalue()))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:310:
SyntaxWarning: invalid escape sequence '\['
    'Missing files.*\[{tempdir}/a_name.tmp1,
{tempdir}/a_name.tmp2'.format(tempdir=tempdir), s.getvalue(),
re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:352:
SyntaxWarning: invalid escape sequence '\['
    'Missing files.*\[{tempdir}/a_name.tmp1,
{tempdir}/a_name.tmp2'.format(tempdir=tempdir), s.getvalue(),
re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:370:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:375:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:409:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:414:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:426:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:431:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:444:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_newstyle_regex_error_messages.py:449:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:302:
SyntaxWarning: invalid escape sequence '\['
    'Missing files.*\[{tempdir}a_name.tmp1,
{tempdir}a_name.tmp2'.format(tempdir=tempdir), s.getvalue(),
re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:344:
SyntaxWarning: invalid escape sequence '\['
    'Missing files.*\[{tempdir}a_name.tmp1,
{tempdir}a_name.tmp2'.format(tempdir=tempdir), s.getvalue(),
re.DOTALL))
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:362:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:367:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:401:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:406:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:418:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:423:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*unknown group name",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:436:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_regex_error_messages.py:441:
SyntaxWarning: invalid escape sequence '\('
    "File '.*?' does not match regex\('.*?'\) and pattern
'.*?':\n.*invalid group reference",
  /usr/lib/python3/dist-packages/ruffus/test/test_ruffus_utility.py:511:
SyntaxWarning: invalid escape sequence '\.'
    regex_str = "([a-z]+)\.([a-z]+)\.([a-z]+)\.([a-z]+)"



More information about the Debian-med-packaging mailing list