prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add version string to st2tests to make it installable
  Prior to this change, this will fail:
  
      cd st2tests/st2tests
      pip install .
  
  After this change that command successfully installs the `st2tests` package. This will also work for installing via GitHub as in:
  
      pip install -e git+https://github.com/StackStorm/st2.git@v3.2.0#egg=st2tests&subdirectory=st2tests
  
  The original request in #2574 is to get st2tests onto PyPI, and I'm not sure if this will accomplish that request, but this is a good first step.
  
  </issue>
  <code>
  [start of st2tests/st2tests/__init__.py]
  1 # Copyright 2020 The StackStorm Authors.
  2 # Copyright 2019 Extreme Networks, Inc.
  3 #
  4 # Licensed under the Apache License, Version 2.0 (the "License");
  5 # you may not use this file except in compliance with the License.
  6 # You may obtain a copy of the License at
  7 #
  8 #     http://www.apache.org/licenses/LICENSE-2.0
  9 #
  10 # Unless required by applicable law or agreed to in writing, software
  11 # distributed under the License is distributed on an "AS IS" BASIS,
  12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 # See the License for the specific language governing permissions and
  14 # limitations under the License.
  15 
  16 from __future__ import absolute_import
  17 
  18 from st2tests.base import EventletTestCase
  19 from st2tests.base import DbTestCase
  20 from st2tests.base import ExecutionDbTestCase
  21 from st2tests.base import DbModelTestCase
  22 from st2tests.base import WorkflowTestCase
  23 
  24 
  25 __all__ = [
  26     'EventletTestCase',
  27     'DbTestCase',
  28     'ExecutionDbTestCase',
  29     'DbModelTestCase',
  30     'WorkflowTestCase'
  31 ]
  32
  [end of st2tests/st2tests/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/st2tests/st2tests/__init__.py b/st2tests/st2tests/__init__.py
  --- a/st2tests/st2tests/__init__.py
  +++ b/st2tests/st2tests/__init__.py
  @@ -29,3 +29,5 @@
       'DbModelTestCase',
       'WorkflowTestCase'
   ]
  +
  +__version__ = '3.3dev'
  
verification_info: {"golden_diff": "diff --git a/st2tests/st2tests/__init__.py b/st2tests/st2tests/__init__.py\n--- a/st2tests/st2tests/__init__.py\n+++ b/st2tests/st2tests/__init__.py\n@@ -29,3 +29,5 @@\n     'DbModelTestCase',\n     'WorkflowTestCase'\n ]\n+\n+__version__ = '3.3dev'\n", "issue": "Add version string to st2tests to make it installable\nPrior to this change, this will fail:\r\n\r\n    cd st2tests/st2tests\r\n    pip install .\r\n\r\nAfter this change that command successfully installs the `st2tests` package. This will also work for installing via GitHub as in:\r\n\r\n    pip install -e git+https://github.com/StackStorm/st2.git@v3.2.0#egg=st2tests&subdirectory=st2tests\r\n\r\nThe original request in #2574 is to get st2tests onto PyPI, and I'm not sure if this will accomplish that request, but this is a good first step.\n", "before_files": [{"content": "# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom __future__ import absolute_import\n\nfrom st2tests.base import EventletTestCase\nfrom st2tests.base import DbTestCase\nfrom st2tests.base import ExecutionDbTestCase\nfrom st2tests.base import DbModelTestCase\nfrom st2tests.base import WorkflowTestCase\n\n\n__all__ = [\n    'EventletTestCase',\n    'DbTestCase',\n    'ExecutionDbTestCase',\n    'DbModelTestCase',\n    'WorkflowTestCase'\n]\n", "path": "st2tests/st2tests/__init__.py"}]}