Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions qase-python-commons/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# qase-python-commons@5.0.6

## What's new

- Fixed `ModuleNotFoundError: No module named 'pip'` in environments managed by `uv`, which does not install `pip` by default. The `pip` import is now optional with a fallback to `"unknown"` for telemetry version reporting. Resolves [#466](https://github.com/qase-tms/qase-python/issues/466).

# qase-python-commons@5.0.3

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-python-commons/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-python-commons"
version = "5.0.5"
version = "5.0.6"
description = "A library for Qase TestOps and Qase Report"
readme = "README.md"
authors = [{name = "Qase Team", email = "support@qase.io"}]
Expand Down
8 changes: 6 additions & 2 deletions qase-python-commons/src/qase/commons/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import threading
import sys
from typing import Union, List
import pip
try:
import pip
pip_version = pip.__version__
except ModuleNotFoundError:
pip_version = "unknown"
import string
import uuid
import time
Expand Down Expand Up @@ -134,7 +138,7 @@ def get_host_data() -> dict:
"version": platform.uname().version,
"machine": platform.uname().machine,
'python': '.'.join(map(str, sys.version_info)),
'pip': pip.__version__
'pip': pip_version
}
except Exception as e:
return {}
Expand Down
Loading