Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyspnego for openSUSE:Factory checked in at 2022-11-12 17:40:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyspnego (Old) and /work/SRC/openSUSE:Factory/.python-pyspnego.new.1597 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyspnego" Sat Nov 12 17:40:52 2022 rev:12 rq:1035237 version:0.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyspnego/python-pyspnego.changes 2022-10-29 20:18:01.626504880 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyspnego.new.1597/python-pyspnego.changes 2022-11-12 17:41:08.826160115 +0100 @@ -1,0 +2,13 @@ +Wed Nov 9 18:35:52 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to 0.6.3 + * Ignore GSS_S_NO_CONTEXT errors on GSSAPI after stepping through the token exchange before the context is complete + This is raised by MIT krb5 before 1.14.x and can be ignored + +- Update to 0.6.2 + * Fix up sdist and wheels to include py.typed type annotation marker + +- Update to 0.6.1 + * Added Python 3.11 wheel + +------------------------------------------------------------------- Old: ---- pyspnego-0.6.0.tar.gz New: ---- pyspnego-0.6.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyspnego.spec ++++++ --- /var/tmp/diff_new_pack.FXAiGw/_old 2022-11-12 17:41:09.294162901 +0100 +++ /var/tmp/diff_new_pack.FXAiGw/_new 2022-11-12 17:41:09.302162949 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pyspnego -Version: 0.6.0 +Version: 0.6.3 Release: 0 Summary: Python SPNEGO authentication library License: MIT ++++++ pyspnego-0.6.0.tar.gz -> pyspnego-0.6.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/.github/workflows/ci.yml new/pyspnego-0.6.3/.github/workflows/ci.yml --- old/pyspnego-0.6.0/.github/workflows/ci.yml 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/.github/workflows/ci.yml 2022-11-04 01:01:36.000000000 +0100 @@ -28,16 +28,16 @@ name: build sdist and universal wheel runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 - name: build sdist and universal wheel run: | python -m pip install build python -m build - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: artifact path: ./dist/* @@ -61,12 +61,10 @@ - version: cp310-win_amd64 - version: cp310-win32 - version: cp311-win_amd64 - prerelease: true - version: cp311-win32 - prerelease: true steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: artifact path: ./ @@ -80,14 +78,14 @@ rm pyspnego-*.tar.gz - name: build wheel - uses: pypa/cibuildwheel@v2.8.1 + uses: pypa/cibuildwheel@v2.11.1 env: CIBW_ARCHS: all CIBW_BUILD: ${{ matrix.version }} CIBW_BUILD_VERBOSITY: 1 CIBW_PRERELEASE_PYTHONS: ${{ matrix.prerelease || 'false' }} - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl name: artifact @@ -111,7 +109,7 @@ - 3.8 - 3.9 - '3.10' - - '3.11-dev' + - '3.11' python-arch: - x86 - x64 @@ -132,6 +130,8 @@ gssapi-provider: mit - os: macOS-12 gssapi-provider: sspi + - os: macOS-12 + python-version: '3.11' # https://github.com/actions/setup-python/issues/531 - os: windows-latest gssapi-provider: mit @@ -139,14 +139,14 @@ gssapi-provider: heimdal steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.python-arch }} - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: artifact path: ./dist @@ -154,7 +154,8 @@ - name: Extract OS name shell: bash run: | - echo "##[set-output name=name;]$( echo '${{ matrix.os }}' | tr '-' ' ' | awk '{print $1}' )" + echo NAME=$( echo '${{ matrix.os }}' | tr '-' ' ' | awk '{print $1}' ) + echo "name=${NAME}" >> $GITHUB_OUTPUT id: os - name: Test @@ -171,21 +172,21 @@ - name: Upload Test Results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Unit Test Results (${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.python-arch }}) path: ./junit/test-results.xml - name: Upload Coverage Results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Coverage Results (${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.python-arch }}) path: ./coverage.xml - name: Upload Coverage to codecov if: always() - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: files: ./coverage.xml flags: ${{ steps.os.outputs.name }},py${{ matrix.python-version }},${{ matrix.python-arch }} @@ -197,18 +198,13 @@ runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: artifact path: ./dist - - name: Remove test 3.11 wheels - shell: bash - run: | - rm -rf ./dist/*-cp311-*.whl - - name: Publish if: startsWith(github.ref, 'refs/tags/v') uses: pypa/gh-action-pypi-publish@release/v1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/.pre-commit-config.yaml new/pyspnego-0.6.3/.pre-commit-config.yaml --- old/pyspnego-0.6.0/.pre-commit-config.yaml 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/.pre-commit-config.yaml 2022-11-04 01:01:36.000000000 +0100 @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 22.10.0 hooks: - id: black @@ -10,7 +10,7 @@ - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.971 + rev: v0.982 hooks: - id: mypy exclude: ^setup.py|build/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/CHANGELOG.md new/pyspnego-0.6.3/CHANGELOG.md --- old/pyspnego-0.6.0/CHANGELOG.md 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/CHANGELOG.md 2022-11-04 01:01:36.000000000 +0100 @@ -1,5 +1,18 @@ # Changelog +## 0.6.3 - 2022-11-04 + +* Ignore `GSS_S_NO_CONTEXT` errors on GSSAPI after stepping through the token exchange before the context is complete + * This is raised by MIT krb5 before 1.14.x and can be ignored + +## 0.6.2 - 2022-10-27 + +* Fix up sdist and wheels to include `py.typed` type annotation marker + +## 0.6.1 - 2022-10-26 + +* Added Python 3.11 wheel + ## 0.6.0 - 2022-08-18 * Drop support for Python 3.6 - new minimum is 3.7+ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/pyproject.toml new/pyspnego-0.6.3/pyproject.toml --- old/pyspnego-0.6.0/pyproject.toml 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/pyproject.toml 2022-11-04 01:01:36.000000000 +0100 @@ -22,7 +22,8 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10" + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11" ] dependencies = [ "cryptography", @@ -52,7 +53,7 @@ where = ["src"] [tool.setuptools.package-data] -spnego = ["py.types"] +spnego = ["py.typed"] "spnego._sspi_raw" = ["*.pyi"] [tool.setuptools.exclude-package-data] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/requirements-test.txt new/pyspnego-0.6.3/requirements-test.txt --- old/pyspnego-0.6.0/requirements-test.txt 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/requirements-test.txt 2022-11-04 01:01:36.000000000 +0100 @@ -1,10 +1,9 @@ -black -cython +black==22.10.0 gssapi>=1.5.0 ; sys_platform != 'win32' k5test ; sys_platform != 'win32' krb5 ; sys_platform != 'win32' -isort -mypy==0.971 +isort==5.10.1 +mypy==0.982 pre-commit pytest pytest-cov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/src/spnego/_gss.py new/pyspnego-0.6.3/src/spnego/_gss.py --- old/pyspnego-0.6.0/src/spnego/_gss.py 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/src/spnego/_gss.py 2022-11-04 01:01:36.000000000 +0100 @@ -538,7 +538,7 @@ GSSMech.spnego.value: "negotiate", }.get(oid, "unknown: %s" % oid) - @property # type: ignore + @property @wrap_system_error(NativeError, "Retrieving session key") def session_key(self) -> bytes: return inquire_sec_context_by_oid(self._context, gssapi.OID.from_int_seq(_GSS_C_INQ_SSPI_SESSION_KEY))[0] @@ -549,7 +549,16 @@ log.debug("GSSAPI step input: %s", base64.b64encode(in_token or b"").decode()) out_token = self._context.step(in_token) - self._context_attr = int(self._context.actual_flags) + + try: + self._context_attr = int(self._context.actual_flags) + except gss_errors.MissingContextError: # pragma: no cover + # MIT krb5 before 1.14.x will raise this error if the context isn't + # complete. We should only treat it as an error if it happens when + # the context is complete (last step). + # https://github.com/jborean93/pyspnego/issues/55 + if self._context.complete: + raise if not self._is_wrapped: # When using NTLM through GSSAPI without it being wrapped by SPNEGO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/src/spnego/_kerberos.py new/pyspnego-0.6.3/src/spnego/_kerberos.py --- old/pyspnego-0.6.0/src/spnego/_kerberos.py 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/src/spnego/_kerberos.py 2022-11-04 01:01:36.000000000 +0100 @@ -742,7 +742,7 @@ if msg_type is not None: cls.__registry[pvno][msg_type] = cls - def __call__( # type: ignore[override] + def __call__( cls, sequence: typing.Dict[int, ASN1Value], ) -> "_KerberosMsgType": diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/src/spnego/_sspi.py new/pyspnego-0.6.3/src/spnego/_sspi.py --- old/pyspnego-0.6.0/src/spnego/_sspi.py 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/src/spnego/_sspi.py 2022-11-04 01:01:36.000000000 +0100 @@ -191,7 +191,7 @@ package_info = typing.cast(SecPkgInfo, query_context_attributes(self._context, SecPkgAttr.package_info)) return package_info.name.lower() - @property # type: ignore[misc] # mypy does not support decorated property + @property @wrap_system_error(NativeError, "Retrieving session key") def session_key(self) -> bytes: return typing.cast(bytes, query_context_attributes(self._context, SecPkgAttr.session_key)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyspnego-0.6.0/src/spnego/_version.py new/pyspnego-0.6.3/src/spnego/_version.py --- old/pyspnego-0.6.0/src/spnego/_version.py 2022-08-17 22:41:28.000000000 +0200 +++ new/pyspnego-0.6.3/src/spnego/_version.py 2022-11-04 01:01:36.000000000 +0100 @@ -1,4 +1,4 @@ # Copyright: (c) 2020, Jordan Borean (@jborean93) <jborea...@gmail.com> # MIT License (see LICENSE or https://opensource.org/licenses/MIT) -__version__ = "0.6.0" +__version__ = "0.6.3"