Control: tags -1 + patch Instead of depending on python3-distutils, please consider avoiding the runtime dependency on a "build" time tool. patch attached.
diff -Nru pywinrm-0.3.0/debian/changelog pywinrm-0.3.0/debian/changelog --- pywinrm-0.3.0/debian/changelog 2018-03-11 22:13:20.000000000 +0100 +++ pywinrm-0.3.0/debian/changelog 2018-04-26 08:28:23.000000000 +0200 @@ -1,3 +1,10 @@ +pywinrm (0.3.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Avoid the usage of distutils at runtime. Closes: #896420. + + -- Matthias Klose <d...@debian.org> Thu, 26 Apr 2018 08:28:23 +0200 + pywinrm (0.3.0-1) unstable; urgency=medium * New upstream release. (Closes: #819542) 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 1970-01-01 01:00:00.000000000 +0100 +++ pywinrm-0.3.0/debian/patches/avoid-distutils.diff 2018-04-26 08:28:23.000000000 +0200 @@ -0,0 +1,29 @@ +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 1970-01-01 01:00:00.000000000 +0100 +++ pywinrm-0.3.0/debian/patches/series 2018-04-26 08:28:23.000000000 +0200 @@ -0,0 +1 @@ +avoid-distutils.diff