python-pkcs11 0.9.2__tar.gz → 0.9.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/actions/test-setup/action.yml +2 -2
  2. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/coverage.yml +3 -3
  3. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/quality.yml +3 -3
  4. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/release.yml +6 -6
  5. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/tests.yml +2 -2
  6. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/PKG-INFO +1 -1
  7. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/_pkcs11.pyx +8 -1
  8. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/PKG-INFO +1 -1
  9. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/actions/install-opencryptoki/action.yml +0 -0
  10. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/actions/install-softhsm/action.yml +0 -0
  11. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/release-template.md +0 -0
  12. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.gitignore +0 -0
  13. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.python-version +0 -0
  14. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.readthedocs.yaml +0 -0
  15. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/LICENSE +0 -0
  16. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/MANIFEST.in +0 -0
  17. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/README.rst +0 -0
  18. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/Makefile +0 -0
  19. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/api.rst +0 -0
  20. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/applied.rst +0 -0
  21. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/concurrency.rst +0 -0
  22. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/conf.py +0 -0
  23. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/index.rst +0 -0
  24. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/make.bat +0 -0
  25. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/opensc.rst +0 -0
  26. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/.gitignore +0 -0
  27. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/cryptoki.h +0 -0
  28. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/load_module.c +0 -0
  29. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/load_module.h +0 -0
  30. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/pkcs11.h +0 -0
  31. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/pkcs11f.h +0 -0
  32. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/pkcs11t.h +0 -0
  33. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/__init__.py +0 -0
  34. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/_pkcs11.pxd +0 -0
  35. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/attributes.py +0 -0
  36. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/constants.py +0 -0
  37. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/defaults.py +0 -0
  38. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/exceptions.py +0 -0
  39. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/mechanisms.py +0 -0
  40. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/types.py +0 -0
  41. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/__init__.py +0 -0
  42. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/dh.py +0 -0
  43. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/dsa.py +0 -0
  44. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/ec.py +0 -0
  45. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/rsa.py +0 -0
  46. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/x509.py +0 -0
  47. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pyproject.toml +0 -0
  48. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/SOURCES.txt +0 -0
  49. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/dependency_links.txt +0 -0
  50. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/requires.txt +0 -0
  51. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/top_level.txt +0 -0
  52. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/setup.cfg +0 -0
  53. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/__init__.py +0 -0
  54. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_aes.py +0 -0
  55. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_des.py +0 -0
  56. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_dh.py +0 -0
  57. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_digest.py +0 -0
  58. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_dsa.py +0 -0
  59. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_ecc.py +0 -0
  60. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_iterators.py +0 -0
  61. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_multilib.py +0 -0
  62. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_public_key_external.py +0 -0
  63. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_rsa.py +0 -0
  64. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_sessions.py +0 -0
  65. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_slots_and_tokens.py +0 -0
  66. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_threading.py +0 -0
  67. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_x509.py +0 -0
  68. {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/uv.lock +0 -0
@@ -34,7 +34,7 @@ runs:
34
34
  using: "composite"
35
35
  steps:
36
36
  - name: Setup Python
37
- uses: actions/setup-python@v5
37
+ uses: actions/setup-python@v6
38
38
  with:
39
39
  python-version: ${{ inputs.python-version }}
40
40
  - uses: ./.github/actions/install-softhsm
@@ -78,7 +78,7 @@ runs:
78
78
  env:
79
79
  PLATFORM: ${{ inputs.pkcs11-platform }}
80
80
  - name: Install uv
81
- uses: astral-sh/setup-uv@v4
81
+ uses: astral-sh/setup-uv@v7
82
82
  with:
83
83
  enable-cache: true
84
84
  python-version: ${{ inputs.python-version }}
@@ -23,7 +23,7 @@ jobs:
23
23
  - opencryptoki
24
24
  steps:
25
25
  - name: Acquire sources
26
- uses: actions/checkout@v4
26
+ uses: actions/checkout@v6
27
27
  - name: Arm coverage-only compiler directives
28
28
  # Unfortunately, it doesn't seem to be possible to pass directives
29
29
  # to Cython through environment variables: https://github.com/cython/cython/issues/3930
@@ -56,7 +56,7 @@ jobs:
56
56
  runs-on: ubuntu-latest
57
57
  steps:
58
58
  - name: Acquire sources
59
- uses: actions/checkout@v4
59
+ uses: actions/checkout@v6
60
60
  - uses: ./.github/actions/test-setup
61
61
  id: setup
62
62
  with:
@@ -85,7 +85,7 @@ jobs:
85
85
  needs: [pytest-coverage,pytest-coverage-multilib]
86
86
  steps:
87
87
  # checkout necessary to ensure the uploaded report contains the correct paths
88
- - uses: actions/checkout@v4
88
+ - uses: actions/checkout@v6
89
89
  - name: Retrieve coverage reports
90
90
  uses: actions/download-artifact@v4
91
91
  with:
@@ -10,15 +10,15 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
12
  - name: Acquire sources
13
- uses: actions/checkout@v4
13
+ uses: actions/checkout@v6
14
14
 
15
15
  - name: Install uv
16
- uses: astral-sh/setup-uv@v4
16
+ uses: astral-sh/setup-uv@v7
17
17
  with:
18
18
  enable-cache: true
19
19
 
20
20
  - name: Setup Python
21
- uses: actions/setup-python@v5
21
+ uses: actions/setup-python@v6
22
22
  with:
23
23
  python-version: "3.13"
24
24
  architecture: x64
@@ -51,7 +51,7 @@ jobs:
51
51
  echo "Tag $VERSION does not follow v<version> naming scheme"
52
52
  exit 1
53
53
  fi
54
- - uses: actions/checkout@v4
54
+ - uses: actions/checkout@v6
55
55
  - name: Generate release body
56
56
  run: |
57
57
  sed "s/:VERSION/$VERSION/g" < .github/release-template.md > release.md
@@ -75,9 +75,9 @@ jobs:
75
75
  - windows-latest
76
76
  - macos-14
77
77
  steps:
78
- - uses: actions/checkout@v4
78
+ - uses: actions/checkout@v6
79
79
  - name: Setup Python
80
- uses: actions/setup-python@v5
80
+ uses: actions/setup-python@v6
81
81
  - name: Build wheels
82
82
  uses: pypa/cibuildwheel@v3.3.0
83
83
  - uses: actions/upload-artifact@v4
@@ -88,11 +88,11 @@ jobs:
88
88
  runs-on: ubuntu-latest
89
89
  needs: [extract-params]
90
90
  steps:
91
- - uses: actions/checkout@v4
91
+ - uses: actions/checkout@v6
92
92
  - name: Setup Python
93
- uses: actions/setup-python@v5
93
+ uses: actions/setup-python@v6
94
94
  - name: Install uv
95
- uses: astral-sh/setup-uv@v4
95
+ uses: astral-sh/setup-uv@v7
96
96
  with:
97
97
  enable-cache: true
98
98
  - name: Build source distribution
@@ -40,7 +40,7 @@ jobs:
40
40
  os: macos-14
41
41
  steps:
42
42
  - name: Acquire sources
43
- uses: actions/checkout@v4
43
+ uses: actions/checkout@v6
44
44
  - uses: ./.github/actions/test-setup
45
45
  id: setup
46
46
  with:
@@ -69,7 +69,7 @@ jobs:
69
69
  - "3.14"
70
70
  steps:
71
71
  - name: Acquire sources
72
- uses: actions/checkout@v4
72
+ uses: actions/checkout@v6
73
73
  - uses: ./.github/actions/test-setup
74
74
  id: setup
75
75
  with:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-pkcs11
3
- Version: 0.9.2
3
+ Version: 0.9.3
4
4
  Summary: PKCS#11 support for Python
5
5
  Author-email: Andrey Kislyuk <kislyuk@gmail.com>, Danielle Madeley <danielle@madeley.id.au>
6
6
  Maintainer-email: Andrey Kislyuk <kislyuk@gmail.com>
@@ -1366,8 +1366,15 @@ cdef object make_object(Session session, CK_OBJECT_HANDLE handle) with gil:
1366
1366
  # Determine a list of base classes to manufacture our class with
1367
1367
  try:
1368
1368
  attributes = wrapper.get_attribute_list(&attr_keys[0], 8)
1369
- except (AttributeTypeInvalid, FunctionFailed) as e:
1369
+ except PKCS11Error:
1370
+ # retry fetching the flags one by one, some tokens do not implement error handling
1371
+ # on bulk fetches correctly.
1370
1372
  attributes = {}
1373
+ for key in attr_keys:
1374
+ try:
1375
+ attributes[key] = wrapper[key]
1376
+ except (AttributeTypeInvalid, AttributeSensitive, FunctionFailed):
1377
+ continue
1371
1378
 
1372
1379
  object_class = attributes.get(Attribute.CLASS, session.attribute_mapper)
1373
1380
  bases = (_CLASS_MAP[object_class],)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-pkcs11
3
- Version: 0.9.2
3
+ Version: 0.9.3
4
4
  Summary: PKCS#11 support for Python
5
5
  Author-email: Andrey Kislyuk <kislyuk@gmail.com>, Danielle Madeley <danielle@madeley.id.au>
6
6
  Maintainer-email: Andrey Kislyuk <kislyuk@gmail.com>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes