Skip to content

Commit 18de07c

Browse files
authored
Merge pull request #196 from reportportal/develop
Release
2 parents 1db0ca3 + bb73a4c commit 18de07c

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }}
6464

6565
- name: Setup git credentials
66-
uses: oleksiyrudenko/gha-git-credentials@v2.1.1
66+
uses: oleksiyrudenko/gha-git-credentials@v2-latest
6767
with:
6868
name: 'reportportal.io'
6969

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
matrix:
37-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
37+
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
3838
steps:
3939
- name: Checkout repository
4040
uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Fixed
5+
- Issue [#187](https://github.com/reportportal/agent-Python-RobotFramework/issues/187): Distutils in the agent, by @HardNorth
6+
### Added
7+
- Python 12 support, by @HardNorth
8+
9+
## [5.5.3]
410
### Added
511
- Issue [#178](https://github.com/reportportal/agent-Python-RobotFramework/issues/178) Metadata attributes handling, by @HardNorth
612
### Changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Basic dependencies
22
python-dateutil~=2.8.1
3-
reportportal-client~=5.5.6
3+
reportportal-client~=5.5.7
44
robotframework

robotframework_reportportal/variables.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
"""This module contains model that stores Robot Framework variables."""
1515

16-
from distutils.util import strtobool
1716
from os import path
1817
from typing import Optional, Union, Dict, Tuple, Any, List
1918
from warnings import warn
2019

2120
from reportportal_client import OutputType, ClientType
21+
from reportportal_client.helpers import to_bool
2222
from reportportal_client.logs import MAX_LOG_BATCH_PAYLOAD_SIZE
2323
from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError
2424

@@ -76,26 +76,23 @@ def __init__(self) -> None:
7676

7777
self._pabot_pool_id = None
7878
self._pabot_used = None
79-
self.attach_log = bool(strtobool(get_variable(
80-
'RP_ATTACH_LOG', default='False')))
81-
self.attach_report = bool(strtobool(get_variable('RP_ATTACH_REPORT', default='False')))
82-
self.attach_xunit = bool(strtobool(get_variable('RP_ATTACH_XUNIT', default='False')))
79+
self.attach_log = to_bool(get_variable('RP_ATTACH_LOG', default='False'))
80+
self.attach_report = to_bool(get_variable('RP_ATTACH_REPORT', default='False'))
81+
self.attach_xunit = to_bool(get_variable('RP_ATTACH_XUNIT', default='False'))
8382
self.launch_attributes = get_variable('RP_LAUNCH_ATTRIBUTES', default='').split()
8483
self.launch_id = get_variable('RP_LAUNCH_UUID')
8584
self.launch_doc = get_variable('RP_LAUNCH_DOC')
8685
self.log_batch_size = int(get_variable(
8786
'RP_LOG_BATCH_SIZE', default='20'))
8887
self.mode = get_variable('RP_MODE')
8988
self.pool_size = int(get_variable('RP_MAX_POOL_SIZE', default='50'))
90-
self.rerun = bool(strtobool(get_variable(
91-
'RP_RERUN', default='False')))
89+
self.rerun = to_bool(get_variable('RP_RERUN', default='False'))
9290
self.rerun_of = get_variable('RP_RERUN_OF', default=None)
93-
self.skipped_issue = bool(strtobool(get_variable(
94-
'RP_SKIPPED_ISSUE', default='True')))
91+
self.skipped_issue = to_bool(get_variable('RP_SKIPPED_ISSUE', default='True'))
9592
self.test_attributes = get_variable('RP_TEST_ATTRIBUTES', default='').split()
9693
self.log_batch_payload_size = int(get_variable('RP_LOG_BATCH_PAYLOAD_SIZE',
9794
default=str(MAX_LOG_BATCH_PAYLOAD_SIZE)))
98-
self.launch_uuid_print = bool(strtobool(get_variable('RP_LAUNCH_UUID_PRINT', default='False')))
95+
self.launch_uuid_print = to_bool(get_variable('RP_LAUNCH_UUID_PRINT', default='False'))
9996
output_type = get_variable('RP_LAUNCH_UUID_PRINT_OUTPUT')
10097
self.launch_uuid_print_output = OutputType[output_type.upper()] if output_type else None
10198
client_type = get_variable('RP_CLIENT_TYPE')
@@ -169,4 +166,4 @@ def verify_ssl(self) -> Union[bool, str]:
169166
verify_ssl = get_variable('RP_VERIFY_SSL', default='True')
170167
if path.exists(verify_ssl):
171168
return verify_ssl
172-
return bool(strtobool(verify_ssl))
169+
return to_bool(verify_ssl)

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from setuptools import setup
1919

2020

21-
__version__ = '5.5.3'
21+
__version__ = '5.5.4'
2222

2323

2424
def read_file(fname):
@@ -54,6 +54,7 @@ def read_file(fname):
5454
'Programming Language :: Python :: 3.9',
5555
'Programming Language :: Python :: 3.10',
5656
'Programming Language :: Python :: 3.11',
57+
'Programming Language :: Python :: 3.12',
5758
],
5859
install_requires=read_file('requirements.txt').splitlines(),
5960
entry_points={

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ envlist =
77
py39
88
py310
99
py311
10+
py311
1011

1112
[testenv]
1213
deps =
@@ -30,3 +31,4 @@ python =
3031
3.9: py39
3132
3.10: py310
3233
3.11: py311
34+
3.12: py312

0 commit comments

Comments
 (0)