From bae82e3a318ac3ef5e8321c0c36ce1463e226bad Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Jun 29 2018 16:12:51 +0000 Subject: Don't turn deprecation warnings into fatal errors --- diff --git a/custodia.spec b/custodia.spec index b614849..4ab241e 100644 --- a/custodia.spec +++ b/custodia.spec @@ -16,7 +16,7 @@ Name: custodia Version: 0.6.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A service to manage, retrieve and store secrets for other processes License: GPLv3+ @@ -27,6 +27,8 @@ Source3: custodia@.service Source4: custodia@.socket Source5: custodia.tmpfiles.conf +Patch1: nonfatal_deprecation.patch + BuildArch: noarch BuildRequires: systemd @@ -119,7 +121,7 @@ Sub-package with python custodia modules %prep -%autosetup +%autosetup -p1 %build @@ -251,6 +253,9 @@ exit 0 %changelog +* Fri Jun 29 2018 Christian Heimes - 0.6.0-3 +- Don't turn deprecation warnings into fatal errors + * Thu Jun 28 2018 Christian Heimes - 0.6.0-2 - Rebuild for Python 3.7 diff --git a/nonfatal_deprecation.patch b/nonfatal_deprecation.patch new file mode 100644 index 0000000..12fbb7f --- /dev/null +++ b/nonfatal_deprecation.patch @@ -0,0 +1,11 @@ +--- a/tests/conftest.py.orig 2018-06-29 18:06:51.296810334 +0200 ++++ b/tests/conftest.py 2018-06-29 18:06:58.691767950 +0200 +@@ -9,7 +9,7 @@ + from custodia.log import ProvisionalWarning, setup_logging + + # deprecated APIs raise an exception +-warnings.simplefilter('error', category=DeprecationWarning) ++# warnings.simplefilter('error', category=DeprecationWarning) + # ignore pytest warnings + warnings.filterwarnings('ignore', category=DeprecationWarning, + module=r'_pytest\..*')