From 0bfa9a64d51d597a506ae92ddb6a1c764fa3812c Mon Sep 17 00:00:00 2001
From: Hannes Ljungberg <Hannes.ljungberg@gmail.com>
Date: Tue, 31 May 2022 19:20:04 +0200
Subject: [PATCH] Loosen dependency on backoff for newer Python versions
 (#2726)

---
 CHANGELOG.md                                              | 2 ++
 exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg | 3 ++-
 exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg | 3 ++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6604cccea1d..ea2027a09ce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
   ([#2714](https://github.com/open-telemetry/opentelemetry-python/pull/2714))
 - narrow protobuf dependencies to exclude protobuf >= 4
   ([#2720](https://github.com/open-telemetry/opentelemetry-python/pull/2720))
+- Loosen dependency on `backoff` for newer Python versions
+  ([#2726](https://github.com/open-telemetry/opentelemetry-python/pull/2726))
 
 ## [1.12.0rc1-0.31b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.12.0rc1-0.31b0) - 2022-05-17
 
diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg b/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg
index 13d06b2b15b..4206782846f 100644
--- a/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg
+++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg
@@ -45,7 +45,8 @@ install_requires =
     opentelemetry-api ~= 1.3
     opentelemetry-sdk ~= 1.11
     opentelemetry-proto == 1.12.0rc1
-    backoff >= 1.10.0, < 2.0.0
+    backoff >= 1.10.0, < 2.0.0; python_version<'3.7'
+    backoff >= 1.10.0, < 3.0.0; python_version>='3.7'
 
 [options.extras_require]
 test =
diff --git a/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg b/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg
index cf73900ed26..e434fb794eb 100644
--- a/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg
+++ b/exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg
@@ -45,7 +45,8 @@ install_requires =
     opentelemetry-api ~= 1.3
     opentelemetry-sdk ~= 1.11
     opentelemetry-proto == 1.12.0rc1
-    backoff >= 1.10.0, < 2.0.0
+    backoff >= 1.10.0, < 2.0.0; python_version<'3.7'
+    backoff >= 1.10.0, < 3.0.0; python_version>='3.7'
 
 [options.extras_require]
 test =