Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pywinrm for openSUSE:Factory checked in at 2021-10-18 21:59:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pywinrm (Old) and /work/SRC/openSUSE:Factory/.python-pywinrm.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pywinrm" Mon Oct 18 21:59:08 2021 rev:6 rq:925766 version:0.4.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pywinrm/python-pywinrm.changes 2021-06-01 10:39:22.337008210 +0200 +++ /work/SRC/openSUSE:Factory/.python-pywinrm.new.1890/python-pywinrm.changes 2021-10-18 22:01:58.130083878 +0200 @@ -1,0 +2,7 @@ +Sat Oct 16 22:18:50 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 0.4.2: + * removed deprecated distutils usage to avoid Deprecation Warnings under + Python 3.10 + +------------------------------------------------------------------- Old: ---- pywinrm-0.4.1.tar.gz New: ---- pywinrm-0.4.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pywinrm.spec ++++++ --- /var/tmp/diff_new_pack.uraum7/_old 2021-10-18 22:01:58.606084222 +0200 +++ /var/tmp/diff_new_pack.uraum7/_new 2021-10-18 22:01:58.610084225 +0200 @@ -18,13 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pywinrm -Version: 0.4.1 +Version: 0.4.2 Release: 0 Summary: Python library for Windows Remote Management License: MIT Group: Development/Languages/Python -URL: http://github.com/diyan/pywinrm/ -Source: https://github.com/diyan/pywinrm/archive/v%{version}.tar.gz#/pywinrm-%{version}.tar.gz +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 mock} BuildRequires: %{python_module pytest} ++++++ pywinrm-0.4.1.tar.gz -> pywinrm-0.4.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/.github/workflows/ci.yml new/pywinrm-0.4.2/.github/workflows/ci.yml --- old/pywinrm-0.4.1/.github/workflows/ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pywinrm-0.4.2/.github/workflows/ci.yml 2021-05-10 23:39:20.000000000 +0200 @@ -0,0 +1,132 @@ +name: Test pywinrm +on: + push: + branches: + - master + + pull_request: + branches: + - master + +env: + WINRM_USERNAME: pywinrm-test + WINRM_PASSWORD: Password123! + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest + python-version: + - 2.7 + - 3.6 + - 3.7 + - 3.8 + - 3.9 + - pypy-2.7 + - pypy-3.7 + arch: + - x86 + - x64 + + exclude: + - os: macos-latest + arch: x86 + - os: macos-latest + python-version: pypy-2.7 + - os: macos-latest + python-version: pypy-3.7 + - os: ubuntu-latest + arch: x86 + - os: windows-latest + python-version: pypy-2.7 + - os: windows-latest + python-version: pypy-3.7 + + steps: + - uses: actions/checkout@v2 + + - name: set up python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: ${{ matrix.arch }} + + - name: set up Windows integration tests + if: startsWith(matrix.os, 'windows') + shell: pwsh + run: | + Write-Host 'Create local admin user' + $userParams = @{ + Name = $env:WINRM_USERNAME + Password = (ConvertTo-SecureString -AsPlainText -Force -String $env:WINRM_PASSWORD) + AccountNeverExpires = $true + PasswordNeverExpires = $true + } + $null = New-LocalUser @userParams + Add-LocalGroupMember -Group Administrators -Member $userParams.Name + + Write-Host 'Setting up WinRM settings' + Enable-PSRemoting -Force -SkipNetworkProfileCheck + Enable-WSManCredSSP -Role Server -Force + Set-Item WSMan:\localhost\Service\Auth\Basic $true + Set-Item WSMan:\localhost\Service\Auth\CredSSP $true + Set-Item WSMan:\localhost\Service\AllowUnencrypted $true + + - name: set up Linux dependencies + if: startsWith(matrix.os, 'ubuntu') + run: >- + sudo apt-get install -y + gcc + python-dev + libkrb5-dev + env: + DEBIAN_FRONTEND: noninteractive + + - name: install dependencies + run: | + pip install coveralls + pip install .[credssp,kerberos] + pip install -r requirements-test.txt + + - name: run test - non Windows + if: "!startsWith(matrix.os, 'windows')" + run: | + pytest -v --flake8 --cov=winrm --cov-report=term-missing winrm/tests/ + + - name: run test - Windows + if: startsWith(matrix.os, 'windows') + run: | + pytest -v --flake8 --cov=winrm --cov-report=term-missing winrm/tests/ + env: + WINRM_TRANSPORT: basic + WINRM_ENDPOINT: http://localhost:5985/wsman + + - name: upload coverage data + if: "!endsWith(matrix.python-version, '2.7')" # Uses an older coverals version that doesn't support GHA + run: coveralls --service=github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: run integration with NTLM + if: startsWith(matrix.os, 'windows') + run: | + Set-Item WSMan:\localhost\Service\AllowUnencrypted $false + py.test -v winrm/tests/test_integration_protocol.py winrm/tests/test_integration_session.py + env: + WINRM_TRANSPORT: ntlm + WINRM_ENDPOINT: http://localhost:5985/wsman + + - name: run integration with CredSSP + if: startsWith(matrix.os, 'windows') + run: | + Set-Item WSMan:\localhost\Service\AllowUnencrypted $false + py.test -v winrm/tests/test_integration_protocol.py winrm/tests/test_integration_session.py + env: + WINRM_TRANSPORT: credssp + WINRM_ENDPOINT: http://localhost:5985/wsman diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/.travis.yml new/pywinrm-0.4.2/.travis.yml --- old/pywinrm-0.4.1/.travis.yml 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,52 +0,0 @@ -# http://travis-ci.org/#!/diyan/pywinrm -# pyenv used instead of native Python support in Travis CI to: -# - Make build steps exactly the same on both Linux and Mac OS workers -# - Make possible to debug build steps on local workstation -# - Integrate new Python / PyPy releases earlier; pyenv does it with less lag than Travis -language: generic -cache: - directories: - - $HOME/.cache/pip - - $HOME/.cache/pyenv -matrix: - include: - # Define 'sudo: false' to run on container-based workers - - { os: linux, dist: xenial, sudo: false, env: UBUNTU=16.04 PYENV=2.7.16 } - - { os: linux, dist: xenial, sudo: false, env: UBUNTU=16.04 PYENV=3.5.7 } - - { os: linux, dist: xenial, sudo: false, env: UBUNTU=16.04 PYENV=3.6.8 } - - { os: linux, dist: xenial, sudo: false, env: UBUNTU=16.04 PYENV=3.7.3 } - - { os: linux, dist: xenial, sudo: false, env: UBUNTU=16.04 PYENV=3.8-dev } - - { os: linux, dist: xenial, sudo: false, env: UBUNTU=16.04 PYENV=pypy2.7-7.1.1 } - -# pyenv won't build on current Mac versions without some extra conditional help, try to fix this later... -# - { os: osx, osx_image: xcode10.2, language: generic, env: OSX=10.14 PYENV=2.7.16 } -# - { os: osx, osx_image: xcode10.2, language: generic, env: OSX=10.14 PYENV=3.7.3 } - -install: - # Always use latest pyenv but keep installed Python versions in cache - - rm -rf ~/.pyenv - - git clone https://github.com/pyenv/pyenv.git ~/.pyenv - - mkdir -p ~/.cache/pyenv/versions - - which pyenv - - printenv - - ln -s ~/.cache/pyenv/versions ~/.pyenv/versions - - export PATH="$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH" - - export PYENV_ROOT="$HOME/.pyenv" - - pyenv --version - - pyenv install --skip-existing $PYENV - - pyenv global $PYENV - - pyenv rehash - - python --version - - pip --version - - pip install virtualenv - - python -m virtualenv ~/.venv - - source ~/.venv/bin/activate - - pip install coveralls - - pip install .[credssp] - - pip install .[kerberos] - - pip install -r requirements-test.txt -script: - - pytest -v --flake8 --cov=winrm --cov-report=term-missing winrm/tests/ - -after_success: - - coveralls diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/CHANGELOG.md new/pywinrm-0.4.2/CHANGELOG.md --- old/pywinrm-0.4.1/CHANGELOG.md 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/CHANGELOG.md 2021-05-10 23:39:20.000000000 +0200 @@ -1,7 +1,11 @@ # Changelog +### Version 0.4.2 +- Dropped Python 3.5 from support matrix as it is EOL. +- Remove dependency on `distutils` that is deprecated in Python 3.10. + ### Version 0.4.1 -- HOT FIX: Fixing an issue with `requests_kerbose` not imported correctly from the changes in `0.4.0`. +- HOT FIX: Fixing an issue with `requests_kerberos` not imported correctly from the changes in `0.4.0`. ### Version 0.4.0 - Ensure `server_cert_validation=ignore` supersedes ca_trust_path/env overrides diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/README.md new/pywinrm-0.4.2/README.md --- old/pywinrm-0.4.1/README.md 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/README.md 2021-05-10 23:39:20.000000000 +0200 @@ -4,8 +4,8 @@ that can run Python. [](https://github.com/diyan/pywinrm/blob/master/LICENSE) -[](https://travis-ci.org/diyan/pywinrm) -[](https://ci.appveyor.com/project/diyan/pywinrm) [](https://coveralls.io/r/diyan/pywinrm) +[](https://github.com/diyan/pywinrm/actions/workflows/ci.yml) +[](https://coveralls.io/r/diyan/pywinrm) [](https://pypi.python.org/pypi/pywinrm) WinRM allows you to perform various management tasks remotely. These include, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/appveyor.yml new/pywinrm-0.4.2/appveyor.yml --- old/pywinrm-0.4.1/appveyor.yml 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/appveyor.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,68 +0,0 @@ -environment: - global: - # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the - # /E:ON and /V:ON options are not enabled in the batch script intepreter - # See: http://stackoverflow.com/a/13751649/163740 - WITH_COMPILER: "cmd /E:ON /V:ON /C .\\scripts\\run_with_compiler.cmd" - matrix: - # https://www.appveyor.com/docs/installed-software/#python - # NOTE Python 2.6 for Windows is no longer supported by the Python core team - - PYTHON: Python27 - - PYTHON: Python27-x64 - - PYTHON: Python35 - - PYTHON: Python35-x64 - - PYTHON: Python36 - - PYTHON: Python36-x64 - - PYTHON: Python37 - - PYTHON: Python37-x64 - -init: - - ps: | - $ErrorActionPreference = "Stop" - # Override default Python version/architecture - $env:Path="C:\$env:PYTHON;C:\$env:PYTHON\Scripts;$env:PATH" - # disable "Python 2.7 is going away soon" warnings - $env:PYTHONWARNINGS="ignore:DEPRECATION" - python -c "import platform; print('Python', platform.python_version(), platform.architecture()[0])" - # always install latest pip - $(curl -UseBasicParsing https://bootstrap.pypa.io/get-pip.py).Content | python - pip --version - -install: - - ps: | - Enable-WSManCredSSP -Role Server -Force - Set-Item WSMan:\localhost\Service\Auth\Basic $true - Set-Item WSMan:\localhost\Service\Auth\CredSSP $true - Set-Item WSMan:\localhost\Service\AllowUnencrypted $true - Invoke-Expression $($env:WITH_COMPILER + " pip install cffi coveralls") - pip install . - pip install -r requirements-test.txt - pip install .[credssp] - -build: off # Do not run MSBuild, build stuff at install step - -build_script: - - echo build_script - -test_script: - # configure winrm envvars for tests - - ps: | - $ErrorActionPreference = "Stop" - $env:WINRM_USERNAME=$($env:USERNAME) - $env:WINRM_PASSWORD=[Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultPassword", '') - $env:WINRM_TRANSPORT="basic" - $env:WINRM_ENDPOINT="http://localhost:5985/wsman" - - py.test -v --cov-report=term-missing --cov=. - - # Run integration tests with NTLM to check message encryption - $env:WINRM_TRANSPORT="ntlm" - Set-Item WSMan:\localhost\Service\AllowUnencrypted $false - py.test -v winrm/tests/test_integration_protocol.py winrm/tests/test_integration_session.py - - # Run integration tests with CredSSP to check message encryption - $env:WINRM_TRANSPORT="credssp" - py.test -v winrm/tests/test_integration_protocol.py winrm/tests/test_integration_session.py - -after_test: - - echo after_test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/requirements-test.txt new/pywinrm-0.4.2/requirements-test.txt --- old/pywinrm-0.4.1/requirements-test.txt 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/requirements-test.txt 2021-05-10 23:39:20.000000000 +0200 @@ -2,5 +2,5 @@ # pin specific versions to keep things more stable over time; only pin sub-packages if necessary pytest==4.4.2 pytest-cov==2.7.1 -pytest-flake8==1.0.4 +pytest-flake8==1.0.7 mock==3.0.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/scripts/run_with_compiler.cmd new/pywinrm-0.4.2/scripts/run_with_compiler.cmd --- old/pywinrm-0.4.1/scripts/run_with_compiler.cmd 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/scripts/run_with_compiler.cmd 1970-01-01 01:00:00.000000000 +0100 @@ -1,47 +0,0 @@ -:: To build extensions for 64 bit Python 3, we need to configure environment -:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of: -:: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1) -:: -:: To build extensions for 64 bit Python 2, we need to configure environment -:: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of: -:: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0) -:: -:: 32 bit builds do not require specific environment configurations. -:: -:: Note: this script needs to be run with the /E:ON and /V:ON flags for the -:: cmd interpreter, at least for (SDK v7.0) -:: -:: More details at: -:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows -:: http://stackoverflow.com/a/13751649/163740 -:: -:: Author: Olivier Grisel -:: License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ -@ECHO OFF - -SET COMMAND_TO_RUN=%* -SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows - -SET MAJOR_PYTHON_VERSION="%PYTHON_VERSION:~0,1%" -IF %MAJOR_PYTHON_VERSION% == "2" ( - SET WINDOWS_SDK_VERSION="v7.0" -) ELSE IF %MAJOR_PYTHON_VERSION% == "3" ( - SET WINDOWS_SDK_VERSION="v7.1" -) ELSE ( - ECHO Unsupported Python version: "%MAJOR_PYTHON_VERSION%" - EXIT 1 -) - -IF "%PYTHON_ARCH%"=="64" ( - ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture - SET DISTUTILS_USE_SDK=1 - SET MSSdk=1 - "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION% - "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release - ECHO Executing: %COMMAND_TO_RUN% - call %COMMAND_TO_RUN% || EXIT 1 -) ELSE ( - ECHO Using default MSVC build environment for 32 bit architecture - ECHO Executing: %COMMAND_TO_RUN% - call %COMMAND_TO_RUN% || EXIT 1 -) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/setup.py new/pywinrm-0.4.2/setup.py --- old/pywinrm-0.4.1/setup.py 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/setup.py 2021-05-10 23:39:20.000000000 +0200 @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -__version__ = '0.4.1' +__version__ = '0.4.2' project_name = 'pywinrm' # PyPi supports only reStructuredText, so pandoc should be installed @@ -40,10 +40,10 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Clustering', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pywinrm-0.4.1/winrm/transport.py new/pywinrm-0.4.2/winrm/transport.py --- old/pywinrm-0.4.1/winrm/transport.py 2019-11-04 19:03:10.000000000 +0100 +++ new/pywinrm-0.4.2/winrm/transport.py 2021-05-10 23:39:20.000000000 +0200 @@ -6,7 +6,6 @@ import requests.auth import warnings -from distutils.util import strtobool from winrm.exceptions import InvalidCredentialsError, WinRMError, WinRMTransportError from winrm.encryption import Encryption @@ -48,6 +47,18 @@ __all__ = ['Transport'] +def strtobool(value): + value = value.lower() + if value in ('true', 't', 'yes', 'y', 'on', '1'): + return True + + elif value in ('false', 'f', 'no', 'n', 'off', '0'): + return False + + else: + raise ValueError("invalid truth value '%s'" % value) + + class UnsupportedAuthArgument(Warning): pass