From b4ab2dcf5ba8f04bd96fa7be290a7f3eb04ad689c76d47d47075f7be99ff9b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 26 Mar 2025 14:26:22 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pywinrm revision 703fa2130e12af1d2101629b201477e2 --- .gitattributes | 23 ++++++++ python-pywinrm.changes | 125 +++++++++++++++++++++++++++++++++++++++++ python-pywinrm.spec | 77 +++++++++++++++++++++++++ pywinrm-0.5.0.tar.gz | 3 + 4 files changed, 228 insertions(+) create mode 100644 .gitattributes create mode 100644 python-pywinrm.changes create mode 100644 python-pywinrm.spec create mode 100644 pywinrm-0.5.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-pywinrm.changes b/python-pywinrm.changes new file mode 100644 index 0000000..4c2debd --- /dev/null +++ b/python-pywinrm.changes @@ -0,0 +1,125 @@ +------------------------------------------------------------------- +Thu Aug 29 13:13:16 UTC 2024 - pgajdos@suse.com + +- python-six is not required for build + +------------------------------------------------------------------- +Sat Jul 20 10:29:56 UTC 2024 - Martin Hauke + +- Update to version 0.5.0 + What's Changed + * Migrate to PEP 517 compliant build. + * Added ignore revs file for tracking commits with bulk sanity + changes. + * Add type annotations. + * Add WSManFaultError. + * Add new public APIs for header and command output. + * Fix up subpackages in dist. + +------------------------------------------------------------------- +Tue May 9 12:40:08 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Thu Apr 14 06:48:11 UTC 2022 - pgajdos@suse.com + +- version update to 0.4.3 + * Fix invalid regex escape sequences. + * Decoding CLIXML failures for run_ps will create a UserWarning rather than printing the warning. + * Remove usage of deprecated Python API to support Python 3.11 +- do not require mock for build + +------------------------------------------------------------------- +Sat Oct 16 22:18:50 UTC 2021 - Dirk Müller + +- update to 0.4.2: + * removed deprecated distutils usage to avoid Deprecation Warnings under + Python 3.10 + +------------------------------------------------------------------- +Fri May 28 10:07:22 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Fri Feb 28 23:02:50 UTC 2020 - Dirk Mueller + +- update to 0.4.1: + * python 3.8 + +------------------------------------------------------------------- +Sun Nov 3 14:20:27 UTC 2019 - Martin Hauke + +- Update to version 0.4.0 + * Ensure server_cert_validation=ignore supersedes + ca_trust_path/env overrides. + * Added deprecated warnings if CA trusts defined by environment + variables are used. + * Set minimum version of requests-credssp to support Kerberos + auth over CredSSP and other changes. + * Added proxy support where it can be defined within the + application, with the ability to specify the proxy within the + application. + * Fix for shell not setting all environment variables. + * Fix session clixml encoding on Python 3. + * Protocol.close_shell(shell_id) will now close the session(and + TCP connections) to the Windows machine. close_session option + has been added in case of leaving the session alone. + * Add a function to send input to a running process. +- Use tarball from github instead of pypi +- Drop not longer needed file LICENSE (it's part of the upstream + tarball +- Add %{python_module kerberos} to BuildRequires since it's used + in some tests + +------------------------------------------------------------------- +Tue Dec 4 12:53:23 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Apr 5 20:24:54 UTC 2018 - mardnh@gmx.de + +- Upgrade to version 0.3.0 + * Added support for message encryption over HTTP when using NTLM/Kerberos/CredSSP + * Added parameter to disable TLSv1.2 when using CredSSP for Server 2008 support + * Error detail from SOAP fault (if present) is now included with HTTP 500 errors + * Fixed CA path override (incl envvar) + * Fixed Kerberos service override + * Try harder to suppress urllib3 InsecureRequestWarnings on various OSs + * Fixed timeout values to parse correctly if passed as strings + * Various updates to CI/tests +- Convert to singlespec + +------------------------------------------------------------------- +Wed Mar 8 22:35:49 UTC 2017 - boris@steki.net + +- upgraded to pypi released source 0.2.2 + + Added support for CredSSP authenication (via requests-credssp) + + Improved README, see 'Valid transport options' section + + Run unit tests on Linux / Travis CI on Python 2.6-2.7, 3.3-3.6, PyPy2 + + Run integration tests on Windows / AppVeyor on Python 2.7, 3.3-3.5 + + Drop support for Python 3.0-3.2 due to lack of explicit unicode literal, see pep-0414 + + Drop support for Python 2.6 on Windows + + Add support for Python 3.6-dev on Linux + + Force basic auth header to avoid additional HTTP request and reduce latency + + Python 2.7.9+. Allow server cert validation to be ignored using SSLContext.verify_mode + + Tests. Enable Python 3.4, 3.5 on Travis CI + + Use xmltodict instead of not supported xmlwitch + + Add certificate authentication support + + Setup PyPI classifiers + + Fix. Include UUID when sending request + + Fix. Python 2.6.6/CentOS. Use tuples instead of lists in setup.py + + Fix. Python 2.6. String formatting + + Handle unauthorized response and raise UnauthorizeError + + Convert different forms of short urls into full well-formed endpoint + + Add Session.run_ps() helper to execute PowerShell scripts + + Use pandoc for README.md to rst conversion for PyPI + + +------------------------------------------------------------------- +Wed Sep 10 12:35:17 UTC 2014 - boris@steki.net + +- initial packaging + diff --git a/python-pywinrm.spec b/python-pywinrm.spec new file mode 100644 index 0000000..65223e3 --- /dev/null +++ b/python-pywinrm.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-pywinrm +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pywinrm +Version: 0.5.0 +Release: 0 +Summary: Python library for Windows Remote Management +License: MIT +Group: Development/Languages/Python +URL: https://github.com/diyan/pywinrm/ +Source: https://github.com/diyan/pywinrm/archive/refs/tags/v%{version}.tar.gz#/pywinrm-%{version}.tar.gz +BuildRequires: %{python_module kerberos} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.9.1} +BuildRequires: %{python_module requests_ntlm >= 1.1.0} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module xmltodict} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests >= 2.9.1 +Requires: python-requests_ntlm >= 1.1.0 +Requires: python-xmltodict +Suggests: python-requests-credssp >= 0.0.1 +Suggests: python-requests-kerberos >= 0.10.0 +BuildArch: noarch +%python_subpackages + +%description +pywinrm is a Python client for Windows Remote Management (WinRM). This +allows you to invoke commands on target Windows machines from any +machine that can run Python. + +WinRM allows you to call native objects in Windows. This includes, but +is not limited to, running batch scripts, powershell scripts and +fetching WMI variables. For more information on WinRM, please visit +Microsoft's WinRM http://msdn.microsoft.com/en-us/library/aa384426.aspx + +%prep +%setup -q -n pywinrm-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand rm -Rv %{buildroot}%{$python_sitelib}/winrm/tests + +%check +# https://github.com/diyan/pywinrm/issues/345 +sed -i 's:import mock:from unittest import mock:' winrm/tests/test_transport.py +%pyunittest discover -v + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/winrm +%{python_sitelib}/pywinrm-%{version}.dist-info + +%changelog diff --git a/pywinrm-0.5.0.tar.gz b/pywinrm-0.5.0.tar.gz new file mode 100644 index 0000000..f98af67 --- /dev/null +++ b/pywinrm-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:adf8b1e984dd90d0589aa4c736edd4730efab272357e204cf7185b87dcf49973 +size 41674