Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-17155

Remove __init__ files from generated templates

    Details

    • Type: Improvement
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: templates
    • Labels:
      None
    • Templates:
    • Story Points:
      0.9
    • Team:
      SQuaRE

      Description

      The template package currently creates __init__.py files that contain this boilerplate when generating a stack_package (and possibly other types of templates):

      # ... standard header...
      import pkgutil, lsstimport
      __path__ = pkgutil.extend_path(__path__, __name__)
      

      These files are completely unnecessary in Python 3 and add an unnecessary dependency on the base package. Please stop generating these files .

      Please also remove base and utils as dependencies in the ups table file. As far as I can see the former is only used for lsstimport (which we no longer need) and the latter is not used at all.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsick Jonathan Sick
                Reporter:
                rowen Russell Owen
                Reviewers:
                Russell Owen
                Watchers:
                Jonathan Sick, Russell Owen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel