prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  py.typed missing in pip install
  
  ### Versions
  
  - Python: 3.11
  - OS: macOS
  - Pymodbus: 3.2.0 (pip install)
  - Modbus Hardware (if used):
  
  ### Description
  
  running mypy on my project complains about missing 
  
  ```
  artisanlib/modbusport.py:68: error: Skipping analyzing "pymodbus.constants": module is installed, but missing library stubs or py.typed marker  [import]
  artisanlib/modbusport.py:69: error: Skipping analyzing "pymodbus.payload": module is installed, but missing library stubs or py.typed marker  [import]
  artisanlib/modbusport.py:241: error: Skipping analyzing "pymodbus.client": module is installed, but missing library stubs or py.typed marker  [import]
  artisanlib/modbusport.py:385: error: Skipping analyzing "pymodbus.pdu": module is installed, but missing library stubs or py.typed marker  [import]
  ```
  
  despite all your nice work on adding type annotations. The file py.typed id not get installed along via
  
  ```
  # sudo -H python3 -m pip install pymodbus --upgrade
  ```
  
  ```
  # cd /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymodbus
  # ls ./py.typed
  ls: ./py.typed: No such file or directory
  ```
  
  I added it as follows and the mypy errors went away.
  
  ```
  # cd /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymodbus
  # sudo touch py.typed
  ```
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python3
  2 """Installs pymodbus using setuptools."""
  3 
  4 
  5 # --------------------------------------------------------------------------- #
  6 # initialization
  7 # --------------------------------------------------------------------------- #
  8 from setuptools import setup
  9 
  10 
  11 dependencies = {}
  12 with open("requirements.txt") as reqs:
  13     option = None
  14     for line in reqs.read().split("\n"):
  15         if line == "":
  16             option = None
  17         elif line.startswith("# install:"):
  18             option = line.split(":")[1]
  19             dependencies[option] = []
  20         elif not line.startswith("#") and option:
  21             dependencies[option].append(line)
  22 
  23 install_req = dependencies["required"]
  24 del dependencies["required"]
  25 
  26 
  27 # --------------------------------------------------------------------------- #
  28 # configuration
  29 # --------------------------------------------------------------------------- #
  30 setup(
  31     install_requires=install_req,
  32     extras_require=dependencies,
  33 )
  34
  [end of setup.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/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -30,4 +30,5 @@
   setup(
       install_requires=install_req,
       extras_require=dependencies,
  +    package_data={"pymodbus": ["py.typed"]},
   )
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,4 +30,5 @@\n setup(\n     install_requires=install_req,\n     extras_require=dependencies,\n+    package_data={\"pymodbus\": [\"py.typed\"]},\n )\n", "issue": "py.typed missing in pip install\n\r\n### Versions\r\n\r\n- Python: 3.11\r\n- OS: macOS\r\n- Pymodbus: 3.2.0 (pip install)\r\n- Modbus Hardware (if used):\r\n\r\n### Description\r\n\r\nrunning mypy on my project complains about missing \r\n\r\n```\r\nartisanlib/modbusport.py:68: error: Skipping analyzing \"pymodbus.constants\": module is installed, but missing library stubs or py.typed marker  [import]\r\nartisanlib/modbusport.py:69: error: Skipping analyzing \"pymodbus.payload\": module is installed, but missing library stubs or py.typed marker  [import]\r\nartisanlib/modbusport.py:241: error: Skipping analyzing \"pymodbus.client\": module is installed, but missing library stubs or py.typed marker  [import]\r\nartisanlib/modbusport.py:385: error: Skipping analyzing \"pymodbus.pdu\": module is installed, but missing library stubs or py.typed marker  [import]\r\n```\r\n\r\ndespite all your nice work on adding type annotations. The file py.typed id not get installed along via\r\n\r\n```\r\n# sudo -H python3 -m pip install pymodbus --upgrade\r\n```\r\n\r\n```\r\n# cd /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymodbus\r\n# ls ./py.typed\r\nls: ./py.typed: No such file or directory\r\n```\r\n\r\nI added it as follows and the mypy errors went away.\r\n\r\n```\r\n# cd /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pymodbus\r\n# sudo touch py.typed\r\n```\n", "before_files": [{"content": "#!/usr/bin/env python3\n\"\"\"Installs pymodbus using setuptools.\"\"\"\n\n\n# --------------------------------------------------------------------------- #\n# initialization\n# --------------------------------------------------------------------------- #\nfrom setuptools import setup\n\n\ndependencies = {}\nwith open(\"requirements.txt\") as reqs:\n    option = None\n    for line in reqs.read().split(\"\\n\"):\n        if line == \"\":\n            option = None\n        elif line.startswith(\"# install:\"):\n            option = line.split(\":\")[1]\n            dependencies[option] = []\n        elif not line.startswith(\"#\") and option:\n            dependencies[option].append(line)\n\ninstall_req = dependencies[\"required\"]\ndel dependencies[\"required\"]\n\n\n# --------------------------------------------------------------------------- #\n# configuration\n# --------------------------------------------------------------------------- #\nsetup(\n    install_requires=install_req,\n    extras_require=dependencies,\n)\n", "path": "setup.py"}]}