diff -Nru pywinrm-0.3.0/debian/changelog pywinrm-0.3.0/debian/changelog --- pywinrm-0.3.0/debian/changelog 2018-04-26 06:28:23.000000000 +0000 +++ pywinrm-0.3.0/debian/changelog 2018-05-12 18:57:38.000000000 +0000 @@ -1,8 +1,9 @@ -pywinrm (0.3.0-1ubuntu1) bionic; urgency=medium +pywinrm (0.3.0-2) unstable; urgency=medium - * Avoid the usage of distutils at runtime. Closes: #896420. + [ Matthias Klose ] + * Avoid the usage of distutils at runtime. (Closes: #896420). - -- Matthias Klose Thu, 26 Apr 2018 08:28:23 +0200 + -- Harlan Lieberman-Berg Sat, 12 May 2018 14:57:38 -0400 pywinrm (0.3.0-1) unstable; urgency=medium diff -Nru pywinrm-0.3.0/debian/patches/avoid-distutils.diff pywinrm-0.3.0/debian/patches/avoid-distutils.diff --- pywinrm-0.3.0/debian/patches/avoid-distutils.diff 2018-04-26 06:28:23.000000000 +0000 +++ pywinrm-0.3.0/debian/patches/avoid-distutils.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,29 +0,0 @@ -Index: b/winrm/transport.py -=================================================================== ---- a/winrm/transport.py -+++ b/winrm/transport.py -@@ -15,7 +15,6 @@ else: - import requests - import requests.auth - import warnings --from distutils.util import strtobool - - HAVE_KERBEROS = False - try: -@@ -48,6 +47,16 @@ from winrm.encryption import Encryption - __all__ = ['Transport'] - - -+# copied from distutils.util -+def strtobool (val): -+ val = val.lower() -+ if val in ('y', 'yes', 't', 'true', 'on', '1'): -+ return 1 -+ elif val in ('n', 'no', 'f', 'false', 'off', '0'): -+ return 0 -+ else: -+ raise ValueError("invalid truth value %r" % (val,)) -+ - class UnsupportedAuthArgument(Warning): - pass - diff -Nru pywinrm-0.3.0/debian/patches/avoid-distutils.patch pywinrm-0.3.0/debian/patches/avoid-distutils.patch --- pywinrm-0.3.0/debian/patches/avoid-distutils.patch 1970-01-01 00:00:00.000000000 +0000 +++ pywinrm-0.3.0/debian/patches/avoid-distutils.patch 2018-05-12 18:54:17.000000000 +0000 @@ -0,0 +1,34 @@ +Description: Avoid dependency on python-distutils +Author: Matthias Klose +Bug: https://github.com/diyan/pywinrm/issues/219 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896420 +Forwarded: yes +Reviewed-by: Harlan Lieberman-Berg Index: b/winrm/transport.py +=================================================================== +--- a/winrm/transport.py ++++ b/winrm/transport.py +@@ -15,7 +15,6 @@ else: + import requests + import requests.auth + import warnings +-from distutils.util import strtobool + + HAVE_KERBEROS = False + try: +@@ -48,6 +47,16 @@ from winrm.encryption import Encryption + __all__ = ['Transport'] + + ++# copied from distutils.util ++def strtobool (val): ++ val = val.lower() ++ if val in ('y', 'yes', 't', 'true', 'on', '1'): ++ return 1 ++ elif val in ('n', 'no', 'f', 'false', 'off', '0'): ++ return 0 ++ else: ++ raise ValueError("invalid truth value %r" % (val,)) ++ + class UnsupportedAuthArgument(Warning): + pass + diff -Nru pywinrm-0.3.0/debian/patches/series pywinrm-0.3.0/debian/patches/series --- pywinrm-0.3.0/debian/patches/series 2018-04-26 06:28:23.000000000 +0000 +++ pywinrm-0.3.0/debian/patches/series 2018-05-12 18:56:29.000000000 +0000 @@ -1 +1 @@ -avoid-distutils.diff +avoid-distutils.patch