From 7e008d1cdcee15f5d66359040f6a15e3ce5023ec Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Wed, 22 Dec 2021 13:55:15 -0500
Subject: [PATCH] try to avoid the setuptools_scm trap

---
 setup.cfg | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/setup.cfg b/setup.cfg
index 6d39a54..1a5a31a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -42,6 +42,13 @@ install_requires =
     # have been observed to cause problems).
     Twisted[tls,conch] >= 19.10.0
     tahoe-lafs >=1.17,<1.18
+
+    # Tahoe-LAFS 1.17 adds a cbor2 dependency; cbor2 has a setuptools_scm
+    # dependency; setuptools_scm has dropped Python 2 support without
+    # declaring it in their metadata.  Pin setuptools_scm to an older version
+    # here to avoid getting a broken version.
+    setuptools_scm < 6
+
     treq
     pyutil
     prometheus-client
-- 
GitLab