qase-python-commons 3.5.7__tar.gz → 4.0.0__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.
Potentially problematic release.
This version of qase-python-commons might be problematic. Click here for more details.
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/PKG-INFO +5 -6
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/pyproject.toml +7 -8
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/attachment.py +11 -8
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase_python_commons.egg-info/PKG-INFO +5 -6
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase_python_commons.egg-info/requires.txt +2 -2
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/README.md +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/setup.cfg +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/client/api_v1_client.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/config.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/api.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/batch.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/connection.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/framework.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/plan.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/qaseconfig.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/report.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/run.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/testops.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/external_link.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/reporters/core.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/reporters/testops.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/util/__init__.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/util/host_data.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase_python_commons.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.0
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/main/qase-python-commons
|
|
@@ -12,18 +12,17 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
12
12
|
Classifier: Topic :: Software Development :: Testing
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
-
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Requires-Python: >=3.9
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
23
22
|
Requires-Dist: certifi>=2024.2.2
|
|
24
23
|
Requires-Dist: attrs>=23.2.0
|
|
25
|
-
Requires-Dist: qase-api-client~=
|
|
26
|
-
Requires-Dist: qase-api-v2-client~=
|
|
24
|
+
Requires-Dist: qase-api-client~=2.0.0
|
|
25
|
+
Requires-Dist: qase-api-v2-client~=2.0.0
|
|
27
26
|
Requires-Dist: more_itertools
|
|
28
27
|
Provides-Extra: testing
|
|
29
28
|
Requires-Dist: pytest; extra == "testing"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qase-python-commons"
|
|
7
|
-
version = "
|
|
7
|
+
version = "4.0.0"
|
|
8
8
|
description = "A library for Qase TestOps and Qase Report"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "Qase Team", email = "support@qase.io"}]
|
|
@@ -18,20 +18,19 @@ classifiers = [
|
|
|
18
18
|
'Topic :: Software Development :: Testing',
|
|
19
19
|
'Programming Language :: Python :: 3',
|
|
20
20
|
'Programming Language :: Python :: 3 :: Only',
|
|
21
|
-
'Programming Language :: Python :: 3.7',
|
|
22
|
-
'Programming Language :: Python :: 3.8',
|
|
23
21
|
'Programming Language :: Python :: 3.9',
|
|
24
22
|
'Programming Language :: Python :: 3.10',
|
|
25
23
|
'Programming Language :: Python :: 3.11',
|
|
26
24
|
'Programming Language :: Python :: 3.12',
|
|
25
|
+
'Programming Language :: Python :: 3.13',
|
|
27
26
|
]
|
|
28
27
|
urls = {"Homepage" = "https://github.com/qase-tms/qase-python/tree/main/qase-python-commons"}
|
|
29
|
-
requires-python = ">=3.
|
|
28
|
+
requires-python = ">=3.9"
|
|
30
29
|
dependencies = [
|
|
31
30
|
"certifi>=2024.2.2",
|
|
32
31
|
"attrs>=23.2.0",
|
|
33
|
-
"qase-api-client~=
|
|
34
|
-
"qase-api-v2-client~=
|
|
32
|
+
"qase-api-client~=2.0.0",
|
|
33
|
+
"qase-api-v2-client~=2.0.0",
|
|
35
34
|
"more_itertools"
|
|
36
35
|
]
|
|
37
36
|
|
|
@@ -48,8 +47,8 @@ testing = [
|
|
|
48
47
|
[tool.tox]
|
|
49
48
|
legacy_tox_ini = """
|
|
50
49
|
[tox]
|
|
51
|
-
minversion = 3.
|
|
52
|
-
envlist = py{
|
|
50
|
+
minversion = 3.9
|
|
51
|
+
envlist = py{39,310,311,312,313}
|
|
53
52
|
|
|
54
53
|
[testenv]
|
|
55
54
|
deps =
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/attachment.py
RENAMED
|
@@ -29,16 +29,19 @@ class Attachment(BaseModel):
|
|
|
29
29
|
def get_id(self) -> str:
|
|
30
30
|
return self.id
|
|
31
31
|
|
|
32
|
-
def get_for_upload(self) ->
|
|
32
|
+
def get_for_upload(self) -> tuple:
|
|
33
|
+
"""Returns attachment data in format expected by new API client: (filename, filedata)"""
|
|
34
|
+
|
|
33
35
|
if self.file_path:
|
|
34
36
|
with open(self.file_path, "rb") as fc:
|
|
35
|
-
|
|
37
|
+
filedata = fc.read()
|
|
36
38
|
else:
|
|
37
39
|
if isinstance(self.content, str):
|
|
38
|
-
|
|
40
|
+
filedata = bytes(self.content, 'utf-8')
|
|
39
41
|
elif isinstance(self.content, bytes):
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
filedata = self.content
|
|
43
|
+
else:
|
|
44
|
+
# Handle case where content is not str or bytes (e.g., JSON serialized)
|
|
45
|
+
filedata = bytes(self.content, 'utf-8')
|
|
46
|
+
|
|
47
|
+
return (self.file_name, filedata)
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase_python_commons.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.0
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/main/qase-python-commons
|
|
@@ -12,18 +12,17 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
12
12
|
Classifier: Topic :: Software Development :: Testing
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
-
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Requires-Python: >=3.9
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
23
22
|
Requires-Dist: certifi>=2024.2.2
|
|
24
23
|
Requires-Dist: attrs>=23.2.0
|
|
25
|
-
Requires-Dist: qase-api-client~=
|
|
26
|
-
Requires-Dist: qase-api-v2-client~=
|
|
24
|
+
Requires-Dist: qase-api-client~=2.0.0
|
|
25
|
+
Requires-Dist: qase-api-v2-client~=2.0.0
|
|
27
26
|
Requires-Dist: more_itertools
|
|
28
27
|
Provides-Extra: testing
|
|
29
28
|
Requires-Dist: pytest; extra == "testing"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/client/api_v1_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/client/base_api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/api.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/batch.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/connection.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/framework.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/plan.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/qaseconfig.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/run.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/config/testops.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/models/external_link.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase/commons/reporters/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.5.7 → qase_python_commons-4.0.0}/src/qase_python_commons.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|