Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      TVB release 2.0
    • TVB-C Task:
      8.2 Pipeline Integration

      Description

      Perform python 2 to 3 migration

      Because of the large number of files to be modified, I want to approach this task in an automatic way.

      From my searches I found that there are more tools to perform this action. I chose 2to3-script for this task and I tested it on a test file.
      Steps:

      1. Open console for an environment
      2. Use a command like this: C:\Users\gabriel.florea\AppData\Local\Continuum\anaconda3\envs\tvb-run27\Scripts\2to3-script.py -w C:\Users\gabriel.florea\Desktop\MyWork\Trials\firstFile.py
        (first path is the location for script, -w to write changes into file, the last path is file)

      Questions:

      1. Maintain or not the compatibility with python 2?
      2. 2to3 can be applied on folders(i.e. more file with a single command)?

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              gabriel.florea Gabriel Alin Florea
              Reporter:
              gabriel.florea Gabriel Alin Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 weeks
                  2w
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 2 hours, 30 minutes Time Not Required
                  1w 2h 30m