prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Guard SCHEMA_VERSION from version bumps
  I don't think it is going to be possible to guard the `SCHEMA_VERSION` from `bump2version` so we might need to look for a replacement for `bump2version` that gives guard support.
  
  This is going to be a problem when 
  
  https://github.com/scikit-hep/pyhf/blob/6b0a9317b14da2a452f51d089cb9e493c8f19347/.bumpversion.cfg#L1-L2
  
  hits `1.0.0` and conflicts with 
  
  https://github.com/scikit-hep/pyhf/blob/f824afe77d9e48e90651931700ccfc3d3c268c18/src/pyhf/utils.py#L13
  
  and also has to properly pick up the multiple correct instances in 
  
  https://github.com/scikit-hep/pyhf/blob/f824afe77d9e48e90651931700ccfc3d3c268c18/src/pyhf/utils.py#L145
  
  _Originally posted by @matthewfeickert in https://github.com/scikit-hep/pyhf/issues/1218#issuecomment-744590434_
  
  </issue>
  <code>
  [start of setup.py]
  1 from setuptools import setup
  2 
  3 extras_require = {
  4     'shellcomplete': ['click_completion'],
  5     'tensorflow': [
  6         'tensorflow>=2.3.1',  # c.f. https://github.com/tensorflow/tensorflow/pull/40789
  7         'tensorflow-probability>=0.11.0',  # c.f. PR #1657
  8     ],
  9     'torch': ['torch>=1.10.0'],  # c.f. PR #1657
  10     'jax': ['jax>=0.2.10', 'jaxlib>=0.1.60,!=0.1.68'],  # c.f. Issue 1501
  11     'xmlio': ['uproot>=4.1.1'],  # c.f. PR #1567
  12     'minuit': ['iminuit>=2.4.0'],  # c.f. PR #1306
  13 }
  14 extras_require['backends'] = sorted(
  15     set(
  16         extras_require['tensorflow']
  17         + extras_require['torch']
  18         + extras_require['jax']
  19         + extras_require['minuit']
  20     )
  21 )
  22 extras_require['contrib'] = sorted({'matplotlib', 'requests'})
  23 extras_require['lint'] = sorted({'flake8', 'black>=22.1.0'})
  24 
  25 extras_require['test'] = sorted(
  26     set(
  27         extras_require['backends']
  28         + extras_require['xmlio']
  29         + extras_require['contrib']
  30         + extras_require['shellcomplete']
  31         + [
  32             'scikit-hep-testdata>=0.4.11',
  33             'pytest>=6.0',
  34             'pytest-cov>=2.5.1',
  35             'pytest-mock',
  36             'requests-mock>=1.9.0',
  37             'pytest-benchmark[histogram]',
  38             'pytest-console-scripts',
  39             'pytest-mpl',
  40             'pydocstyle',
  41             'papermill~=2.0',
  42             'nteract-scrapbook~=0.2',
  43             'jupyter',
  44             'graphviz',
  45         ]
  46     )
  47 )
  48 extras_require['docs'] = sorted(
  49     set(
  50         extras_require['xmlio']
  51         + extras_require['contrib']
  52         + [
  53             'sphinx>=4.0.0',
  54             'sphinxcontrib-bibtex~=2.1',
  55             'sphinx-click',
  56             'sphinx_rtd_theme',
  57             'nbsphinx!=0.8.8',  # c.f. https://github.com/spatialaudio/nbsphinx/issues/620
  58             'ipywidgets',
  59             'sphinx-issues',
  60             'sphinx-copybutton>=0.3.2',
  61         ]
  62     )
  63 )
  64 extras_require['develop'] = sorted(
  65     set(
  66         extras_require['docs']
  67         + extras_require['lint']
  68         + extras_require['test']
  69         + [
  70             'nbdime',
  71             'bump2version',
  72             'ipython',
  73             'pre-commit',
  74             'check-manifest',
  75             'codemetapy>=0.3.4',
  76             'twine',
  77         ]
  78     )
  79 )
  80 extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))
  81 
  82 
  83 setup(
  84     extras_require=extras_require,
  85     use_scm_version=lambda: {'local_scheme': lambda version: ''},
  86 )
  87
  [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
  @@ -68,7 +68,7 @@
           + extras_require['test']
           + [
               'nbdime',
  -            'bump2version',
  +            'tbump>=6.7.0',
               'ipython',
               'pre-commit',
               'check-manifest',
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -68,7 +68,7 @@\n         + extras_require['test']\n         + [\n             'nbdime',\n-            'bump2version',\n+            'tbump>=6.7.0',\n             'ipython',\n             'pre-commit',\n             'check-manifest',\n", "issue": "Guard SCHEMA_VERSION from version bumps\nI don't think it is going to be possible to guard the `SCHEMA_VERSION` from `bump2version` so we might need to look for a replacement for `bump2version` that gives guard support.\r\n\r\nThis is going to be a problem when \r\n\r\nhttps://github.com/scikit-hep/pyhf/blob/6b0a9317b14da2a452f51d089cb9e493c8f19347/.bumpversion.cfg#L1-L2\r\n\r\nhits `1.0.0` and conflicts with \r\n\r\nhttps://github.com/scikit-hep/pyhf/blob/f824afe77d9e48e90651931700ccfc3d3c268c18/src/pyhf/utils.py#L13\r\n\r\nand also has to properly pick up the multiple correct instances in \r\n\r\nhttps://github.com/scikit-hep/pyhf/blob/f824afe77d9e48e90651931700ccfc3d3c268c18/src/pyhf/utils.py#L145\r\n\r\n_Originally posted by @matthewfeickert in https://github.com/scikit-hep/pyhf/issues/1218#issuecomment-744590434_\n", "before_files": [{"content": "from setuptools import setup\n\nextras_require = {\n    'shellcomplete': ['click_completion'],\n    'tensorflow': [\n        'tensorflow>=2.3.1',  # c.f. https://github.com/tensorflow/tensorflow/pull/40789\n        'tensorflow-probability>=0.11.0',  # c.f. PR #1657\n    ],\n    'torch': ['torch>=1.10.0'],  # c.f. PR #1657\n    'jax': ['jax>=0.2.10', 'jaxlib>=0.1.60,!=0.1.68'],  # c.f. Issue 1501\n    'xmlio': ['uproot>=4.1.1'],  # c.f. PR #1567\n    'minuit': ['iminuit>=2.4.0'],  # c.f. PR #1306\n}\nextras_require['backends'] = sorted(\n    set(\n        extras_require['tensorflow']\n        + extras_require['torch']\n        + extras_require['jax']\n        + extras_require['minuit']\n    )\n)\nextras_require['contrib'] = sorted({'matplotlib', 'requests'})\nextras_require['lint'] = sorted({'flake8', 'black>=22.1.0'})\n\nextras_require['test'] = sorted(\n    set(\n        extras_require['backends']\n        + extras_require['xmlio']\n        + extras_require['contrib']\n        + extras_require['shellcomplete']\n        + [\n            'scikit-hep-testdata>=0.4.11',\n            'pytest>=6.0',\n            'pytest-cov>=2.5.1',\n            'pytest-mock',\n            'requests-mock>=1.9.0',\n            'pytest-benchmark[histogram]',\n            'pytest-console-scripts',\n            'pytest-mpl',\n            'pydocstyle',\n            'papermill~=2.0',\n            'nteract-scrapbook~=0.2',\n            'jupyter',\n            'graphviz',\n        ]\n    )\n)\nextras_require['docs'] = sorted(\n    set(\n        extras_require['xmlio']\n        + extras_require['contrib']\n        + [\n            'sphinx>=4.0.0',\n            'sphinxcontrib-bibtex~=2.1',\n            'sphinx-click',\n            'sphinx_rtd_theme',\n            'nbsphinx!=0.8.8',  # c.f. https://github.com/spatialaudio/nbsphinx/issues/620\n            'ipywidgets',\n            'sphinx-issues',\n            'sphinx-copybutton>=0.3.2',\n        ]\n    )\n)\nextras_require['develop'] = sorted(\n    set(\n        extras_require['docs']\n        + extras_require['lint']\n        + extras_require['test']\n        + [\n            'nbdime',\n            'bump2version',\n            'ipython',\n            'pre-commit',\n            'check-manifest',\n            'codemetapy>=0.3.4',\n            'twine',\n        ]\n    )\n)\nextras_require['complete'] = sorted(set(sum(extras_require.values(), [])))\n\n\nsetup(\n    extras_require=extras_require,\n    use_scm_version=lambda: {'local_scheme': lambda version: ''},\n)\n", "path": "setup.py"}]}