python-nss-ng 1.3.4__tar.gz → 1.3.6__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_nss_ng-1.3.6/.git_archival.txt +4 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/CONTRIBUTING.md +4 -4
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/Makefile +4 -4
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/PKG-INFO +8 -8
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/QUICKSTART.md +3 -3
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/README.md +5 -5
- python_nss_ng-1.3.6/_version.txt +1 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/MAKEFILE_MIGRATION.md +2 -2
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/MIGRATION.md +6 -6
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/TESTING.md +1 -1
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/pyproject.toml +5 -5
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_nspr_common.h +3 -3
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_platform_specific.py +2 -2
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/uv.lock +54 -164
- python_nss_ng-1.3.4/.git_archival.txt +0 -4
- python_nss_ng-1.3.4/_version.txt +0 -1
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/.aislop/config.yml +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/.clangd +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/AGENTS.md +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/LICENSE +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/LICENSE.gpl +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/LICENSE.lgpl +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/LICENSE.mpl +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/LICENSES/Apache-2.0.txt +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/LICENSES/MPL-2.0.txt +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/MANIFEST.in +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/REUSE.toml +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/SECURITY.md +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/ChangeLog +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/MANYLINUX_CONFIG.md +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/MUTATION_TESTING.md +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/cert_dump.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/cert_trust.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/httplib_example.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/pbkdf2_example.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/ssl_cipher_info.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/ssl_example.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/ssl_version_range.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/verify_cert.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/examples/verify_server.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/doc/get_api +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/meson.build +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/scripts/README.md +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/scripts/meson-version.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/scripts/run-all-tests.sh +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/NSPRerrs.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/SECerrs.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/SSLerrs.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/__init__.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/deprecations.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/io.pyi +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/nss.pyi +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/nss_context.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_nspr_error.c +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_nspr_error.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_nspr_io.c +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_nspr_io.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_nss.c +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_nss.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_shared_doc.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_ssl.c +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_ssl.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/py_traceback.h +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/secure_logging.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/src/ssl.pyi +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/conftest.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/exceptions.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/run_tests +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/setup_certs.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_cert_components.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_cert_request.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_certificate_advanced.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_cipher.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_client_server.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_deprecations.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_digest.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_documentation_accuracy.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_error_refleaks.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_examples.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_misc.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_performance.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_pkcs12.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_property_based.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_secure_logging.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_security.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_thread_safety.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_type_hints.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_util.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_zzz_error_messages.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_zzz_integration.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_zzz_nonexistent_certs.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_zzz_nss_context.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/test_zzz_ocsp.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/test/util.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/__init__.pyi +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/deprecations.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/error.pyi +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/io.pyi +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/nss.pyi +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/nss_context.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/secure_logging.py +0 -0
- {python_nss_ng-1.3.4 → python_nss_ng-1.3.6}/typings/nss/ssl.pyi +0 -0
|
@@ -37,7 +37,7 @@ Please be respectful and constructive in all interactions.
|
|
|
37
37
|
|
|
38
38
|
### Prerequisites
|
|
39
39
|
|
|
40
|
-
- Python 3.
|
|
40
|
+
- Python 3.11 or later
|
|
41
41
|
- NSS 3.100+ development libraries
|
|
42
42
|
- NSPR 4.35+ development libraries
|
|
43
43
|
- pkg-config
|
|
@@ -79,7 +79,7 @@ across different platforms and distributions.
|
|
|
79
79
|
|
|
80
80
|
- Fedora Linux (x86_64 and aarch64) with NSS 3.117+
|
|
81
81
|
- macOS (Apple Silicon) with Homebrew NSS/NSPR
|
|
82
|
-
- Python versions: 3.
|
|
82
|
+
- Python versions: 3.11, 3.12, 3.14, 3.15 (Linux), 3.11-3.15 (macOS)
|
|
83
83
|
|
|
84
84
|
**When it runs:**
|
|
85
85
|
|
|
@@ -153,8 +153,8 @@ security scanning, and quality checks.
|
|
|
153
153
|
└───────────┬─────────────────────────────────────────────────┘
|
|
154
154
|
│
|
|
155
155
|
├──► compatibility.yaml (Platform Testing)
|
|
156
|
-
│ ├─ Fedora x64 + ARM64 (Python 3.
|
|
157
|
-
│ └─ macOS ARM64 (Python 3.
|
|
156
|
+
│ ├─ Fedora x64 + ARM64 (Python 3.11-3.15)
|
|
157
|
+
│ └─ macOS ARM64 (Python 3.11-3.15)
|
|
158
158
|
│
|
|
159
159
|
└──► build-test.yaml (Production CI/CD)
|
|
160
160
|
├─ Extract metadata
|
|
@@ -21,13 +21,13 @@ help:
|
|
|
21
21
|
@echo " clean - Clean build artifacts"
|
|
22
22
|
@echo ""
|
|
23
23
|
@echo "Environment variables:"
|
|
24
|
-
@echo " NSS_VERSION - NSS version (default: 3.
|
|
25
|
-
@echo " NSPR_VERSION - NSPR version (default: 4.
|
|
24
|
+
@echo " NSS_VERSION - NSS version (default: 3.133)"
|
|
25
|
+
@echo " NSPR_VERSION - NSPR version (default: 4.39)"
|
|
26
26
|
@echo " INSTALL_PREFIX - Install prefix (default: /usr)"
|
|
27
27
|
|
|
28
28
|
# Configuration
|
|
29
|
-
NSS_VERSION ?= 3.
|
|
30
|
-
NSPR_VERSION ?= 4.
|
|
29
|
+
NSS_VERSION ?= 3.133
|
|
30
|
+
NSPR_VERSION ?= 4.39
|
|
31
31
|
INSTALL_PREFIX ?= /usr
|
|
32
32
|
PKG_CONFIG_PATH := $(INSTALL_PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)
|
|
33
33
|
LD_LIBRARY_PATH := $(INSTALL_PREFIX)/lib:$(LD_LIBRARY_PATH)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-nss-ng
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.6
|
|
4
4
|
Summary: Python bindings for Network Security Services (NSS) and Netscape Portable Runtime (NSPR)
|
|
5
5
|
Keywords: nss,nspr,cryptography,ssl,tls,pki,x509,security
|
|
6
6
|
Author-Email: John Dennis <jdennis@redhat.com>, Matthew Watkins <mwatkins@linuxfoundation.org>
|
|
@@ -15,11 +15,11 @@ Classifier: Operating System :: POSIX :: Linux
|
|
|
15
15
|
Classifier: Operating System :: MacOS
|
|
16
16
|
Classifier: Programming Language :: C
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
23
23
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
24
|
Classifier: Topic :: Security
|
|
25
25
|
Classifier: Topic :: Security :: Cryptography
|
|
@@ -28,7 +28,7 @@ Project-URL: Homepage, http://www.mozilla.org/projects/security/pki/python-nss-n
|
|
|
28
28
|
Project-URL: Documentation, http://www.mozilla.org/projects/security/pki/python-nss-ng
|
|
29
29
|
Project-URL: Repository, https://github.com/lfreleng-actions/python-nss-ng
|
|
30
30
|
Project-URL: Issues, https://github.com/lfreleng-actions/python-nss-ng/issues
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.11
|
|
32
32
|
Provides-Extra: test
|
|
33
33
|
Requires-Dist: pytest>=9.0.2; extra == "test"
|
|
34
34
|
Requires-Dist: pytest-cov>=7.0.0; extra == "test"
|
|
@@ -64,7 +64,7 @@ SPDX-FileCopyrightText: 2025 The Linux Foundation
|
|
|
64
64
|
|
|
65
65
|
[](https://github.com/lfreleng-actions/python-nss-ng/actions/workflows/compatibility.yaml)
|
|
66
66
|
[](https://github.com/lfreleng-actions/python-nss-ng/actions/workflows/build-test.yaml)
|
|
67
|
-
[](https://www.python.org/downloads/)
|
|
68
68
|
[](https://opensource.org/licenses/MPL-2.0)
|
|
69
69
|
|
|
70
70
|
Python bindings for Network Security Services (NSS) and Netscape Portable
|
|
@@ -99,7 +99,7 @@ and build standards:
|
|
|
99
99
|
|
|
100
100
|
### Changes Made
|
|
101
101
|
|
|
102
|
-
- **Python Support**: Now supports Python 3.
|
|
102
|
+
- **Python Support**: Now supports Python 3.11, 3.12, 3.13, 3.14, and 3.15
|
|
103
103
|
- **Build System**: Migrated from legacy `distutils` to modern `setuptools`
|
|
104
104
|
with `pyproject.toml`
|
|
105
105
|
- **Version Management**: Implemented dynamic versioning using
|
|
@@ -124,7 +124,7 @@ works with NSS 3.117.
|
|
|
124
124
|
|
|
125
125
|
- NSS 3.117
|
|
126
126
|
- NSPR 4.38.2
|
|
127
|
-
- Python 3.
|
|
127
|
+
- Python 3.11, 3.12, 3.13, 3.14, 3.15
|
|
128
128
|
|
|
129
129
|
## System Requirements
|
|
130
130
|
|
|
@@ -156,8 +156,8 @@ brew install nss nspr
|
|
|
156
156
|
### Using uv (Recommended)
|
|
157
157
|
|
|
158
158
|
```bash
|
|
159
|
-
# Create a virtual environment with Python 3.
|
|
160
|
-
uv venv --python 3.
|
|
159
|
+
# Create a virtual environment with Python 3.11+
|
|
160
|
+
uv venv --python 3.11
|
|
161
161
|
|
|
162
162
|
# Activate the environment
|
|
163
163
|
source .venv/bin/activate # Linux/macOS
|
|
@@ -34,7 +34,7 @@ brew install nss nspr pkg-config
|
|
|
34
34
|
|
|
35
35
|
### Python Requirements
|
|
36
36
|
|
|
37
|
-
- Python 3.
|
|
37
|
+
- Python 3.11 or later
|
|
38
38
|
- pip or uv package manager
|
|
39
39
|
|
|
40
40
|
## Quick Setup
|
|
@@ -50,7 +50,7 @@ git clone https://github.com/lfreleng-actions/python-nss-ng.git
|
|
|
50
50
|
cd python-nss-ng
|
|
51
51
|
|
|
52
52
|
# Create virtual environment and install dependencies
|
|
53
|
-
uv venv --python 3.
|
|
53
|
+
uv venv --python 3.11
|
|
54
54
|
source .venv/bin/activate # Linux/macOS
|
|
55
55
|
# or
|
|
56
56
|
.venv\Scripts\activate # Windows
|
|
@@ -78,7 +78,7 @@ pip install -e ".[dev]"
|
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
80
|
# Check Python version
|
|
81
|
-
python --version # Should be 3.
|
|
81
|
+
python --version # Should be 3.11+
|
|
82
82
|
|
|
83
83
|
# Check NSS/NSPR installation
|
|
84
84
|
pkg-config --modversion nss
|
|
@@ -7,7 +7,7 @@ SPDX-FileCopyrightText: 2025 The Linux Foundation
|
|
|
7
7
|
|
|
8
8
|
[](https://github.com/lfreleng-actions/python-nss-ng/actions/workflows/compatibility.yaml)
|
|
9
9
|
[](https://github.com/lfreleng-actions/python-nss-ng/actions/workflows/build-test.yaml)
|
|
10
|
-
[](https://www.python.org/downloads/)
|
|
11
11
|
[](https://opensource.org/licenses/MPL-2.0)
|
|
12
12
|
|
|
13
13
|
Python bindings for Network Security Services (NSS) and Netscape Portable
|
|
@@ -42,7 +42,7 @@ and build standards:
|
|
|
42
42
|
|
|
43
43
|
### Changes Made
|
|
44
44
|
|
|
45
|
-
- **Python Support**: Now supports Python 3.
|
|
45
|
+
- **Python Support**: Now supports Python 3.11, 3.12, 3.13, 3.14, and 3.15
|
|
46
46
|
- **Build System**: Migrated from legacy `distutils` to modern `setuptools`
|
|
47
47
|
with `pyproject.toml`
|
|
48
48
|
- **Version Management**: Implemented dynamic versioning using
|
|
@@ -67,7 +67,7 @@ works with NSS 3.117.
|
|
|
67
67
|
|
|
68
68
|
- NSS 3.117
|
|
69
69
|
- NSPR 4.38.2
|
|
70
|
-
- Python 3.
|
|
70
|
+
- Python 3.11, 3.12, 3.13, 3.14, 3.15
|
|
71
71
|
|
|
72
72
|
## System Requirements
|
|
73
73
|
|
|
@@ -99,8 +99,8 @@ brew install nss nspr
|
|
|
99
99
|
### Using uv (Recommended)
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
# Create a virtual environment with Python 3.
|
|
103
|
-
uv venv --python 3.
|
|
102
|
+
# Create a virtual environment with Python 3.11+
|
|
103
|
+
uv venv --python 3.11
|
|
104
104
|
|
|
105
105
|
# Activate the environment
|
|
106
106
|
source .venv/bin/activate # Linux/macOS
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.3.6
|
|
@@ -58,8 +58,8 @@ Created identical Makefiles for both repositories with the following targets:
|
|
|
58
58
|
**Configuration Variables:**
|
|
59
59
|
|
|
60
60
|
```makefile
|
|
61
|
-
NSS_VERSION ?= 3.
|
|
62
|
-
NSPR_VERSION ?= 4.
|
|
61
|
+
NSS_VERSION ?= 3.133
|
|
62
|
+
NSPR_VERSION ?= 4.39
|
|
63
63
|
INSTALL_PREFIX ?= /usr
|
|
64
64
|
```
|
|
65
65
|
|
|
@@ -13,7 +13,7 @@ project to bring it up to current Python packaging standards (2025).
|
|
|
13
13
|
The python-nss-ng project was originally built with the legacy
|
|
14
14
|
`distutils` build system. This migration updates the project to:
|
|
15
15
|
|
|
16
|
-
- Support Python 3.
|
|
16
|
+
- Support Python 3.11+ (3.11, 3.12, 3.13, 3.14, 3.15)
|
|
17
17
|
- Use modern packaging standards (PEP 517, PEP 518, PEP 621)
|
|
18
18
|
- Use dynamic versioning from git tags
|
|
19
19
|
- Support modern development tools (uv, pytest, ruff)
|
|
@@ -53,7 +53,7 @@ build-backend = "setuptools.build_meta"
|
|
|
53
53
|
[project]
|
|
54
54
|
name = "python-nss-ng"
|
|
55
55
|
dynamic = ["version"]
|
|
56
|
-
requires-python = ">=3.
|
|
56
|
+
requires-python = ">=3.11"
|
|
57
57
|
# ... modern metadata
|
|
58
58
|
```
|
|
59
59
|
|
|
@@ -155,7 +155,7 @@ dev = [
|
|
|
155
155
|
|
|
156
156
|
#### Modern Support
|
|
157
157
|
|
|
158
|
-
- Explicit support: Python 3.
|
|
158
|
+
- Explicit support: Python 3.11, 3.12, 3.13, 3.14, 3.15
|
|
159
159
|
- Modern `setuptools` build backend
|
|
160
160
|
- Compatible with PEP 517/518 build frontends (pip, build, uv)
|
|
161
161
|
|
|
@@ -216,7 +216,7 @@ addopts = ["-v", "--strict-markers", "--tb=short"]
|
|
|
216
216
|
```toml
|
|
217
217
|
[tool.ruff]
|
|
218
218
|
line-length = 100
|
|
219
|
-
target-version = "
|
|
219
|
+
target-version = "py311"
|
|
220
220
|
|
|
221
221
|
[tool.ruff.lint]
|
|
222
222
|
select = ["E", "W", "F", "I", "B", "C4", "UP"]
|
|
@@ -270,7 +270,7 @@ branch = true
|
|
|
270
270
|
|
|
271
271
|
```bash
|
|
272
272
|
# Development environment
|
|
273
|
-
uv venv --python 3.
|
|
273
|
+
uv venv --python 3.11
|
|
274
274
|
source .venv/bin/activate
|
|
275
275
|
uv pip install -e ".[dev]"
|
|
276
276
|
```
|
|
@@ -293,7 +293,7 @@ python -m build
|
|
|
293
293
|
|
|
294
294
|
### Breaking Changes
|
|
295
295
|
|
|
296
|
-
- **Lower Bound Python version**: Now requires Python 3.
|
|
296
|
+
- **Lower Bound Python version**: Now requires Python 3.11+
|
|
297
297
|
- **Build system**: `python setup.py install` no longer recommended
|
|
298
298
|
- **Import changes**: None (backward compatible)
|
|
299
299
|
|
|
@@ -302,7 +302,7 @@ NSS-Dependent Tests: ~182 (requires C extension)
|
|
|
302
302
|
**Advanced Tests** (`.github/workflows/advanced-tests.yaml`):
|
|
303
303
|
|
|
304
304
|
- Runs on every PR/push
|
|
305
|
-
- Pure Python tests (Python 3.
|
|
305
|
+
- Pure Python tests (Python 3.11-3.15)
|
|
306
306
|
- Property-based tests
|
|
307
307
|
- Thread safety tests
|
|
308
308
|
- Type checking
|
|
@@ -16,7 +16,7 @@ description = "Python bindings for Network Security Services (NSS) and Netscape
|
|
|
16
16
|
readme = "README.md"
|
|
17
17
|
license = "MPL-2.0 OR GPL-2.0-or-later OR LGPL-2.0-or-later"
|
|
18
18
|
license-files = ["LICENSE", "LICENSES/MPL-2.0.txt"]
|
|
19
|
-
requires-python = ">=3.
|
|
19
|
+
requires-python = ">=3.11"
|
|
20
20
|
authors = [
|
|
21
21
|
{name = "John Dennis", email = "jdennis@redhat.com"},
|
|
22
22
|
{name = "Matthew Watkins", email = "mwatkins@linuxfoundation.org"},
|
|
@@ -43,11 +43,11 @@ classifiers = [
|
|
|
43
43
|
"Operating System :: MacOS",
|
|
44
44
|
"Programming Language :: C",
|
|
45
45
|
"Programming Language :: Python :: 3",
|
|
46
|
-
"Programming Language :: Python :: 3.10",
|
|
47
46
|
"Programming Language :: Python :: 3.11",
|
|
48
47
|
"Programming Language :: Python :: 3.12",
|
|
49
48
|
"Programming Language :: Python :: 3.13",
|
|
50
49
|
"Programming Language :: Python :: 3.14",
|
|
50
|
+
"Programming Language :: Python :: 3.15",
|
|
51
51
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
52
52
|
"Topic :: Security",
|
|
53
53
|
"Topic :: Security :: Cryptography",
|
|
@@ -142,7 +142,7 @@ exclude_lines = [
|
|
|
142
142
|
|
|
143
143
|
[tool.ruff]
|
|
144
144
|
line-length = 100
|
|
145
|
-
target-version = "
|
|
145
|
+
target-version = "py311"
|
|
146
146
|
exclude = [
|
|
147
147
|
".git",
|
|
148
148
|
"__pycache__",
|
|
@@ -255,7 +255,7 @@ ignore = [
|
|
|
255
255
|
known-first-party = ["nss"]
|
|
256
256
|
|
|
257
257
|
[tool.mypy]
|
|
258
|
-
python_version = "3.
|
|
258
|
+
python_version = "3.11"
|
|
259
259
|
warn_unused_ignores = true
|
|
260
260
|
disallow_any_generics = true
|
|
261
261
|
disallow_incomplete_defs = true
|
|
@@ -305,7 +305,7 @@ disable_error_code = [
|
|
|
305
305
|
|
|
306
306
|
[tool.basedpyright]
|
|
307
307
|
# Minimum supported Python, from requires-python
|
|
308
|
-
pythonVersion = "3.
|
|
308
|
+
pythonVersion = "3.11"
|
|
309
309
|
pythonPlatform = "All"
|
|
310
310
|
typeCheckingMode = "standard"
|
|
311
311
|
# Scope a bare ``basedpyright`` run and the editor's language server to
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
#define PACKAGE_NAME "nss"
|
|
11
11
|
|
|
12
|
-
#if PY_VERSION_HEX <
|
|
13
|
-
#error "Python version must be at least 3.
|
|
12
|
+
#if PY_VERSION_HEX < 0x030B0000
|
|
13
|
+
#error "Python version must be at least 3.11"
|
|
14
14
|
#endif
|
|
15
15
|
|
|
16
16
|
#define PyNone_Check(x) ((x) == Py_None)
|
|
17
17
|
|
|
18
18
|
/******************************************************************************
|
|
19
|
-
* Python 3.
|
|
19
|
+
* Python 3.11+ *
|
|
20
20
|
******************************************************************************/
|
|
21
21
|
|
|
22
22
|
#define IS_PY3K
|
|
@@ -51,9 +51,9 @@ class TestPlatformDetection:
|
|
|
51
51
|
"""Test that Python version is supported."""
|
|
52
52
|
version_info = sys.version_info
|
|
53
53
|
|
|
54
|
-
# Should be Python 3.
|
|
54
|
+
# Should be Python 3.11+
|
|
55
55
|
assert version_info.major == 3, "Python 3 required"
|
|
56
|
-
assert version_info.minor >=
|
|
56
|
+
assert version_info.minor >= 11, "Python 3.11+ required"
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
class TestMacOSSpecific:
|