From 62067e1ffc7c1d591e1357ec1422bc8d70be464e Mon Sep 17 00:00:00 2001
From: Duncan Macleod <duncan.macleod@ligo.org>
Date: Thu, 22 Sep 2022 09:46:49 +0100
Subject: [PATCH] setup.cfg: update igwn-auth-utils requirement

as of 0.3.0 igwn-auth-utils no longer has a `[requests]` extra, closes #22

remove manually specified requests extra packages from deb/rpm files
---
 debian/control  | 8 ++------
 gwdatafind.spec | 8 ++------
 setup.cfg       | 2 +-
 3 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/debian/control b/debian/control
index 281d61f..7b77756 100644
--- a/debian/control
+++ b/debian/control
@@ -11,10 +11,8 @@ Build-Depends:
  debhelper (>= 9),
  dh-python,
  python3-all,
- python3-igwn-auth-utils (>= 0.2.0),
+ python3-igwn-auth-utils (>= 0.3.1),
  python3-ligo-segments,
- python3-requests,
- python3-safe-netrc,
  python3-setuptools,
  help2man,
  python3-pytest (>= 2.8.0),
@@ -27,10 +25,8 @@ Architecture: all
 Depends:
  ${misc:Depends},
  ${python3:Depends},
- python3-igwn-auth-utils (>= 0.2.0),
+ python3-igwn-auth-utils (>= 0.3.1),
  python3-ligo-segments,
- python3-requests,
- python3-safe-netrc,
 Description: GW data discovery Python 3 library
  The DataFind service allows users to query for the location of
  Gravitational-Wave Frame (GWF) files containing data from the
diff --git a/gwdatafind.spec b/gwdatafind.spec
index 66ace9e..1d7a36a 100644
--- a/gwdatafind.spec
+++ b/gwdatafind.spec
@@ -23,10 +23,8 @@ BuildRequires: python3-rpm-macros
 BuildRequires: python%{python3_pkgversion}-setuptools
 
 # gwdatafind (requires all runtime requirements for python3-gwdatafind)
-BuildRequires: python%{python3_pkgversion}-igwn-auth-utils >= 0.2.0
+BuildRequires: python%{python3_pkgversion}-igwn-auth-utils >= 0.3.1
 BuildRequires: python%{python3_pkgversion}-ligo-segments
-BuildRequires: python%{python3_pkgversion}-requests
-BuildRequires: python%{python3_pkgversion}-safe-netrc
 BuildRequires: help2man
 
 # testing dependencies
@@ -62,10 +60,8 @@ libraries.
 
 %package -n python%{python3_pkgversion}-%{srcname}
 Summary:  Python %{python3_version} library for the GWDataFind service
-Requires: python%{python3_pkgversion}-igwn-auth-utils >= 0.2.0
+Requires: python%{python3_pkgversion}-igwn-auth-utils >= 0.3.1
 Requires: python%{python3_pkgversion}-ligo-segments
-Requires: python%{python3_pkgversion}-requests
-Requires: python%{python3_pkgversion}-safe-netrc
 %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
 %description -n python%{python3_pkgversion}-%{srcname}
 The DataFind service allows users to query for the location of
diff --git a/setup.cfg b/setup.cfg
index a5ccb0f..c6fe3a0 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -38,7 +38,7 @@ python_requires = >=3.6
 setup_requires =
 	setuptools
 install_requires =
-	igwn-auth-utils[requests] >= 0.2.0
+	igwn-auth-utils >=0.3.1
 	ligo-segments
 
 [options.entry_points]
-- 
GitLab