Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-PyKCS11 for openSUSE:Factory 
checked in at 2026-11-23 12:25:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyKCS11 (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyKCS11.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyKCS11"

Mon Nov 23 12:25:35 2026 rev:9 rq:1399769 version:1.5.21

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyKCS11/python-PyKCS11.changes    
2026-08-29 17:43:15.082932776 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-PyKCS11.new.1340718/python-PyKCS11.changes   
    2026-11-23 12:30:04.732562910 +0100
@@ -1,0 +2,7 @@
+Sun Nov 22 14:03:36 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 1.5.21:
+  * getMechanismList(): do not return mechanism 0x1D (debug
+    code
+
+-------------------------------------------------------------------

Old:
----
  python-PyKCS11-1.5.19.tar.gz

New:
----
  python-PyKCS11-1.5.21.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-PyKCS11.spec ++++++
--- /var/tmp/diff_new_pack.CuJOjk/_old  2026-11-23 12:30:06.178623786 +0100
+++ /var/tmp/diff_new_pack.CuJOjk/_new  2026-11-23 12:30:06.184624038 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-PyKCS11
-Version:        1.5.19
+Version:        1.5.21
 Release:        0
 Summary:        A Full PKCS#11 wrapper for Python
 License:        GPL-2.0-or-later

++++++ python-PyKCS11-1.5.19.tar.gz -> python-PyKCS11-1.5.21.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/.github/workflows/linux.yml 
new/PyKCS11-1.5.21/.github/workflows/linux.yml
--- old/PyKCS11-1.5.19/.github/workflows/linux.yml      2026-08-26 
15:36:32.000000000 +0200
+++ new/PyKCS11-1.5.21/.github/workflows/linux.yml      2026-10-31 
14:17:54.000000000 +0100
@@ -13,6 +13,9 @@
   # This workflow contains a single job called "build"
   build:
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python-version: ['3.12', '3.13', '3.14', '3.15']
 
     # Steps represent a sequence of tasks that will be executed as part of
     # the job
@@ -21,15 +24,24 @@
       # can access it
       - uses: actions/checkout@v7
 
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v7
+        with:
+          python-version: ${{ matrix.python-version }}
+
       - name: setup prerequisites (linux)
         shell: bash
-        run: sudo apt install python3-all-dev python3-setuptools softhsm2 swig 
tox
+        run: |
+          sudo apt update
+          sudo apt install -y softhsm2 swig
+          python -m pip install --upgrade pip
+          pip install tox
 
       - name: Build
         run: |
-          python3 -m venv temp
+          python -m venv temp
           source temp/bin/activate
-          pip3 install -r dev-requirements.txt
+          pip install -r dev-requirements.txt
           make
 
       - name: Test
@@ -41,8 +53,7 @@
           softhsm2-util --init-token --slot 0 --label "A token" --pin 1234 
--so-pin 123456
           source temp/bin/activate
           make install
-          # test_symetric_ECC blocks on GNU/Linux for now
-          ./run_test.py
+          make test
 
       - name: pylint
         run: |
@@ -53,7 +64,8 @@
         shell: bash
         run: |
           ./get_PYKCS11LIB.py > tox.env
-          tox -e py312
+          TOX_ENV="py$(echo ${{ matrix.python-version }} | tr -d '.')"
+          tox -e "$TOX_ENV"
 
       - name: coverage
         shell: bash
@@ -67,3 +79,66 @@
         uses: AndreMiras/coveralls-python-action@develop
         with:
           github-token: ${{ secrets.GITHUB_TOKEN }}
+
+  build_wheels:
+    name: Build wheels on Linux
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v7
+
+      - name: Build wheels
+        uses: pypa/[email protected]
+        env:
+          CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-* cp314t-*"
+
+      - uses: actions/upload-artifact@v7
+        with:
+          name: cibw-wheels-linux
+          path: ./wheelhouse/*.whl
+
+  build_sdist:
+    name: Build source distribution
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v7
+
+      - name: Set up Python
+        uses: actions/setup-python@v7
+        with:
+          python-version: '3.15'
+
+      - name: Install build
+        run: python -m pip install --upgrade pip build
+
+      - name: Build sdist
+        run: python -m build --sdist
+
+      - uses: actions/upload-artifact@v7
+        with:
+          name: cibw-sdist
+          path: dist/*.tar.gz
+
+  publish:
+    name: "PyPI Publish"
+    needs: ["build", "build_wheels", "build_sdist"]
+    if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
+    runs-on: "ubuntu-latest"
+    environment:
+      name: pypi
+      url: https://pypi.org/p/pykcs11
+    permissions:
+      id-token: write
+
+    steps:
+      - name: Download artifacts
+        uses: 
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # 8.0.2
+
+      - name: move wheels and sdist to dist/
+        run: |
+          mkdir -v dist
+          mv -v cibw-wheels-linux/*.whl dist/
+          mv -v cibw-sdist/*.tar.gz dist/
+          ls -al dist/
+
+      - name: Publish to PyPI
+        uses: 
pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/.github/workflows/macos.yml 
new/PyKCS11-1.5.21/.github/workflows/macos.yml
--- old/PyKCS11-1.5.19/.github/workflows/macos.yml      2026-08-26 
15:36:32.000000000 +0200
+++ new/PyKCS11-1.5.21/.github/workflows/macos.yml      2026-10-31 
14:17:54.000000000 +0100
@@ -9,7 +9,7 @@
 
     strategy:
       matrix:
-        python-version: ['3.12', '3.13', '3.14']
+        python-version: ['3.12', '3.13', '3.14', '3.15']
 
     steps:
     - uses: actions/checkout@v7
@@ -57,7 +57,7 @@
     steps:
 
       - name: Download artifacts
-        uses: 
actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
+        uses: 
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # 8.0.2
 
       - name: move wheels to dist/
         run: |
@@ -66,4 +66,4 @@
           ls -al dist/
 
       - name: Publish wheels to PyPI
-        uses: 
pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
+        uses: 
pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/.github/workflows/windows.yml 
new/PyKCS11-1.5.21/.github/workflows/windows.yml
--- old/PyKCS11-1.5.19/.github/workflows/windows.yml    2026-08-26 
15:36:32.000000000 +0200
+++ new/PyKCS11-1.5.21/.github/workflows/windows.yml    2026-10-31 
14:17:54.000000000 +0100
@@ -9,7 +9,7 @@
 
     strategy:
       matrix:
-        python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 
'3.14']
+        python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 
'3.14', '3.15']
         windows-arch: ['x86', 'x64']
 
     steps:
@@ -55,7 +55,7 @@
         set SOFTHSM2_CONF=C:\SoftHSM2\etc\softhsm2.conf
         set PATH=%PATH%;C:\SoftHSM2\lib\
         c:\\SoftHSM2\\bin\\softhsm2-util --init-token --slot 0 --label "A 
token" --pin 1234 --so-pin 123456
-        python run_test.py --ignore=test/test_LowLevel.py
+        python run_pytest.py -v
 
     - uses: actions/upload-artifact@v7
       with:
@@ -76,7 +76,7 @@
     steps:
 
       - name: Download artifacts
-        uses: 
actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
+        uses: 
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # 8.0.2
 
       - name: move wheels to dist/
         run: |
@@ -85,4 +85,4 @@
           ls -al dist/
 
       - name: Publish wheels to PyPI
-        uses: 
pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
+        uses: 
pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/.pre-commit-config.yaml 
new/PyKCS11-1.5.21/.pre-commit-config.yaml
--- old/PyKCS11-1.5.19/.pre-commit-config.yaml  2026-08-26 15:36:32.000000000 
+0200
+++ new/PyKCS11-1.5.21/.pre-commit-config.yaml  2026-10-31 14:17:54.000000000 
+0100
@@ -56,18 +56,18 @@
           - "--py39-plus"
 
   - repo: "https://github.com/psf/black-pre-commit-mirror";
-    rev: "26.5.1"
+    rev: "26.10.0"
     hooks:
       - id: "black"
 
   - repo: "https://github.com/pycqa/isort";
-    rev: "9.0.0a3"
+    rev: "9.0.2"
     hooks:
       - id: "isort"
         args: ["--profile", "black", "--filter-files"]
 
   - repo: "https://github.com/python-jsonschema/check-jsonschema";
-    rev: "0.37.4"
+    rev: "0.38.2"
     hooks:
       - id: "check-github-workflows"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/Changes.txt 
new/PyKCS11-1.5.21/Changes.txt
--- old/PyKCS11-1.5.19/Changes.txt      2026-08-26 15:36:32.000000000 +0200
+++ new/PyKCS11-1.5.21/Changes.txt      2026-10-31 14:17:54.000000000 +0100
@@ -1,6 +1,14 @@
 History
 =======
 
+1.5.21 - October 2026, Ludovic Rousseau
+  - getMechanismList(): do not return mechanism 0x1D (debug code
+    introduced by mistake in release 1.5.19)
+  - build binary wheels for Pyuthon 3.15
+
+1.5.20 - September 2026, Ludovic Rousseau
+  - fix C_Initialize() crash on Windows
+
 1.5.19 - August 2026, Ludovic Rousseau
   - Add support of swig 4.5.0
   - getMechanismList(): do not fail on unknown mechanisms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/docs/conf.py 
new/PyKCS11-1.5.21/docs/conf.py
--- old/PyKCS11-1.5.19/docs/conf.py     2026-08-26 15:36:32.000000000 +0200
+++ new/PyKCS11-1.5.21/docs/conf.py     2026-10-31 14:17:54.000000000 +0100
@@ -25,7 +25,7 @@
 # The short X.Y version
 version = "1.5"
 # The full version, including alpha/beta/rc tags
-release = "1.5.19"
+release = "1.5.21"
 
 
 # -- General configuration ---------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/setup.py new/PyKCS11-1.5.21/setup.py
--- old/PyKCS11-1.5.19/setup.py 2026-08-26 15:36:32.000000000 +0200
+++ new/PyKCS11-1.5.21/setup.py 2026-10-31 14:17:54.000000000 +0100
@@ -16,7 +16,6 @@
 classifiers = [
     "Development Status :: 5 - Production/Stable",
     "Intended Audience :: Developers",
-    "License :: OSI Approved :: GNU General Public License (GPL)",
     "Natural Language :: English",
     "Operating System :: Microsoft :: Windows",
     "Operating System :: OS Independent",
@@ -73,7 +72,7 @@
 
 setup(
     name="pykcs11",
-    version="1.5.19",
+    version="1.5.21",
     description="A Full PKCS#11 wrapper for Python",
     keywords="crypto,pki,pkcs11,c++",
     classifiers=classifiers,
@@ -84,8 +83,7 @@
     maintainer="Ludovic Rousseau",
     maintainer_email="[email protected]",
     url="https://github.com/LudovicRousseau/PyKCS11";,
-    download_url="http://sourceforge.net/projects/pkcs11wrap/files/pykcs11/";,
-    license="GPL",
+    license="GPL-2.0-or-later",
     cmdclass={"build_py": MyBuild},
     package_dir={"": "src"},
     ext_modules=[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/src/PyKCS11/__init__.py 
new/PyKCS11-1.5.21/src/PyKCS11/__init__.py
--- old/PyKCS11-1.5.19/src/PyKCS11/__init__.py  2026-08-26 15:36:32.000000000 
+0200
+++ new/PyKCS11-1.5.21/src/PyKCS11/__init__.py  2026-10-31 14:17:54.000000000 
+0100
@@ -746,7 +746,6 @@
             raise PyKCS11Error(rv)
 
         m = []
-        mechanismList.append(0x1D)
         for mechanism in mechanismList:
             # Dynamically add unknown mechanisms:
             if mechanism not in CKM:
@@ -1088,8 +1087,8 @@
     def __init__(self, extractParams):
         """
         :param extractParams: the index of the first bit of the original
-        key to be used in the newly-derived key.  For example if
-        extractParams=5 then the 5 first bits are skipped and not used.
+         key to be used in the newly-derived key.  For example if
+         extractParams=5 then the 5 first bits are skipped and not used.
         """
         self._param = PyKCS11.LowLevel.CK_EXTRACT_PARAMS()
         self._param.assign(extractParams)
@@ -1111,8 +1110,8 @@
 
     def __init__(self, phFlag=None, contextData=None):
         """
-        :param phFlag: prehash flag [True|False]. If this parameter is not set,
-        Ed25519 in pure mode without context is assumed.
+        :param phFlag: prehash flag [True|False]. If this parameter is not
+         set, Ed25519 in pure mode without context is assumed.
         :param context: context data (optional)
         """
         self._param = PyKCS11.LowLevel.CK_EDDSA_PARAMS()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/src/opensc/pkcs11.h 
new/PyKCS11-1.5.21/src/opensc/pkcs11.h
--- old/PyKCS11-1.5.19/src/opensc/pkcs11.h      2026-08-26 15:36:32.000000000 
+0200
+++ new/PyKCS11-1.5.21/src/opensc/pkcs11.h      2026-10-31 14:17:54.000000000 
+0100
@@ -1259,6 +1259,10 @@
 typedef CK_RV (* CK_LOCKMUTEX)(void *);
 typedef CK_RV (* CK_UNLOCKMUTEX)(void *);
 
+#if defined(_WIN32)
+#pragma pack(push, cryptoki, 1)
+#endif
+
 /* General Structure definitions */
 struct CK_ATTRIBUTE {
     CK_ATTRIBUTE_TYPE type;
@@ -2770,6 +2774,9 @@
     CK_C_WaitForSlotEvent C_WaitForSlotEvent;
 };
 
+#if defined(_WIN32)
+#pragma pack(pop, cryptoki)
+#endif
 
 // clang-format on
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/test/test_info.py 
new/PyKCS11-1.5.21/test/test_info.py
--- old/PyKCS11-1.5.19/test/test_info.py        2026-08-26 15:36:32.000000000 
+0200
+++ new/PyKCS11-1.5.21/test/test_info.py        2026-10-31 14:17:54.000000000 
+0100
@@ -64,3 +64,9 @@
         info = self.pkcs11.getMechanismInfo(self.slot, mechanisms[0])
         text = str(info)
         self.assertIsNotNone(text)
+
+        # check all mechanisms
+        for mechanism in mechanisms:
+            info = self.pkcs11.getMechanismInfo(self.slot, mechanism)
+            text = str(info)
+            self.assertIsNotNone(text)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/test/test_symetric.py 
new/PyKCS11-1.5.21/test/test_symetric.py
--- old/PyKCS11-1.5.19/test/test_symetric.py    2026-08-26 15:36:32.000000000 
+0200
+++ new/PyKCS11-1.5.21/test/test_symetric.py    2026-10-31 14:17:54.000000000 
+0100
@@ -2,14 +2,15 @@
 # pylint: disable=missing-class-docstring
 # pylint: disable=missing-function-docstring
 
-import unittest
 import logging
+import unittest
 
 from PyKCS11 import PyKCS11
 
-test_logger = logging.getLogger('test_logger')
+test_logger = logging.getLogger("test_logger")
 test_logger.setLevel(logging.DEBUG)
 
+
 class TestUtil(unittest.TestCase):
     def setUp(self):
         self.pkcs11 = PyKCS11.PyKCS11Lib()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/PyKCS11-1.5.19/tox.ini new/PyKCS11-1.5.21/tox.ini
--- old/PyKCS11-1.5.19/tox.ini  2026-08-26 15:36:32.000000000 +0200
+++ new/PyKCS11-1.5.21/tox.ini  2026-10-31 14:17:54.000000000 +0100
@@ -8,16 +8,16 @@
     pylint
     build
     coverage_erase
-    py{3.9, 3.10, 3.11, 3.12, 3.13}
+    py{3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.13t, 3.14t, 3.15}
     coverage_report
 skip_missing_interpreters = True
 labels =
-    build=build-py{3.9, 3.10, 3.11, 3.12, 3.13}
+    build=build-py{3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.13t, 3.14t, 3.15}
 
 [testenv]
 description = run the tests with pytest
 depends =
-    py{3.9, 3.10, 3.11, 3.12, 3.13}: coverage_erase
+    py{3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.13t, 3.14t, 3.15}: coverage_erase
 deps =
     pytest>=6
     -r{toxinidir}/dev-requirements.txt
@@ -26,6 +26,12 @@
 commands =
     coverage run -m pytest {tty:--color=yes} {posargs}
 
+[testenv:py313t]
+basepython = python3.13t
+
+[testenv:py314t]
+basepython = python3.14t
+
 [testenv:build]
 description = Build sdist and wheel files
 skip_install = True
@@ -43,7 +49,7 @@
     - coverage erase
 
 [testenv:coverage_report{,-ci}]
-depends = py{3.9, 3.10, 3.11, 3.12, 3.13}
+depends = py{3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.13t, 3.14t, 3.15}
 description =
     !ci: Generate HTML and console reports
     ci: Generate an XML report

Reply via email to