prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Release SecureDrop 2.8.0
  This is a tracking issue for the release of SecureDrop 2.8.0
  
  Tentatively scheduled as follows:
  
  **Pre-release announcement:** 2023-03-05
  **Release date:** 2024-03-12
  
  **Release manager:** @zenmonkeykstop  
  **Deputy release manager:** @legoktm 
  **Localization manager:** @cfm
  **Communications manager:** @eloquence
  
  _SecureDrop maintainers and testers:_ As you QA 2.8.0, please report back your testing results as comments on this ticket. File GitHub issues for any problems found, tag them "QA: Release".
  
  Test debian packages will be posted on https://apt-test.freedom.press signed with [the test key](https://gist.githubusercontent.com/conorsch/ec4008b111bc3142fca522693f3cce7e/raw/2968621e8ad92db4505a31fcc5776422d7d26729/apt-test%2520apt%2520pubkey).
  
  # [QA Matrix for 2.8.0](https://docs.google.com/spreadsheets/d/1hcSrgbid03so0tQz3zfwvMaWJ8x7OOZsCfEz1I_PjAE/edit#gid=96348658)
  # [Test Plan for 2.8.0](https://github.com/freedomofpress/securedrop/wiki/2.8.0-Test-Plan)
  # [Tails-only test plan for 2.8.0-rc2](https://github.com/freedomofpress/securedrop/issues/7121#issuecomment-1988954749)
  (complete if you've already tested 2.8.0-rc1, there are no server changes in rc2)
  
  # Prepare release candidate (2.8.0~rc1)
  - [ ] Link to latest version of Tails, including release candidates, to test against during QA
    - [ ] Tails 5 
    - [ ] Tails 6 
  - [x] Prepare 2.8.0~rc1 release changelog
  - [x] Branch off release/2.8.0 from develop
  - [x] Prepare 2.8.0
  - [ ] Build debs, preserving build log, and put up `2.8.0~rc1` on test apt server
  - [ ] Commit build log.
  
  # Prepare release candidate (2.8.0~rc2)
  - [ ] Link to latest version of Tails, including release candidates, to test against during QA
    - [x] Tails 5 
    - [x] Tails 6 
  - [x] Prepare 2.8.0~rc2 release changelog
  - [x] Branch off release/2.8.0 from develop
  - [x] Prepare 2.8.0-rc2
  - [ ] ~Build debs, preserving build log, and put up `2.8.0~rc1` on test apt server~ skipped, as changes are Tails-only.
  - [ ] ~Commit build log.~
  
  
  After each test, please update the QA matrix and post details for Basic Server Testing, Application Acceptance Testing and release-specific testing below in comments to this ticket.
  
  # Final release
  - [ ] ~Ensure builder in release branch is updated and/or update builder image~ (no longer in use)
  - [x] Push signed tag 
  - [x] Pre-Flight: Test updater logic in Tails (apt-qa tracks the `release` branch in the LFS repo)
  - [x] Build final Debian packages(and preserve build log)
  - [x] Commit package build log to https://github.com/freedomofpress/build-logs
  - [x] Pre-Flight: Test that install and upgrade from 2.7.0 to 2.8.0 works w/ prod repo debs (apt-qa.freedom.press polls the `release` branch in the LFS repo for the debs)
  - [ ] Flip apt QA server to prod status (merge to `main` in the LFS repo)
  - [ ] Merge Docs branch changes to ``main`` and verify new docs build in securedrop-docs repo
  - [ ] Prepare release messaging
  
  # Post release
  - [ ] Create GitHub release object 
  - [ ] Once release object is created, update versions in `securedrop-docs` and Wagtail
  - [ ] Verify new docs show up on https://docs.securedrop.org
  - [ ] Publish announcements
  - [ ] Merge changelog back to `develop`
  - [ ] Update roadmap wiki page: https://github.com/freedomofpress/securedrop/wiki/Development-Roadmap
  
  </issue>
  <code>
  [start of securedrop/version.py]
  1 __version__ = "2.8.0~rc1"
  2
  [end of securedrop/version.py]
  [start of securedrop/setup.py]
  1 import setuptools
  2 
  3 long_description = "The SecureDrop whistleblower platform."
  4 
  5 setuptools.setup(
  6     name="securedrop-app-code",
  7     version="2.8.0~rc1",
  8     author="Freedom of the Press Foundation",
  9     author_email="securedrop@freedom.press",
  10     description="SecureDrop Server",
  11     long_description=long_description,
  12     long_description_content_type="text/markdown",
  13     license="AGPLv3+",
  14     python_requires=">=3.8",
  15     url="https://github.com/freedomofpress/securedrop",
  16     classifiers=[
  17         "Development Status :: 5 - Stable",
  18         "Programming Language :: Python :: 3",
  19         "Topic :: Software Development :: Libraries :: Python Modules",
  20         "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
  21         "Intended Audience :: Developers",
  22         "Operating System :: OS Independent",
  23     ],
  24 )
  25
  [end of securedrop/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/securedrop/setup.py b/securedrop/setup.py
  --- a/securedrop/setup.py
  +++ b/securedrop/setup.py
  @@ -4,7 +4,7 @@
   
   setuptools.setup(
       name="securedrop-app-code",
  -    version="2.8.0~rc1",
  +    version="2.9.0~rc1",
       author="Freedom of the Press Foundation",
       author_email="securedrop@freedom.press",
       description="SecureDrop Server",
  diff --git a/securedrop/version.py b/securedrop/version.py
  --- a/securedrop/version.py
  +++ b/securedrop/version.py
  @@ -1 +1 @@
  -__version__ = "2.8.0~rc1"
  +__version__ = "2.9.0~rc1"
  
verification_info: {"golden_diff": "diff --git a/securedrop/setup.py b/securedrop/setup.py\n--- a/securedrop/setup.py\n+++ b/securedrop/setup.py\n@@ -4,7 +4,7 @@\n \n setuptools.setup(\n     name=\"securedrop-app-code\",\n-    version=\"2.8.0~rc1\",\n+    version=\"2.9.0~rc1\",\n     author=\"Freedom of the Press Foundation\",\n     author_email=\"securedrop@freedom.press\",\n     description=\"SecureDrop Server\",\ndiff --git a/securedrop/version.py b/securedrop/version.py\n--- a/securedrop/version.py\n+++ b/securedrop/version.py\n@@ -1 +1 @@\n-__version__ = \"2.8.0~rc1\"\n+__version__ = \"2.9.0~rc1\"\n", "issue": "Release SecureDrop 2.8.0\nThis is a tracking issue for the release of SecureDrop 2.8.0\r\n\r\nTentatively scheduled as follows:\r\n\r\n**Pre-release announcement:** 2023-03-05\r\n**Release date:** 2024-03-12\r\n\r\n**Release manager:** @zenmonkeykstop  \r\n**Deputy release manager:** @legoktm \r\n**Localization manager:** @cfm\r\n**Communications manager:** @eloquence\r\n\r\n_SecureDrop maintainers and testers:_ As you QA 2.8.0, please report back your testing results as comments on this ticket. File GitHub issues for any problems found, tag them \"QA: Release\".\r\n\r\nTest debian packages will be posted on https://apt-test.freedom.press signed with [the test key](https://gist.githubusercontent.com/conorsch/ec4008b111bc3142fca522693f3cce7e/raw/2968621e8ad92db4505a31fcc5776422d7d26729/apt-test%2520apt%2520pubkey).\r\n\r\n# [QA Matrix for 2.8.0](https://docs.google.com/spreadsheets/d/1hcSrgbid03so0tQz3zfwvMaWJ8x7OOZsCfEz1I_PjAE/edit#gid=96348658)\r\n# [Test Plan for 2.8.0](https://github.com/freedomofpress/securedrop/wiki/2.8.0-Test-Plan)\r\n# [Tails-only test plan for 2.8.0-rc2](https://github.com/freedomofpress/securedrop/issues/7121#issuecomment-1988954749)\r\n(complete if you've already tested 2.8.0-rc1, there are no server changes in rc2)\r\n\r\n# Prepare release candidate (2.8.0~rc1)\r\n- [ ] Link to latest version of Tails, including release candidates, to test against during QA\r\n  - [ ] Tails 5 \r\n  - [ ] Tails 6 \r\n- [x] Prepare 2.8.0~rc1 release changelog\r\n- [x] Branch off release/2.8.0 from develop\r\n- [x] Prepare 2.8.0\r\n- [ ] Build debs, preserving build log, and put up `2.8.0~rc1` on test apt server\r\n- [ ] Commit build log.\r\n\r\n# Prepare release candidate (2.8.0~rc2)\r\n- [ ] Link to latest version of Tails, including release candidates, to test against during QA\r\n  - [x] Tails 5 \r\n  - [x] Tails 6 \r\n- [x] Prepare 2.8.0~rc2 release changelog\r\n- [x] Branch off release/2.8.0 from develop\r\n- [x] Prepare 2.8.0-rc2\r\n- [ ] ~Build debs, preserving build log, and put up `2.8.0~rc1` on test apt server~ skipped, as changes are Tails-only.\r\n- [ ] ~Commit build log.~\r\n\r\n\r\nAfter each test, please update the QA matrix and post details for Basic Server Testing, Application Acceptance Testing and release-specific testing below in comments to this ticket.\r\n\r\n# Final release\r\n- [ ] ~Ensure builder in release branch is updated and/or update builder image~ (no longer in use)\r\n- [x] Push signed tag \r\n- [x] Pre-Flight: Test updater logic in Tails (apt-qa tracks the `release` branch in the LFS repo)\r\n- [x] Build final Debian packages(and preserve build log)\r\n- [x] Commit package build log to https://github.com/freedomofpress/build-logs\r\n- [x] Pre-Flight: Test that install and upgrade from 2.7.0 to 2.8.0 works w/ prod repo debs (apt-qa.freedom.press polls the `release` branch in the LFS repo for the debs)\r\n- [ ] Flip apt QA server to prod status (merge to `main` in the LFS repo)\r\n- [ ] Merge Docs branch changes to ``main`` and verify new docs build in securedrop-docs repo\r\n- [ ] Prepare release messaging\r\n\r\n# Post release\r\n- [ ] Create GitHub release object \r\n- [ ] Once release object is created, update versions in `securedrop-docs` and Wagtail\r\n- [ ] Verify new docs show up on https://docs.securedrop.org\r\n- [ ] Publish announcements\r\n- [ ] Merge changelog back to `develop`\r\n- [ ] Update roadmap wiki page: https://github.com/freedomofpress/securedrop/wiki/Development-Roadmap\n", "before_files": [{"content": "__version__ = \"2.8.0~rc1\"\n", "path": "securedrop/version.py"}, {"content": "import setuptools\n\nlong_description = \"The SecureDrop whistleblower platform.\"\n\nsetuptools.setup(\n    name=\"securedrop-app-code\",\n    version=\"2.8.0~rc1\",\n    author=\"Freedom of the Press Foundation\",\n    author_email=\"securedrop@freedom.press\",\n    description=\"SecureDrop Server\",\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    license=\"AGPLv3+\",\n    python_requires=\">=3.8\",\n    url=\"https://github.com/freedomofpress/securedrop\",\n    classifiers=[\n        \"Development Status :: 5 - Stable\",\n        \"Programming Language :: Python :: 3\",\n        \"Topic :: Software Development :: Libraries :: Python Modules\",\n        \"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)\",\n        \"Intended Audience :: Developers\",\n        \"Operating System :: OS Independent\",\n    ],\n)\n", "path": "securedrop/setup.py"}]}