prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Support httpcore>=0.16.0
  Hi,
  
  I have a project that uses `fastapi` and `uvicorn` which demands `h11>=0.8`. Latest version of `fastapi` changed their test suite from `requests` to `httpx`. So I had to add `httpx` to my tests requirements.
  
  Now the problem is, that `httpx` requires `httpcore`, which since version `0.16.0` allows for `h11==0.14.0`, but the current version of `httpcore` required by `httpx` doesn't, so I end up having to downgrade the `h11==0.14.0` which I have to `0.12.0`.
  
  Can the constraint for `httpcore` be updated to `>=0.16.0` here?
  
  </issue>
  <code>
  [start of setup.py]
  1 import sys
  2 
  3 from setuptools import setup
  4 
  5 sys.stderr.write(
  6     """
  7 ===============================
  8 Unsupported installation method
  9 ===============================
  10 httpx no longer supports installation with `python setup.py install`.
  11 Please use `python -m pip install .` instead.
  12 """
  13 )
  14 sys.exit(1)
  15 
  16 
  17 # The below code will never execute, however GitHub is particularly
  18 # picky about where it finds Python packaging metadata.
  19 # See: https://github.com/github/feedback/discussions/6456
  20 #
  21 # To be removed once GitHub catches up.
  22 
  23 setup(
  24     name="httpx",
  25     install_requires=[
  26         "certifi",
  27         "sniffio",
  28         "rfc3986[idna2008]>=1.3,<2",
  29         "httpcore>=0.15.0,<0.16.0",
  30     ],
  31 )
  32
  [end of setup.py]
  [start of httpx/__version__.py]
  1 __title__ = "httpx"
  2 __description__ = "A next generation HTTP client, for Python 3."
  3 __version__ = "0.23.0"
  4
  [end of httpx/__version__.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/httpx/__version__.py b/httpx/__version__.py
  --- a/httpx/__version__.py
  +++ b/httpx/__version__.py
  @@ -1,3 +1,3 @@
   __title__ = "httpx"
   __description__ = "A next generation HTTP client, for Python 3."
  -__version__ = "0.23.0"
  +__version__ = "0.23.1"
  diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -26,6 +26,6 @@
           "certifi",
           "sniffio",
           "rfc3986[idna2008]>=1.3,<2",
  -        "httpcore>=0.15.0,<0.16.0",
  +        "httpcore>=0.15.0,<0.17.0",
       ],
   )
  
verification_info: {"golden_diff": "diff --git a/httpx/__version__.py b/httpx/__version__.py\n--- a/httpx/__version__.py\n+++ b/httpx/__version__.py\n@@ -1,3 +1,3 @@\n __title__ = \"httpx\"\n __description__ = \"A next generation HTTP client, for Python 3.\"\n-__version__ = \"0.23.0\"\n+__version__ = \"0.23.1\"\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -26,6 +26,6 @@\n         \"certifi\",\n         \"sniffio\",\n         \"rfc3986[idna2008]>=1.3,<2\",\n-        \"httpcore>=0.15.0,<0.16.0\",\n+        \"httpcore>=0.15.0,<0.17.0\",\n     ],\n )\n", "issue": "Support httpcore>=0.16.0\nHi,\r\n\r\nI have a project that uses `fastapi` and `uvicorn` which demands `h11>=0.8`. Latest version of `fastapi` changed their test suite from `requests` to `httpx`. So I had to add `httpx` to my tests requirements.\r\n\r\nNow the problem is, that `httpx` requires `httpcore`, which since version `0.16.0` allows for `h11==0.14.0`, but the current version of `httpcore` required by `httpx` doesn't, so I end up having to downgrade the `h11==0.14.0` which I have to `0.12.0`.\r\n\r\nCan the constraint for `httpcore` be updated to `>=0.16.0` here?\n", "before_files": [{"content": "import sys\n\nfrom setuptools import setup\n\nsys.stderr.write(\n    \"\"\"\n===============================\nUnsupported installation method\n===============================\nhttpx no longer supports installation with `python setup.py install`.\nPlease use `python -m pip install .` instead.\n\"\"\"\n)\nsys.exit(1)\n\n\n# The below code will never execute, however GitHub is particularly\n# picky about where it finds Python packaging metadata.\n# See: https://github.com/github/feedback/discussions/6456\n#\n# To be removed once GitHub catches up.\n\nsetup(\n    name=\"httpx\",\n    install_requires=[\n        \"certifi\",\n        \"sniffio\",\n        \"rfc3986[idna2008]>=1.3,<2\",\n        \"httpcore>=0.15.0,<0.16.0\",\n    ],\n)\n", "path": "setup.py"}, {"content": "__title__ = \"httpx\"\n__description__ = \"A next generation HTTP client, for Python 3.\"\n__version__ = \"0.23.0\"\n", "path": "httpx/__version__.py"}]}