Skip to content

Commit 4b968ae

Browse files
authored
Merge pull request #222 from reportportal/develop
Release
2 parents 66a0639 + 2ad29ad commit 4b968ae

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

CHANGELOG.md

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

33
## [Unreleased]
4+
### Fixed
5+
- Multipart file upload for Async clients, by @HardNorth
6+
7+
## [5.5.0]
48
### Added
59
- `RP` class in `reportportal_client.client` module as common interface for all ReportPortal clients, by @HardNorth
610
- `reportportal_client.aio` with asynchronous clients and auxiliary classes, by @HardNorth

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![PyPI](https://img.shields.io/pypi/v/reportportal-client.svg?maxAge=259200)](https://pypi.python.org/pypi/reportportal-client)
44
[![Python versions](https://img.shields.io/pypi/pyversions/reportportal-client.svg)](https://pypi.org/project/reportportal-client)
55
[![Build Status](https://github.com/reportportal/client-Python/actions/workflows/tests.yml/badge.svg)](https://github.com/reportportal/client-Python/actions/workflows/tests.yml)
6-
[![codecov.io](https://codecov.io/gh/reportportal/client-Python/branch/master/graph/badge.svg)](https://codecov.io/gh/reportportal/client-Python)
6+
[![codecov.io](https://codecov.io/gh/reportportal/client-Python/branch/develop/graph/badge.svg)](https://codecov.io/gh/reportportal/client-Python)
77
[![Join Slack chat!](https://slack.epmrpp.reportportal.io/badge.svg)](https://slack.epmrpp.reportportal.io/)
88
[![stackoverflow](https://img.shields.io/badge/reportportal-stackoverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/reportportal)
99
[![Build with Love](https://img.shields.io/badge/build%20with-❤%EF%B8%8F%E2%80%8D-lightgrey.svg)](http://reportportal.io?style=flat)

reportportal_client/aio/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,6 @@ async def finish_launch(self,
794794
else:
795795
result = ""
796796
await self.__client.log_batch(self._log_batcher.flush())
797-
await self.close()
798797
return result
799798

800799
async def update_test_item(

reportportal_client/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,6 @@ def finish_launch(self,
705705
else:
706706
message = ""
707707
self._log(self._log_batcher.flush())
708-
self.close()
709708
return message
710709

711710
def update_test_item(self, item_uuid: str, attributes: Optional[Union[list, dict]] = None,

reportportal_client/core/rp_requests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ async def payload(self) -> aiohttp.MultipartWriter:
578578
mp_writer = aiohttp.MultipartWriter('form-data')
579579
mp_writer.append_payload(json_payload)
580580
for _, file in self._get_files():
581-
file_payload = aiohttp.Payload(file[1], content_type=file[2], filename=file[0])
581+
file_payload = aiohttp.BytesPayload(file[1], content_type=file[2])
582+
file_payload.set_content_disposition('form-data', name='file', filename=file[0])
582583
mp_writer.append_payload(file_payload)
583584
return mp_writer

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from setuptools import setup, find_packages
66

7-
__version__ = '5.5.0'
7+
__version__ = '5.5.1'
88

99
TYPE_STUBS = ['*.pyi']
1010

0 commit comments

Comments
 (0)