diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 08dcd9c..212450c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,7 +89,7 @@ jobs: - name: test run: | uv venv - . .venv/Scripts/activate && uv pip install -e . && python -c "import rfc3161_client" + . .venv/Scripts/activate && uv pip install -e '.[test]' && pytest --cov=rfc3161_client # make test INSTALL_EXTRA=test shell: bash env: diff --git a/src/rfc3161_client/__init__.py b/src/rfc3161_client/__init__.py index 3a76fff..7d8bda0 100644 --- a/src/rfc3161_client/__init__.py +++ b/src/rfc3161_client/__init__.py @@ -5,11 +5,18 @@ from pathlib import Path def add_missing_dlls(): - print(f'ADD MISSING DIR {platform.system()}') + """Add required DLL search directories for Windows platform. + + This function ensures DLLs can be found by: + 1. Adding OpenSSL directory from OPENSSL_DIR environment variable (if set) + 2. Adding Python installation directory + + These directories are only added on Windows platforms. On other platforms, + the function returns without making any changes. + """ if platform.system() != "Windows": return - print(f"Adding directories to DLL directory") if openssl_dir := os.environ.get("OPENSSL_DIR"): os.add_dll_directory(openssl_dir)