Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2837

mender-docs: autoversion.py not working on Python 3.7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      0

      Description

      It works fine on Python 3.5. However, you get the following output for Python 3.7:

      python3 autoversion.py --check
      Traceback (most recent call last):
        File "autoversion.py", line 324, in <module>
          main()
        File "autoversion.py", line 321, in main
          walk_tree()
        File "autoversion.py", line 67, in walk_tree
          process_file(os.path.join(dirpath, file))
        File "autoversion.py", line 132, in process_file
          process_line(line, replacements, new)
        File "autoversion.py", line 231, in process_line
          sep, all_removed, sep))
      Exception: ./README-autoversion.markdown:48: Found version-looking string "2.2.0" in documentation line, not covered by any AUTOVERSION expression. Original line:
      
      -------------------------------------------------------------------------------
      Joe User uses mender-artifact version 2.2.0, and likes it!
      -------------------------------------------------------------------------------
      
      AUTOVERSION expressions in effect:
      "mender-artifact version %"/ignore
      
      Line after removing all AUTOVERSION matched sections:
      
      -------------------------------------------------------------------------------
      Joe User uses mender-artifact version 2.2.0, and likes it!
      -------------------------------------------------------------------------------
      
      See README-autoversion.markdown for more information.
      
      

        Attachments

          Activity

            People

            • Assignee:
              alfrunes Alf-Rune Siqveland
              Reporter:
              lluis Lluís Campos
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel