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.
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/actions/test-setup/action.yml +2 -2
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/coverage.yml +3 -3
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/quality.yml +3 -3
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/release.yml +6 -6
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/workflows/tests.yml +2 -2
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/PKG-INFO +1 -1
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/_pkcs11.pyx +8 -1
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/PKG-INFO +1 -1
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/actions/install-opencryptoki/action.yml +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/actions/install-softhsm/action.yml +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.github/release-template.md +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.gitignore +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.python-version +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/.readthedocs.yaml +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/LICENSE +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/MANIFEST.in +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/README.rst +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/Makefile +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/api.rst +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/applied.rst +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/concurrency.rst +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/conf.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/index.rst +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/make.bat +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/docs/opensc.rst +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/.gitignore +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/cryptoki.h +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/load_module.c +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/load_module.h +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/pkcs11.h +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/pkcs11f.h +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/extern/pkcs11t.h +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/__init__.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/_pkcs11.pxd +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/attributes.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/constants.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/defaults.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/exceptions.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/mechanisms.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/types.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/__init__.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/dh.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/dsa.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/ec.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/rsa.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pkcs11/util/x509.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/pyproject.toml +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/SOURCES.txt +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/dependency_links.txt +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/requires.txt +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/python_pkcs11.egg-info/top_level.txt +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/setup.cfg +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/__init__.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_aes.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_des.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_dh.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_digest.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_dsa.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_ecc.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_iterators.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_multilib.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_public_key_external.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_rsa.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_sessions.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_slots_and_tokens.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_threading.py +0 -0
- {python_pkcs11-0.9.2 → python_pkcs11-0.9.3}/tests/test_x509.py +0 -0
- {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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
13
|
+
uses: actions/checkout@v6
|
|
14
14
|
|
|
15
15
|
- name: Install uv
|
|
16
|
-
uses: astral-sh/setup-uv@
|
|
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@
|
|
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@
|
|
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@
|
|
78
|
+
- uses: actions/checkout@v6
|
|
79
79
|
- name: Setup Python
|
|
80
|
-
uses: actions/setup-python@
|
|
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@
|
|
91
|
+
- uses: actions/checkout@v6
|
|
92
92
|
- name: Setup Python
|
|
93
|
-
uses: actions/setup-python@
|
|
93
|
+
uses: actions/setup-python@v6
|
|
94
94
|
- name: Install uv
|
|
95
|
-
uses: astral-sh/setup-uv@
|
|
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@
|
|
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@
|
|
72
|
+
uses: actions/checkout@v6
|
|
73
73
|
- uses: ./.github/actions/test-setup
|
|
74
74
|
id: setup
|
|
75
75
|
with:
|
|
@@ -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
|
|
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],)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|