code: def dist(ctx, devpi=False, egg=False, wheel=False, auto=True):
      
      config.load()
      cmd = ["python", "setup.py", "sdist"]
  
      # Automatically create wheels if possible
      if auto:
          egg = sys.version_info.major == 2
          try:
              import wheel as _
              wheel = True
          except ImportError:
              wheel = False
  
      if egg:
          cmd.append("bdist_egg")
      if wheel:
          cmd.append("bdist_wheel")
  
      ctx.run("invoke clean --all build --docs test check")
      ctx.run(' '.join(cmd))
      if devpi:
          ctx.run("devpi upload dist/*")
docs: Distribute the project.